Orders
32 real calls against a live Core. Open a call for its headers, request and response.
createOrder
070OrderForm · create-app-inputownerPOST /graphql400 GRAPHQL_INVALIDAs decided8 ms
D15: an order takes customerId, not a typed customer name.
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-070",
"content-type": "application/json"
}Query
mutation AuditCreateOrderApp($input: OrderInput!) { createOrder(input: $input) { id } }Variables
{
"input": {
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"customerEmail": "buyer@example.test",
"quoteId": null,
"partName": "Audit Flange",
"quantity": 50,
"priority": "HIGH",
"dueDate": "2026-11-06",
"poNumber": "PO-AUDIT-001",
"poAmount": 5000000
}
}Response · HTTP 400
{
"data": null,
"errors": [
{
"message": "Field \"customerName\" is not defined by type \"OrderInput\". Did you mean \"customerId\"?",
"extensions": {
"code": "GRAPHQL_INVALID",
"message": "The GraphQL document is invalid.",
"requestId": "01a14ba9-78a7-70f5-8410-eb436d59e071"
}
},
{
"message": "Field \"customerEmail\" is not defined by type \"OrderInput\". Did you mean \"customerId\"?",
"extensions": {
"code": "GRAPHQL_INVALID",
"message": "The GraphQL document is invalid.",
"requestId": "01a14ba9-78a7-70f5-8410-eb436d59e071"
}
},
{
"message": "Field \"quoteId\" is not defined by type \"OrderInput\".",
"extensions": {
"code": "GRAPHQL_INVALID",
"message": "The GraphQL document is invalid.",
"requestId": "01a14ba9-78a7-70f5-8410-eb436d59e071"
}
}
]
}071OrderForm · createownerPOST /graphql200 OKAs expected48 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-071",
"content-type": "application/json"
}Query
mutation AuditCreateOrder($input: OrderInput!) { createOrder(input: $input) { ...ORD } }
fragment ORD on Order { id jobCardId customerId customerName customerEmail partName jobName description quantity priority status dueDate poNumber poAmount routeCardNo dcNo dcDate partNumber drawingNumber rmPartNumber shopOrderNumber rawMaterialSize heatNumber projectId rawMaterialGrade materialSource quoteId notes createdAt designFile { ...F } documents { ...F } statusHistory { id label detail at tone } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"input": {
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"partName": "Audit Flange",
"jobName": "Audit batch",
"description": "Synthetic audit batch",
"quantity": 50,
"priority": "HIGH",
"dueDate": "2026-11-06",
"poNumber": "PO-AUDIT-001",
"poAmount": 5000000,
"routeCardNo": "RC-AUDIT-001",
"dcNo": "DC-AUDIT-001",
"dcDate": "2026-10-18",
"partNumber": "PN-AUDIT-001",
"drawingNumber": "DRW-AUDIT-001",
"rmPartNumber": "RM-AUDIT-001",
"shopOrderNumber": "SO-AUDIT-001",
"rawMaterialSize": "25 mm x 200 mm",
"heatNumber": "HEAT-AUDIT-001",
"projectId": "PRJ-AUDIT-001",
"rawMaterialGrade": "EN8",
"materialSource": "BOUGHT_OUT"
}
}Response · HTTP 200
{
"data": {
"createOrder": {
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b",
"jobCardId": "01a14ba9-79f7-727d-9878-213ff050bcf7",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"customerEmail": null,
"partName": "Audit Flange",
"jobName": "Audit batch",
"description": "Synthetic audit batch",
"quantity": 50,
"priority": "HIGH",
"status": "NEW",
"dueDate": "2026-11-06",
"poNumber": "PO-AUDIT-001",
"poAmount": 5000000,
"routeCardNo": "RC-AUDIT-001",
"dcNo": "DC-AUDIT-001",
"dcDate": "2026-10-18",
"partNumber": "PN-AUDIT-001",
"drawingNumber": "DRW-AUDIT-001",
"rmPartNumber": "RM-AUDIT-001",
"shopOrderNumber": "SO-AUDIT-001",
"rawMaterialSize": "25 mm x 200 mm",
"heatNumber": "HEAT-AUDIT-001",
"projectId": "PRJ-AUDIT-001",
"rawMaterialGrade": "EN8",
"materialSource": "BOUGHT_OUT",
"quoteId": null,
"notes": null,
"createdAt": "2026-10-17T20:59:20.430Z",
"designFile": null,
"documents": [],
"statusHistory": [
{
"id": "01a14ba9-79fb-735f-b92b-2d180a4e409e",
"label": "Order created",
"detail": null,
"at": "2026-10-17T20:59:20.443Z",
"tone": "INFO"
}
]
}
}
}082JobCardsList · create-for-cancelownerPOST /graphql200 OKAs expected37 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-082",
"content-type": "application/json"
}Query
mutation AuditCancelOrder($input: OrderInput!) { createOrder(input: $input) { id jobCardId } }Variables
{
"input": {
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"partName": "Audit Cancel",
"quantity": 1,
"dueDate": "2026-11-06",
"poNumber": "PO-AUDIT-CANCEL"
}
}Response · HTTP 200
{
"data": {
"createOrder": {
"id": "01a14ba9-9657-782e-9e55-e53ed596282a",
"jobCardId": "01a14ba9-9657-7184-9d1e-fa6054419e91"
}
}
}169Flow · create-orderownerPOST /graphql200 OKAs expected31 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-169",
"content-type": "application/json"
}Query
mutation AuditFlowOrder($input: OrderInput!) { createOrder(input: $input) { id number jobCardId } }Variables
{
"input": {
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"partName": "Audit Flow Shaft",
"quantity": 4,
"priority": "HIGH",
"dueDate": "2026-11-01",
"poNumber": "PO-AUDIT-FLOW",
"designFile": {
"id": "01a14ba9-f98e-734c-8188-537a12fc73f8",
"name": "flow.pdf",
"kind": "Design file",
"sizeBytes": 9
}
}
}Response · HTTP 200
{
"data": {
"createOrder": {
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830",
"number": "WO-10",
"jobCardId": "01a14ba9-fab1-7d0b-863a-b3c7a7857bdf"
}
}
}order
067OrderDetails · loadownerPOST /graphql200 OKAs expected41 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrderDetails($id: ID!, $cardId: ID!, $customerId: ID!) { order(id: $id) { ...ORD } customer(id: $customerId) { id name email mobile } jobCard(id: $cardId) { ...J } invoices(first: 2, filter: { orderId: $id }) { totalCount edges { node { id number status } } } }
fragment ORD on Order { id jobCardId customerId customerName customerEmail partName jobName description quantity priority status dueDate poNumber poAmount routeCardNo dcNo dcDate partNumber drawingNumber rmPartNumber shopOrderNumber rawMaterialSize heatNumber projectId rawMaterialGrade materialSource quoteId notes createdAt designFile { ...F } documents { ...F } statusHistory { id label detail at tone } }
fragment F on AppFileReference { id name kind sizeBytes }
fragment J on JobCard { id orderId code qrValue customerId customerName partName jobName material quantity priority dueDate status designApproval materialSource materialQc quotation billing designFile { ...F } operations { ...OP } qcHistory { ...QR } }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }
fragment QR on QcRecord { id kind stage result remark recordedAt jobOperationId inspector rejectedMaterial { grade heatNumber size } report { ...F } }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"cardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"customerEmail": null,
"partName": "Bearing housing",
"jobName": null,
"description": null,
"quantity": 40,
"priority": "HIGH",
"status": "NEW",
"dueDate": "2026-10-23",
"poNumber": "DEMO-COI-PO-004",
"poAmount": null,
"routeCardNo": null,
"dcNo": null,
"dcDate": null,
"partNumber": null,
"drawingNumber": null,
"rmPartNumber": null,
"shopOrderNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"projectId": null,
"rawMaterialGrade": "EN8",
"materialSource": "BOUGHT_OUT",
"quoteId": null,
"notes": null,
"createdAt": "2026-10-17T20:56:31.594Z",
"designFile": null,
"documents": [],
"statusHistory": [
{
"id": "01a14ba6-e66d-7d11-8ca9-c400735bf62f",
"label": "Order created",
"detail": null,
"at": "2026-10-17T20:56:31.597Z",
"tone": "INFO"
},
{
"id": "01a14ba6-e89b-7df7-bf86-2d5bc146ca88",
"label": "Incoming inspection: accepted",
"detail": "Material and size as per drawing",
"at": "2026-10-17T20:56:32.155Z",
"tone": "SUCCESS"
}
]
},
"customer": {
"id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"name": "Demo Agro Implements",
"email": null,
"mobile": ""
},
"jobCard": {
"id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"code": "JOB4",
"qrValue": "JC-00004",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"partName": "Bearing housing",
"jobName": null,
"material": "EN8 steel",
"quantity": 40,
"priority": "HIGH",
"dueDate": "2026-10-23",
"status": "NOT_STARTED",
"designApproval": "PENDING",
"materialSource": "BOUGHT_OUT",
"materialQc": "ACCEPTED",
"quotation": "PENDING",
"billing": "NOT_INVOICED",
"designFile": null,
"operations": [
{
"id": "01a14ba6-e670-7383-a269-879726ac44d1",
"seq": 1,
"name": "Turning",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7e54-bd33-df068f305cd2",
"seq": 2,
"name": "Milling",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7507-aae3-49f3c9cf0ef1",
"seq": 3,
"name": "Finishing",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
}
],
"qcHistory": [
{
"id": "01a14ba6-e897-79fd-bb0c-5fdfbe1ae7ed",
"kind": "RM",
"stage": "Incoming inspection",
"result": "ACCEPTED",
"remark": "Material and size as per drawing",
"recordedAt": "2026-10-17T20:56:32.134Z",
"jobOperationId": null,
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
}
]
},
"invoices": {
"totalCount": 0,
"edges": []
}
}
}068OrderDetails · load-without-customer-mobileownerPOST /graphql200 OKAs expected24 ms
Control: same screen with `phone` in place of the app `mobile`.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrderDetailsLive($id: ID!, $cardId: ID!, $customerId: ID!) { order(id: $id) { ...ORD } customer(id: $customerId) { id name email phone } jobCard(id: $cardId) { ...J } invoices(first: 2, filter: { orderId: $id }) { totalCount edges { node { id number status } } } }
fragment ORD on Order { id jobCardId customerId customerName customerEmail partName jobName description quantity priority status dueDate poNumber poAmount routeCardNo dcNo dcDate partNumber drawingNumber rmPartNumber shopOrderNumber rawMaterialSize heatNumber projectId rawMaterialGrade materialSource quoteId notes createdAt designFile { ...F } documents { ...F } statusHistory { id label detail at tone } }
fragment F on AppFileReference { id name kind sizeBytes }
fragment J on JobCard { id orderId code qrValue customerId customerName partName jobName material quantity priority dueDate status designApproval materialSource materialQc quotation billing designFile { ...F } operations { ...OP } qcHistory { ...QR } }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }
fragment QR on QcRecord { id kind stage result remark recordedAt jobOperationId inspector rejectedMaterial { grade heatNumber size } report { ...F } }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"cardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"customerEmail": null,
"partName": "Bearing housing",
"jobName": null,
"description": null,
"quantity": 40,
"priority": "HIGH",
"status": "NEW",
"dueDate": "2026-10-23",
"poNumber": "DEMO-COI-PO-004",
"poAmount": null,
"routeCardNo": null,
"dcNo": null,
"dcDate": null,
"partNumber": null,
"drawingNumber": null,
"rmPartNumber": null,
"shopOrderNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"projectId": null,
"rawMaterialGrade": "EN8",
"materialSource": "BOUGHT_OUT",
"quoteId": null,
"notes": null,
"createdAt": "2026-10-17T20:56:31.594Z",
"designFile": null,
"documents": [],
"statusHistory": [
{
"id": "01a14ba6-e66d-7d11-8ca9-c400735bf62f",
"label": "Order created",
"detail": null,
"at": "2026-10-17T20:56:31.597Z",
"tone": "INFO"
},
{
"id": "01a14ba6-e89b-7df7-bf86-2d5bc146ca88",
"label": "Incoming inspection: accepted",
"detail": "Material and size as per drawing",
"at": "2026-10-17T20:56:32.155Z",
"tone": "SUCCESS"
}
]
},
"customer": {
"id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"name": "Demo Agro Implements",
"email": null,
"phone": null
},
"jobCard": {
"id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"code": "JOB4",
"qrValue": "JC-00004",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"partName": "Bearing housing",
"jobName": null,
"material": "EN8 steel",
"quantity": 40,
"priority": "HIGH",
"dueDate": "2026-10-23",
"status": "NOT_STARTED",
"designApproval": "PENDING",
"materialSource": "BOUGHT_OUT",
"materialQc": "ACCEPTED",
"quotation": "PENDING",
"billing": "NOT_INVOICED",
"designFile": null,
"operations": [
{
"id": "01a14ba6-e670-7383-a269-879726ac44d1",
"seq": 1,
"name": "Turning",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7e54-bd33-df068f305cd2",
"seq": 2,
"name": "Milling",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7507-aae3-49f3c9cf0ef1",
"seq": 3,
"name": "Finishing",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
}
],
"qcHistory": [
{
"id": "01a14ba6-e897-79fd-bb0c-5fdfbe1ae7ed",
"kind": "RM",
"stage": "Incoming inspection",
"result": "ACCEPTED",
"remark": "Material and size as per drawing",
"recordedAt": "2026-10-17T20:56:32.134Z",
"jobOperationId": null,
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
}
]
},
"invoices": {
"totalCount": 0,
"edges": []
}
}
}084JobCardDetails · loadsupervisorPOST /graphql200 OKAs expected67 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditJobCardDetails($id: ID!, $orderId: ID!, $customerId: ID!) { jobCard(id: $id) { ...J } order(id: $orderId) { ...ORD } customer(id: $customerId) { id name billingAddress { state } } organisation { id gstState gstRegistered defaultTaxRate taxRates { id rate active } } }
fragment J on JobCard { id orderId code qrValue customerId customerName partName jobName material quantity priority dueDate status designApproval materialSource materialQc quotation billing designFile { ...F } operations { ...OP } qcHistory { ...QR } }
fragment F on AppFileReference { id name kind sizeBytes }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }
fragment QR on QcRecord { id kind stage result remark recordedAt jobOperationId inspector rejectedMaterial { grade heatNumber size } report { ...F } }
fragment ORD on Order { id jobCardId customerId customerName customerEmail partName jobName description quantity priority status dueDate poNumber poAmount routeCardNo dcNo dcDate partNumber drawingNumber rmPartNumber shopOrderNumber rawMaterialSize heatNumber projectId rawMaterialGrade materialSource quoteId notes createdAt designFile { ...F } documents { ...F } statusHistory { id label detail at tone } }Variables
{
"id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7"
}Response · HTTP 200
{
"data": {
"jobCard": {
"id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"code": "JOB4",
"qrValue": "JC-00004",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"partName": "Bearing housing",
"jobName": null,
"material": "EN8 steel",
"quantity": 40,
"priority": "HIGH",
"dueDate": "2026-10-23",
"status": "NOT_STARTED",
"designApproval": "PENDING",
"materialSource": "BOUGHT_OUT",
"materialQc": "ACCEPTED",
"quotation": "PENDING",
"billing": "NOT_INVOICED",
"designFile": null,
"operations": [
{
"id": "01a14ba6-e670-7383-a269-879726ac44d1",
"seq": 1,
"name": "Turning",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7e54-bd33-df068f305cd2",
"seq": 2,
"name": "Milling",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7507-aae3-49f3c9cf0ef1",
"seq": 3,
"name": "Finishing",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
}
],
"qcHistory": [
{
"id": "01a14ba6-e897-79fd-bb0c-5fdfbe1ae7ed",
"kind": "RM",
"stage": "Incoming inspection",
"result": "ACCEPTED",
"remark": "Material and size as per drawing",
"recordedAt": "2026-10-17T20:56:32.134Z",
"jobOperationId": null,
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
}
]
},
"order": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"customerEmail": null,
"partName": "Bearing housing",
"jobName": null,
"description": null,
"quantity": 40,
"priority": "HIGH",
"status": "NEW",
"dueDate": "2026-10-23",
"poNumber": "DEMO-COI-PO-004",
"poAmount": null,
"routeCardNo": null,
"dcNo": null,
"dcDate": null,
"partNumber": null,
"drawingNumber": null,
"rmPartNumber": null,
"shopOrderNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"projectId": null,
"rawMaterialGrade": "EN8",
"materialSource": "BOUGHT_OUT",
"quoteId": null,
"notes": null,
"createdAt": "2026-10-17T20:56:31.594Z",
"designFile": null,
"documents": [],
"statusHistory": [
{
"id": "01a14ba6-e66d-7d11-8ca9-c400735bf62f",
"label": "Order created",
"detail": null,
"at": "2026-10-17T20:56:31.597Z",
"tone": "INFO"
},
{
"id": "01a14ba6-e89b-7df7-bf86-2d5bc146ca88",
"label": "Incoming inspection: accepted",
"detail": "Material and size as per drawing",
"at": "2026-10-17T20:56:32.155Z",
"tone": "SUCCESS"
}
]
},
"customer": {
"id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"name": "Demo Agro Implements",
"billingAddress": {
"state": "Tamil Nadu"
}
},
"organisation": {
"id": "01a14ba6-e3d8-7d56-8060-bfa0d3554b8b",
"gstState": "Tamil Nadu",
"gstRegistered": true,
"defaultTaxRate": 18,
"taxRates": [
{
"id": "0192f0c1-0000-7000-8000-f00000000000",
"rate": 0,
"active": true
},
{
"id": "0192f0c1-0000-7000-8000-f00000000001",
"rate": 5,
"active": true
},
{
"id": "0192f0c1-0000-7000-8000-f00000000002",
"rate": 12,
"active": true
},
{
"id": "0192f0c1-0000-7000-8000-f00000000003",
"rate": 18,
"active": true
},
{
"id": "0192f0c1-0000-7000-8000-f00000000004",
"rate": 28,
"active": false
}
]
}
}
}097ImportOrder · loadsupervisorPOST /graphql200 OKAs expected16 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditImportOrder($id: ID!) { order(id: $id) { id jobCardId customerName partName jobName description priority status quantity dueDate partNumber drawingNumber poNumber poAmount projectId shopOrderNumber routeCardNo dcNo dcDate materialSource rmPartNumber rawMaterialGrade rawMaterialSize heatNumber designFile { ...F } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"customerName": "Demo Agro Implements",
"partName": "Bearing housing",
"jobName": null,
"description": null,
"priority": "HIGH",
"status": "YET_TO_START",
"quantity": 40,
"dueDate": "2026-10-23",
"partNumber": null,
"drawingNumber": null,
"poNumber": "DEMO-COI-PO-004",
"poAmount": null,
"projectId": null,
"shopOrderNumber": null,
"routeCardNo": null,
"dcNo": null,
"dcDate": null,
"materialSource": "BOUGHT_OUT",
"rmPartNumber": null,
"rawMaterialGrade": "EN8",
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"designFile": null
}
}
}098RawMaterial · loadsupervisorPOST /graphql200 OKAs expected15 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditRawMaterialLoad($id: ID!) { order(id: $id) { id jobCardId rawMaterialGrade rawMaterialSize heatNumber rmPartNumber materialSource } }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"rawMaterialGrade": "EN8",
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"rmPartNumber": null,
"materialSource": "BOUGHT_OUT"
}
}
}100Drawing · loadsupervisorPOST /graphql200 OKAs expected9 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditDrawing($id: ID!) { order(id: $id) { id jobCardId partName jobName description customerName partNumber drawingNumber poNumber quantity dueDate designFile { ...F } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b",
"jobCardId": "01a14ba9-79f7-727d-9878-213ff050bcf7",
"partName": "Audit Flange",
"jobName": "Audit batch",
"description": "Synthetic audit batch",
"customerName": "Demo Agro Implements",
"partNumber": "PN-AUDIT-001",
"drawingNumber": "DRW-AUDIT-001",
"poNumber": "PO-AUDIT-001",
"quantity": 60,
"dueDate": "2026-11-06",
"designFile": {
"id": "01a14ba9-8093-7522-b009-598b20ea39a7",
"name": "drawing.pdf",
"kind": "Design file",
"sizeBytes": 9
}
}
}
}108OperatorJob · view-detailsoperatorPOST /graphql403 FORBIDDENAs decided5 ms
D7 (final): operator and QC never see the order (prices, client data); they read the job card.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOperatorOrder($id: ID!) { order(id: $id) { id poNumber drawingNumber } }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491"
}Response · HTTP 403
{
"errors": [
{
"message": "You do not have access to this.",
"locations": [
{
"line": 1,
"column": 38
}
],
"path": [
"order"
],
"extensions": {
"code": "FORBIDDEN",
"message": "You do not have access to this.",
"requestId": "01a14ba9-b4f5-77fa-aaca-8410de640216"
}
}
],
"data": null
}110OrderDetails · loadoperatorPOST /graphql403 FORBIDDENAs decided8 ms
D7 (final): operator and QC never see the order; they read the job card.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrderModalOp($id: ID!) { order(id: $id) { id customerName partName jobName description priority status quantity dueDate partNumber drawingNumber poNumber poAmount projectId shopOrderNumber routeCardNo dcNo dcDate materialSource rmPartNumber rawMaterialGrade rawMaterialSize heatNumber } }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491"
}Response · HTTP 403
{
"errors": [
{
"message": "You do not have access to this.",
"locations": [
{
"line": 1,
"column": 37
}
],
"path": [
"order"
],
"extensions": {
"code": "FORBIDDEN",
"message": "You do not have access to this.",
"requestId": "01a14ba9-b713-7e24-91a9-29199567630f"
}
}
],
"data": null
}111Drawing · loadoperatorPOST /graphql403 FORBIDDENAs decided3 ms
D7 (final): operator and QC never see the order; they read the job card.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditDrawingOp($id: ID!) { order(id: $id) { id drawingNumber partNumber designFile { ...F } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491"
}Response · HTTP 403
{
"errors": [
{
"message": "You do not have access to this.",
"locations": [
{
"line": 1,
"column": 34
}
],
"path": [
"order"
],
"extensions": {
"code": "FORBIDDEN",
"message": "You do not have access to this.",
"requestId": "01a14ba9-b820-7bca-953c-2ff038b49301"
}
}
],
"data": null
}124QcCheck · view-detailsqcPOST /graphql403 FORBIDDENAs decided11 ms
D7 (final): operator and QC never see the order; they read the job card.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditQcOrder($id: ID!) { order(id: $id) { id poNumber drawingNumber } }Variables
{
"id": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2"
}Response · HTTP 403
{
"errors": [
{
"message": "You do not have access to this.",
"locations": [
{
"line": 1,
"column": 32
}
],
"path": [
"order"
],
"extensions": {
"code": "FORBIDDEN",
"message": "You do not have access to this.",
"requestId": "01a14ba9-c657-773a-af78-29e40eacf005"
}
}
],
"data": null
}148OrderDetails · status-after-invoiceownerPOST /graphql200 OKAs expected17 ms
FRONTEND-GUIDE §9: an invoice moves the order to PAYMENT_DUE.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrderStatus($id: ID!) { order(id: $id) { id status statusHistory { label at } } }Variables
{
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"status": "YET_TO_START",
"statusHistory": [
{
"label": "Order created",
"at": "2026-10-17T20:56:31.597Z"
},
{
"label": "Incoming inspection: accepted",
"at": "2026-10-17T20:56:32.155Z"
},
{
"label": "Ready to start",
"at": "2026-10-17T20:59:29.213Z"
},
{
"label": "Raw material entered",
"at": "2026-10-17T20:59:32.706Z"
},
{
"label": "Material QC: accepted",
"at": "2026-10-17T20:59:39.768Z"
}
]
}
}
}167Drawing · loadqcPOST /graphql403 FORBIDDENAs decided22 ms
D7 (final): operator and QC never see the order; they read the job card.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditDrawingQc($id: ID!) { order(id: $id) { id drawingNumber partNumber designFile { ...F } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b"
}Response · HTTP 403
{
"errors": [
{
"message": "You do not have access to this.",
"locations": [
{
"line": 1,
"column": 34
}
],
"path": [
"order"
],
"extensions": {
"code": "FORBIDDEN",
"message": "You do not have access to this.",
"requestId": "01a14ba9-f825-7a64-8439-0065714e0394"
}
}
],
"data": null
}185OrderDetails · status-in-progressownerPOST /graphql200 OKAs expected36 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditFlowStatus($id: ID!) { order(id: $id) { id number status } }Variables
{
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830",
"number": "WO-10",
"status": "IN_PROGRESS"
}
}
}196OrderDetails · status-after-invoiceownerPOST /graphql200 OKAs expected7 ms
Expect PAYMENT_DUE.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditFlowStatus2($id: ID!) { order(id: $id) { id status } }Variables
{
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830",
"status": "PAYMENT_DUE"
}
}
}199OrderDetails · status-after-paymentownerPOST /graphql200 OKAs expected8 ms
Expect COMPLETED.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditFlowStatus3($id: ID!) { order(id: $id) { id status } }Variables
{
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830"
}Response · HTTP 200
{
"data": {
"order": {
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830",
"status": "COMPLETED"
}
}
}200OrderDetails · loadoperatorPOST /graphql403 FORBIDDENAs decided4 ms
D7 (final): operator and QC never see the order; they read the job card.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOpOrderFlow($id: ID!) { order(id: $id) { id number partName drawingNumber dueDate designFile { ...F } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba9-fab1-7c5c-8e58-a617f05b9830"
}Response · HTTP 403
{
"errors": [
{
"message": "You do not have access to this.",
"locations": [
{
"line": 1,
"column": 36
}
],
"path": [
"order"
],
"extensions": {
"code": "FORBIDDEN",
"message": "You do not have access to this.",
"requestId": "01a14baa-1ddf-7376-8aca-509c52431f48"
}
}
],
"data": null
}orders
017Discovery · live-idsownerPOST /graphql200 OKAs expected38 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditDiscovery {
customers(first: 10) { edges { node { id name billingAddress { city } } } }
orders(first: 10) { edges { node { id number jobCardId customerId status routeCardNo poNumber } } }
jobCards(first: 10) { edges { node { id orderId code qrValue status billing materialQc designApproval operations { id seq name status operatorId } } } }
machines(first: 10) { edges { node { id code status } } }
quotes(first: 10) { edges { node { id status orderId customerId } } }
invoices(first: 10) { edges { node { id status orderId jobCardId } } }
users(first: 30) { edges { node { id role name status } } } }Variables
{}Response · HTTP 200
{
"data": {
"customers": {
"edges": [
{
"node": {
"id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"name": "Demo Agro Implements",
"billingAddress": {
"city": "Tiruppur"
}
}
},
{
"node": {
"id": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
"name": "Demo Auto Components",
"billingAddress": {
"city": "Tiruppur"
}
}
},
{
"node": {
"id": "01a14ba6-e579-7091-b879-fd026c5ab537",
"name": "Demo Hydraulics",
"billingAddress": {
"city": "Bengaluru"
}
}
},
{
"node": {
"id": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
"name": "Demo Pumps & Valves",
"billingAddress": {
"city": "Coimbatore"
}
}
},
{
"node": {
"id": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
"name": "Demo Textile Machinery",
"billingAddress": {
"city": "Coimbatore"
}
}
}
]
},
"orders": {
"edges": [
{
"node": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"number": "WO-4",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"status": "NEW",
"routeCardNo": null,
"poNumber": "DEMO-COI-PO-004"
}
},
{
"node": {
"id": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
"number": "WO-1",
"jobCardId": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
"customerId": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
"status": "COMPLETED",
"routeCardNo": null,
"poNumber": "DEMO-COI-PO-001"
}
},
{
"node": {
"id": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
"number": "WO-2",
"jobCardId": "01a14ba6-e649-75ad-bbc9-16d7ecd00878",
"customerId": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
"status": "PAYMENT_DUE",
"routeCardNo": null,
"poNumber": "DEMO-COI-PO-002"
}
},
{
"node": {
"id": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
"number": "WO-3",
"jobCardId": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
"customerId": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
"status": "IN_PROGRESS",
"routeCardNo": null,
"poNumber": "DEMO-COI-PO-003"
}
},
{
"node": {
"id": "01a14ba6-e67d-7144-a636-1c77ab125e29",
"number": "WO-5",
"jobCardId": "01a14ba6-e67d-7757-8629-269f740c10ba",
"customerId": "01a14ba6-e579-7091-b879-fd026c5ab537",
"status": "NEW",
"routeCardNo": null,
"poNumber": "DEMO-COI-PO-005"
}
},
{
"node": {
"id": "01a14ba6-e695-7d5c-b505-a59fd80251a9",
"number": "WO-6",
"jobCardId": "01a14ba6-e695-7571-8b02-2a50cf0c7c89",
"customerId": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
"status": "NEW",
"routeCardNo": null,
"poNumber": "DEMO-COI-PO-006"
}
}
]
},
"jobCards": {
"edges": [
{
"node": {
"id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"code": "JOB4",
"qrValue": "JC-00004",
"status": "NOT_STARTED",
"billing": "NOT_INVOICED",
"materialQc": "ACCEPTED",
"designApproval": "PENDING",
"operations": [
{
"id": "01a14ba6-e670-7383-a269-879726ac44d1",
"seq": 1,
"name": "Turning",
"status": "PENDING",
"operatorId": null
},
{
"id": "01a14ba6-e670-7e54-bd33-df068f305cd2",
"seq": 2,
"name": "Milling",
"status": "PENDING",
"operatorId": null
},
{
"id": "01a14ba6-e670-7507-aae3-49f3c9cf0ef1",
"seq": 3,
"name": "Finishing",
"status": "PENDING",
"operatorId": null
}
]
}
},
{
"node": {
"id": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
"orderId": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
"code": "JOB1",
"qrValue": "JC-00001",
"status": "COMPLETED",
"billing": "INVOICED",
"materialQc": "ACCEPTED",
"designApproval": "APPROVED",
"operations": [
{
"id": "01a14ba6-e626-76cf-b05f-c274e0674ee7",
"seq": 1,
"name": "Turning",
"status": "COMPLETED",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
},
{
"id": "01a14ba6-e627-719c-806b-ac64265762a5",
"seq": 2,
"name": "Milling",
"status": "COMPLETED",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
},
{
"id": "01a14ba6-e627-7e03-9a71-6f42bd07e4d2",
"seq": 3,
"name": "Finishing",
"status": "COMPLETED",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
}
]
}
},
{
"node": {
"id": "01a14ba6-e649-75ad-bbc9-16d7ecd00878",
"orderId": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
"code": "JOB2",
"qrValue": "JC-00002",
"status": "COMPLETED",
"billing": "INVOICED",
"materialQc": "ACCEPTED",
"designApproval": "APPROVED",
"operations": [
{
"id": "01a14ba6-e64d-7037-9764-d88565c28617",
"seq": 1,
"name": "Turning",
"status": "COMPLETED",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
},
{
"id": "01a14ba6-e64d-74b2-b6a0-86adb5271663",
"seq": 2,
"name": "Milling",
"status": "COMPLETED",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
},
{
"id": "01a14ba6-e64d-7558-9888-cbe24e46077f",
"seq": 3,
"name": "Finishing",
"status": "COMPLETED",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
}
]
}
},
{
"node": {
"id": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
"orderId": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
"code": "JOB3",
"qrValue": "JC-00003",
"status": "IN_PROGRESS",
"billing": "NOT_INVOICED",
"materialQc": "ACCEPTED",
"designApproval": "APPROVED",
"operations": [
{
"id": "01a14ba6-e65f-75d4-bf28-cbbe41f127f6",
"seq": 1,
"name": "Turning",
"status": "RUNNING",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
},
{
"id": "01a14ba6-e65f-7d50-be77-0daed0461d04",
"seq": 2,
"name": "Milling",
"status": "PENDING",
"operatorId": null
},
{
"id": "01a14ba6-e65f-7f06-96f5-34afdc3af49f",
"seq": 3,
"name": "Finishing",
"status": "PENDING",
"operatorId": null
}
]
}
},
{
"node": {
"id": "01a14ba6-e67d-7757-8629-269f740c10ba",
"orderId": "01a14ba6-e67d-7144-a636-1c77ab125e29",
"code": "JOB5",
"qrValue": "JC-00005",
"status": "NOT_STARTED",
"billing": "NOT_INVOICED",
"materialQc": "REJECTED",
"designApproval": "PENDING",
"operations": [
{
"id": "01a14ba6-e682-7349-b544-8bd33b0c693f",
"seq": 1,
"name": "Turning",
"status": "PENDING",
"operatorId": null
},
{
"id": "01a14ba6-e682-76bb-b257-93119fc4aadd",
"seq": 2,
"name": "Milling",
"status": "PENDING",
"operatorId": null
},
{
"id": "01a14ba6-e682-7879-8c84-2a65306245fb",
"seq": 3,
"name": "Finishing",
"status": "PENDING",
"operatorId": null
}
]
}
},
{
"node": {
"id": "01a14ba6-e695-7571-8b02-2a50cf0c7c89",
"orderId": "01a14ba6-e695-7d5c-b505-a59fd80251a9",
"code": "JOB6",
"qrValue": "JC-00006",
"status": "NOT_STARTED",
"billing": "NOT_INVOICED",
"materialQc": "PENDING",
"designApproval": "PENDING",
"operations": [
{
"id": "01a14ba6-e69b-7919-9161-b21877f4db19",
"seq": 1,
"name": "Turning",
"status": "PENDING",
"operatorId": null
},
{
"id": "01a14ba6-e69b-7a95-ac75-3551e1cd0d72",
"seq": 2,
"name": "Milling",
"status": "PENDING",
"operatorId": null
},
{
"id": "01a14ba6-e69b-777e-8426-b9ebd85d207a",
"seq": 3,
"name": "Finishing",
"status": "PENDING",
"operatorId": null
}
]
}
}
]
},
"machines": {
"edges": [
{
"node": {
"id": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"code": "MC-851B82AA",
"status": "RUNNING"
}
},
{
"node": {
"id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98",
"code": "MC-137E4B98",
"status": "IDLE"
}
},
{
"node": {
"id": "01a14ba6-e5d7-711c-bcba-22be75d5d8b4",
"code": "MC-75D5D8B4",
"status": "MAINTENANCE"
}
},
{
"node": {
"id": "01a14ba6-e5b5-71f3-aaea-903c4d97acc6",
"code": "MC-4D97ACC6",
"status": "IDLE"
}
}
]
},
"quotes": {
"edges": [
{
"node": {
"id": "01a14ba6-e68b-7186-9275-d44e3591f471",
"status": "SENT",
"orderId": null,
"customerId": "01a14ba6-e55f-7151-850b-de9c5dbe0224"
}
},
{
"node": {
"id": "01a14ba6-e678-7c29-b24d-e8d8f0d4ac48",
"status": "DRAFT",
"orderId": null,
"customerId": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e"
}
}
]
},
"invoices": {
"edges": [
{
"node": {
"id": "01a14ba6-e836-79c7-861a-0c20920fb6fc",
"status": "NEW",
"orderId": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
"jobCardId": "01a14ba6-e649-75ad-bbc9-16d7ecd00878"
}
},
{
"node": {
"id": "01a14ba6-e818-7935-ad87-c0e2a7448c5a",
"status": "PAID",
"orderId": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
"jobCardId": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c"
}
}
]
},
"users": {
"edges": [
{
"node": {
"id": "01a14ba6-e4e7-7b64-88ac-67a67b46b313",
"role": "ACCOUNTANT",
"name": "Demo Accountant",
"status": "ACTIVE"
}
},
{
"node": {
"id": "01a14ba6-e420-7894-9aa9-5dd131ee9c29",
"role": "ADMIN",
"name": "Demo Admin",
"status": "ACTIVE"
}
},
{
"node": {
"id": "01a14ba6-e48b-766b-8c6b-8862bea47064",
"role": "QC",
"name": "Demo Inspector",
"status": "ACTIVE"
}
},
{
"node": {
"id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"role": "OPERATOR",
"name": "Demo Operator",
"status": "ACTIVE"
}
},
{
"node": {
"id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
"role": "OWNER",
"name": "Demo Owner",
"status": "ACTIVE"
}
},
{
"node": {
"id": "01a14ba6-e442-7fae-b468-bf9fee75d9ec",
"role": "SUPERVISOR",
"name": "Demo Supervisor",
"status": "ACTIVE"
}
}
]
}
}
}058CustomerDetails · load-app-fieldsownerPOST /graphql200 OKAs expected24 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditCustomerDetails($id: ID!) { customer(id: $id) { ...CUSAPP } orders(first: 5, filter: { customerId: $id }, sort: { field: CREATED_AT, direction: DESC }) { totalCount edges { node { id customerId partName jobName description quantity dueDate status createdAt } } } quotes(first: 5, filter: { customerId: $id }) { totalCount edges { node { ...QT } } } }
fragment CUSAPP on Customer { id type name contactPerson mobile alternateMobile email gstin address { line1 city state pincode } notes currentProjects previousProjects totalRevenue outstandingBalance customerSince activity(first: 3) { totalCount edges { node { id label detail at tone } } } }
fragment QT on Quote { id number customerId customerName part quantity material status gstRate orderId createdAt lines { id operation description minutesPerPiece setupMinutes ratePerMinute amount } totals { subtotal discount taxable gstRate supply cgst sgst igst gst total } }Variables
{
"id": "01a14ba6-e56a-7478-990d-ceec492d63e7"
}Response · HTTP 200
{
"data": {
"customer": {
"id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"type": "BUSINESS",
"name": "Demo Agro Implements",
"contactPerson": "",
"mobile": "",
"alternateMobile": "",
"email": null,
"gstin": null,
"address": {
"line1": "4 Demo Industrial Estate",
"city": "Tiruppur",
"state": "Tamil Nadu",
"pincode": "641601"
},
"notes": "",
"currentProjects": 1,
"previousProjects": 0,
"totalRevenue": 0,
"outstandingBalance": 0,
"customerSince": "2026-10-18",
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"label": "Order placed",
"detail": "DEMO-COI-PO-004",
"at": "2026-10-17T20:56:31.594Z",
"tone": "INFO"
}
}
]
}
},
"orders": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"partName": "Bearing housing",
"jobName": null,
"description": null,
"quantity": 40,
"dueDate": "2026-10-23",
"status": "NEW",
"createdAt": "2026-10-17T20:56:31.594Z"
}
}
]
},
"quotes": {
"totalCount": 0,
"edges": []
}
}
}059CustomerDetails · load-orders-quotes-tabsownerPOST /graphql200 OKAs expected14 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditCustomerTabs($id: ID!) { orders(first: 5, filter: { customerId: $id }, sort: { field: CREATED_AT, direction: DESC }) { totalCount edges { node { id customerId partName jobName description quantity dueDate status createdAt } } } quotes(first: 5, filter: { customerId: $id }) { totalCount edges { node { ...QT } } } }
fragment QT on Quote { id number customerId customerName part quantity material status gstRate orderId createdAt lines { id operation description minutesPerPiece setupMinutes ratePerMinute amount } totals { subtotal discount taxable gstRate supply cgst sgst igst gst total } }Variables
{
"id": "01a14ba6-e56a-7478-990d-ceec492d63e7"
}Response · HTTP 200
{
"data": {
"orders": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"partName": "Bearing housing",
"jobName": null,
"description": null,
"quantity": 40,
"dueDate": "2026-10-23",
"status": "NEW",
"createdAt": "2026-10-17T20:56:31.594Z"
}
}
]
},
"quotes": {
"totalCount": 0,
"edges": []
}
}
}064OrdersList · loadownerPOST /graphql200 OKAs expected18 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrdersList { orders(first: 10, sort: { field: DUE_DATE, direction: ASC }) { totalCount pageInfo { hasNextPage endCursor } edges { node { id jobCardId partName jobName description customerName poNumber routeCardNo priority status dueDate materialSource rmPartNumber rawMaterialSize heatNumber rawMaterialGrade } } } }Variables
{}Response · HTTP 200
{
"data": {
"orders": {
"totalCount": 6,
"pageInfo": {
"hasNextPage": false,
"endCursor": "WyIyMDI2LTExLTE3IiwiMDFhMTRiYTYtZTY5NS03ZDVjLWI1MDUtYTU5ZmQ4MDI1MWE5Il0"
},
"edges": [
{
"node": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"partName": "Bearing housing",
"jobName": null,
"description": null,
"customerName": "Demo Agro Implements",
"poNumber": "DEMO-COI-PO-004",
"routeCardNo": null,
"priority": "HIGH",
"status": "NEW",
"dueDate": "2026-10-23",
"materialSource": "BOUGHT_OUT",
"rmPartNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"rawMaterialGrade": "EN8"
}
},
{
"node": {
"id": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
"jobCardId": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
"partName": "Pump shaft",
"jobName": null,
"description": null,
"customerName": "Demo Pumps & Valves",
"poNumber": "DEMO-COI-PO-001",
"routeCardNo": null,
"priority": "HIGH",
"status": "COMPLETED",
"dueDate": "2026-10-25",
"materialSource": "BOUGHT_OUT",
"rmPartNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"rawMaterialGrade": "EN8"
}
},
{
"node": {
"id": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
"jobCardId": "01a14ba6-e649-75ad-bbc9-16d7ecd00878",
"partName": "Valve spindle",
"jobName": null,
"description": null,
"customerName": "Demo Auto Components",
"poNumber": "DEMO-COI-PO-002",
"routeCardNo": null,
"priority": "MEDIUM",
"status": "PAYMENT_DUE",
"dueDate": "2026-10-28",
"materialSource": "BOUGHT_OUT",
"rmPartNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"rawMaterialGrade": "EN8"
}
},
{
"node": {
"id": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
"jobCardId": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
"partName": "Gear blank",
"jobName": null,
"description": null,
"customerName": "Demo Textile Machinery",
"poNumber": "DEMO-COI-PO-003",
"routeCardNo": null,
"priority": "MEDIUM",
"status": "IN_PROGRESS",
"dueDate": "2026-11-01",
"materialSource": "BOUGHT_OUT",
"rmPartNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"rawMaterialGrade": "EN8"
}
},
{
"node": {
"id": "01a14ba6-e67d-7144-a636-1c77ab125e29",
"jobCardId": "01a14ba6-e67d-7757-8629-269f740c10ba",
"partName": "Flange coupling",
"jobName": null,
"description": null,
"customerName": "Demo Hydraulics",
"poNumber": "DEMO-COI-PO-005",
"routeCardNo": null,
"priority": "MEDIUM",
"status": "NEW",
"dueDate": "2026-11-08",
"materialSource": "BOUGHT_OUT",
"rmPartNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"rawMaterialGrade": "EN8"
}
},
{
"node": {
"id": "01a14ba6-e695-7d5c-b505-a59fd80251a9",
"jobCardId": "01a14ba6-e695-7571-8b02-2a50cf0c7c89",
"partName": "Drive bush",
"jobName": null,
"description": null,
"customerName": "Demo Pumps & Valves",
"poNumber": "DEMO-COI-PO-006",
"routeCardNo": null,
"priority": "LOW",
"status": "NEW",
"dueDate": "2026-11-17",
"materialSource": "BOUGHT_OUT",
"rmPartNumber": null,
"rawMaterialSize": "Ø40 x 3000 mm",
"heatNumber": null,
"rawMaterialGrade": "EN8"
}
}
]
}
}
}065OrdersList · show-wo-numberownerPOST /graphql200 OKAs expected15 ms
The app shows "WO #1042"; there is no human order number.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrderNumber { orders(first: 1) { edges { node { id number } } } }Variables
{}Response · HTTP 200
{
"data": {
"orders": {
"edges": [
{
"node": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"number": "WO-4"
}
}
]
}
}
}066OrdersList · sort-priority-firstownerPOST /graphql200 OKAs expected14 ms
The app orders by priority, then due date.
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrdersSort { orders(first: 5, sort: { field: PRIORITY, direction: DESC }) { totalCount } }Variables
{}Response · HTTP 200
{
"data": {
"orders": {
"totalCount": 6
}
}
}072OrdersList · search-route-card-descriptionownerPOST /graphql200 OKAs expected22 ms
The app searches route card and description too; the order just created has RC-AUDIT-001 / "Synthetic audit batch" / PO-AUDIT-001 (PO is the control).
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrdersSearch { rc: orders(first: 5, search: "RC-AUDIT-001") { totalCount } desc: orders(first: 5, search: "Synthetic audit batch") { totalCount } po: orders(first: 5, search: "PO-AUDIT-001") { totalCount } }Variables
{}Response · HTTP 200
{
"data": {
"rc": {
"totalCount": 1
},
"desc": {
"totalCount": 1
},
"po": {
"totalCount": 1
}
}
}079JobCardsList · loadownerPOST /graphql200 OKAs expected60 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditJobCardsList { jobCards(first: 2, sort: { field: DUE_DATE, direction: ASC }) { totalCount pageInfo { hasNextPage endCursor } edges { node { ...J } } } orders(first: 2) { edges { node { id jobCardId drawingNumber } } } }
fragment J on JobCard { id orderId code qrValue customerId customerName partName jobName material quantity priority dueDate status designApproval materialSource materialQc quotation billing designFile { ...F } operations { ...OP } qcHistory { ...QR } }
fragment F on AppFileReference { id name kind sizeBytes }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }
fragment QR on QcRecord { id kind stage result remark recordedAt jobOperationId inspector rejectedMaterial { grade heatNumber size } report { ...F } }Variables
{}Response · HTTP 200
{
"data": {
"jobCards": {
"totalCount": 7,
"pageInfo": {
"hasNextPage": true,
"endCursor": "WyIyMDI2LTEwLTI1IiwiMDFhMTRiYTYtZTYwYi03NmM5LTkwYTEtMmU0OGFjMGFmMjBjIl0"
},
"edges": [
{
"node": {
"id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"code": "JOB4",
"qrValue": "JC-00004",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"partName": "Bearing housing",
"jobName": null,
"material": "EN8 steel",
"quantity": 40,
"priority": "HIGH",
"dueDate": "2026-10-23",
"status": "NOT_STARTED",
"designApproval": "PENDING",
"materialSource": "BOUGHT_OUT",
"materialQc": "ACCEPTED",
"quotation": "PENDING",
"billing": "NOT_INVOICED",
"designFile": null,
"operations": [
{
"id": "01a14ba6-e670-7383-a269-879726ac44d1",
"seq": 1,
"name": "Turning",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7e54-bd33-df068f305cd2",
"seq": 2,
"name": "Milling",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e670-7507-aae3-49f3c9cf0ef1",
"seq": 3,
"name": "Finishing",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
}
],
"qcHistory": [
{
"id": "01a14ba6-e897-79fd-bb0c-5fdfbe1ae7ed",
"kind": "RM",
"stage": "Incoming inspection",
"result": "ACCEPTED",
"remark": "Material and size as per drawing",
"recordedAt": "2026-10-17T20:56:32.134Z",
"jobOperationId": null,
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
}
]
}
},
{
"node": {
"id": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
"orderId": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
"code": "JOB1",
"qrValue": "JC-00001",
"customerId": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
"customerName": "Demo Pumps & Valves",
"partName": "Pump shaft",
"jobName": null,
"material": "EN8 steel",
"quantity": 120,
"priority": "HIGH",
"dueDate": "2026-10-25",
"status": "COMPLETED",
"designApproval": "APPROVED",
"materialSource": "BOUGHT_OUT",
"materialQc": "ACCEPTED",
"quotation": "PENDING",
"billing": "INVOICED",
"designFile": {
"id": "01a14ba6-e69c-79b0-ae65-424de8a47a06",
"name": "synthetic-demo-drawing.pdf",
"kind": "DESIGN",
"sizeBytes": 0
},
"operations": [
{
"id": "01a14ba6-e626-76cf-b05f-c274e0674ee7",
"seq": 1,
"name": "Turning",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.745Z",
"completedAt": "2026-10-17T20:56:31.760Z"
},
{
"id": "01a14ba6-e627-719c-806b-ac64265762a5",
"seq": 2,
"name": "Milling",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.794Z",
"completedAt": "2026-10-17T20:56:31.806Z"
},
{
"id": "01a14ba6-e627-7e03-9a71-6f42bd07e4d2",
"seq": 3,
"name": "Finishing",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.835Z",
"completedAt": "2026-10-17T20:56:31.852Z"
}
],
"qcHistory": [
{
"id": "01a14ba6-e6ed-7f91-8c5e-237cff65bf76",
"kind": "RM",
"stage": "Incoming inspection",
"result": "ACCEPTED",
"remark": null,
"recordedAt": "2026-10-17T20:56:31.720Z",
"jobOperationId": null,
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
},
{
"id": "01a14ba6-e71d-75a5-8439-917f6e7cf411",
"kind": "MACHINE",
"stage": "In-process QC",
"result": "PASSED",
"remark": null,
"recordedAt": "2026-10-17T20:56:31.770Z",
"jobOperationId": "01a14ba6-e626-76cf-b05f-c274e0674ee7",
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
},
{
"id": "01a14ba6-e74a-7e4f-90e1-25a0c36de538",
"kind": "MACHINE",
"stage": "In-process QC",
"result": "PASSED",
"remark": null,
"recordedAt": "2026-10-17T20:56:31.815Z",
"jobOperationId": "01a14ba6-e627-719c-806b-ac64265762a5",
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
},
{
"id": "01a14ba6-e788-78dc-9641-080fcb3f9712",
"kind": "MACHINE",
"stage": "Final QC",
"result": "PASSED",
"remark": null,
"recordedAt": "2026-10-17T20:56:31.871Z",
"jobOperationId": "01a14ba6-e627-7e03-9a71-6f42bd07e4d2",
"inspector": "Demo Inspector",
"rejectedMaterial": null,
"report": null
}
]
}
}
]
},
"orders": {
"edges": [
{
"node": {
"id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
"jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
"drawingNumber": null
}
},
{
"node": {
"id": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
"jobCardId": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
"drawingNumber": null
}
}
]
}
}
}160OrdersList · filter-priority-statusownerPOST /graphql200 OKAs expected27 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditOrdersFilter { orders(first: 5, filter: { priority: [HIGH, MEDIUM], status: [NEW, YET_TO_START, IN_PROGRESS] }) { totalCount } }Variables
{}Response · HTTP 200
{
"data": {
"orders": {
"totalCount": 6
}
}
}updateOrder
073OrderForm · save-edit-change-customerownerPOST /graphql400 GRAPHQL_INVALIDAs decided5 ms
D15: an order keeps its customer.
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-073",
"content-type": "application/json"
}Query
mutation AuditUpdateOrderCustomer($id: ID!, $input: OrderUpdateInput!) { updateOrder(id: $id, input: $input) { id } }Variables
{
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b",
"input": {
"customerId": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
"customerEmail": "buyer2@example.test"
}
}Response · HTTP 400
{
"data": null,
"errors": [
{
"message": "Field \"customerId\" is not defined by type \"OrderUpdateInput\".",
"extensions": {
"code": "GRAPHQL_INVALID",
"message": "The GraphQL document is invalid.",
"requestId": "01a14ba9-7c06-7d59-992b-057166281ee5"
}
},
{
"message": "Field \"customerEmail\" is not defined by type \"OrderUpdateInput\".",
"extensions": {
"code": "GRAPHQL_INVALID",
"message": "The GraphQL document is invalid.",
"requestId": "01a14ba9-7c06-7d59-992b-057166281ee5"
}
}
]
}074OrderForm · save-editownerPOST /graphql200 OKAs expected19 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-074",
"content-type": "application/json"
}Query
mutation AuditUpdateOrder($id: ID!, $input: OrderUpdateInput!) { updateOrder(id: $id, input: $input) { ...ORD } }
fragment ORD on Order { id jobCardId customerId customerName customerEmail partName jobName description quantity priority status dueDate poNumber poAmount routeCardNo dcNo dcDate partNumber drawingNumber rmPartNumber shopOrderNumber rawMaterialSize heatNumber projectId rawMaterialGrade materialSource quoteId notes createdAt designFile { ...F } documents { ...F } statusHistory { id label detail at tone } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b",
"input": {
"quantity": 60,
"priority": "MEDIUM",
"notes": "Synthetic edit"
}
}Response · HTTP 200
{
"data": {
"updateOrder": {
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b",
"jobCardId": "01a14ba9-79f7-727d-9878-213ff050bcf7",
"customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
"customerName": "Demo Agro Implements",
"customerEmail": null,
"partName": "Audit Flange",
"jobName": "Audit batch",
"description": "Synthetic audit batch",
"quantity": 60,
"priority": "MEDIUM",
"status": "NEW",
"dueDate": "2026-11-06",
"poNumber": "PO-AUDIT-001",
"poAmount": 5000000,
"routeCardNo": "RC-AUDIT-001",
"dcNo": "DC-AUDIT-001",
"dcDate": "2026-10-18",
"partNumber": "PN-AUDIT-001",
"drawingNumber": "DRW-AUDIT-001",
"rmPartNumber": "RM-AUDIT-001",
"shopOrderNumber": "SO-AUDIT-001",
"rawMaterialSize": "25 mm x 200 mm",
"heatNumber": "HEAT-AUDIT-001",
"projectId": "PRJ-AUDIT-001",
"rawMaterialGrade": "EN8",
"materialSource": "BOUGHT_OUT",
"quoteId": null,
"notes": "Synthetic edit",
"createdAt": "2026-10-17T20:59:20.430Z",
"designFile": null,
"documents": [],
"statusHistory": [
{
"id": "01a14ba9-79fb-735f-b92b-2d180a4e409e",
"label": "Order created",
"detail": null,
"at": "2026-10-17T20:59:20.443Z",
"tone": "INFO"
},
{
"id": "01a14ba9-7d51-7f19-bb94-fd14e5f214a7",
"label": "Order updated",
"detail": "quantity, priority, notes",
"at": "2026-10-17T20:59:21.297Z",
"tone": "NEUTRAL"
}
]
}
}
}078OrderForm · attach-designownerPOST /graphql200 OKAs expected17 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-078",
"content-type": "application/json"
}Query
mutation AuditAttachDesign($id: ID!, $input: OrderUpdateInput!) { updateOrder(id: $id, input: $input) { id designFile { ...F } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b",
"input": {
"designFile": {
"id": "01a14ba9-8093-7522-b009-598b20ea39a7",
"name": "drawing.pdf",
"kind": "Design file",
"sizeBytes": 9
}
}
}Response · HTTP 200
{
"data": {
"updateOrder": {
"id": "01a14ba9-79f7-79ad-9215-d98db4dbe96b",
"designFile": {
"id": "01a14ba9-8093-7522-b009-598b20ea39a7",
"name": "drawing.pdf",
"kind": "Design file",
"sizeBytes": 9
}
}
}
}