N1Developer docsv1

TESTED LIVE

Profile

16 real calls against a live Core. Open a call for its headers, request and response.

changeMyPassword

020MyProfile · change-password-without-currentownerPOST /graphql400 GRAPHQL_INVALIDAs decided8 ms

App change: changeMyPassword needs the current password.

Operation
changeMyPassword
Request id
01a14ba9-400f-78c0-a5f0-c08e36a14ceb
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "idempotency-key": "key-020",
  "content-type": "application/json"
}

Query

mutation AuditPw($newPassword: String!) { changeMyPassword(newPassword: $newPassword) }

Variables

{
  "newPassword": "[REDACTED]"
}

Response · HTTP 400

{
  "data": null,
  "errors": [
    {
      "message": "Field \"changeMyPassword\" argument \"currentPassword\" of type \"String!\" is required, but it was not provided.",
      "locations": [
        {
          "line": 1,
          "column": 43
        }
      ],
      "extensions": {
        "code": "GRAPHQL_INVALID",
        "message": "The GraphQL document is invalid.",
        "requestId": "01a14ba9-400f-78c0-a5f0-c08e36a14ceb"
      }
    }
  ]
}

me

008Login · route-by-roleownerPOST /graphql200 OKAs expected57 ms
Operation
me
Request id
01a14ba9-326a-7d6f-b642-821b94b744ac
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditRole { me { appRole user { id role } } session { roles } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "ADMIN",
      "user": {
        "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
        "role": "OWNER"
      }
    },
    "session": {
      "roles": [
        "owner"
      ]
    }
  }
}
009Login · route-by-roleaccountantPOST /graphql200 OKAs expected23 ms
Operation
me
Request id
01a14ba9-33a8-7d07-aa97-9272419e882e
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditRole { me { appRole user { id role } } session { roles } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "USER",
      "user": {
        "id": "01a14ba6-e4e7-7b64-88ac-67a67b46b313",
        "role": "ACCOUNTANT"
      }
    },
    "session": {
      "roles": [
        "accountant"
      ]
    }
  }
}
010Login · route-by-rolesupervisorPOST /graphql200 OKAs expected25 ms
Operation
me
Request id
01a14ba9-34c3-7a07-90ed-4051f118e19d
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditRole { me { appRole user { id role } } session { roles } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "USER",
      "user": {
        "id": "01a14ba6-e442-7fae-b468-bf9fee75d9ec",
        "role": "SUPERVISOR"
      }
    },
    "session": {
      "roles": [
        "supervisor"
      ]
    }
  }
}
011Login · route-by-roleoperatorPOST /graphql200 OKAs expected25 ms
Operation
me
Request id
01a14ba9-35e2-74d9-9cc0-5a28a64179fb
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditRole { me { appRole user { id role } } session { roles } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "USER",
      "user": {
        "id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
        "role": "OPERATOR"
      }
    },
    "session": {
      "roles": [
        "operator"
      ]
    }
  }
}
012Login · route-by-roleqcPOST /graphql200 OKAs expected23 ms
Operation
me
Request id
01a14ba9-36ff-7f4b-b664-661f11fcde46
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditRole { me { appRole user { id role } } session { roles } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "USER",
      "user": {
        "id": "01a14ba6-e48b-766b-8c6b-8862bea47064",
        "role": "QC"
      }
    },
    "session": {
      "roles": [
        "qc"
      ]
    }
  }
}
018MyProfile · loadownerPOST /graphql200 OKAs expected26 ms
Operation
me
Request id
01a14ba9-3dbb-7469-a62c-3537c147d0ef
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditMyProfile { me { appRole permissions: appPermissions { viewOrders manageUsers exportReports } user { ...U } organisation { ...O } } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }
fragment O on Organisation { id code createdAt shortName name logo { ...F } phone email website businessType industry registrationDetails address { line1 line2 city state pincode } country gstRegistered gstin gstState taxRates { id rate active } defaultTaxRate invoicePrefix invoiceStartNumber invoiceFooter invoiceLogo { ...F } termsAndConditions signature { ...F } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "ADMIN",
      "permissions": {
        "viewOrders": true,
        "manageUsers": true,
        "exportReports": true
      },
      "user": {
        "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
        "name": "Demo Owner",
        "email": "owner@demo-coimbatore.demo.none1.in",
        "phone": null,
        "designation": "Proprietor",
        "department": "",
        "address": "",
        "city": "",
        "state": "",
        "pinCode": "",
        "country": "India",
        "role": "OWNER",
        "status": "ACTIVE",
        "joinedAt": "2026-10-17",
        "hasPassword": true,
        "permissions": {
          "viewOrders": true,
          "manageUsers": true,
          "exportReports": true
        },
        "photo": null,
        "documents": [],
        "activity": {
          "totalCount": 1,
          "edges": [
            {
              "node": {
                "id": "01a14ba6-e41d-719e-8cd0-bccc9ac18713",
                "label": "Joined organisation",
                "detail": null,
                "at": "2026-10-17T20:56:31.000Z",
                "tone": "INFO"
              }
            }
          ]
        }
      },
      "organisation": {
        "id": "01a14ba6-e3d8-7d56-8060-bfa0d3554b8b",
        "code": "demo-coimbatore",
        "createdAt": "2026-10-17T20:56:30.900Z",
        "shortName": "Demo Precision Works, Coimbatore",
        "name": "Demo Precision Works, Coimbatore",
        "logo": null,
        "phone": "",
        "email": "",
        "website": "",
        "businessType": "private-limited",
        "industry": "metal-manufacturing",
        "registrationDetails": "",
        "address": {
          "line1": "",
          "line2": null,
          "city": "",
          "state": "",
          "pincode": ""
        },
        "country": "India",
        "gstRegistered": true,
        "gstin": "33DEMOA0001A1Z5",
        "gstState": "Tamil Nadu",
        "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
          }
        ],
        "defaultTaxRate": 18,
        "invoicePrefix": "CBE",
        "invoiceStartNumber": 1,
        "invoiceFooter": "",
        "invoiceLogo": null,
        "termsAndConditions": "",
        "signature": null
      }
    }
  }
}
021ProfileSection · load-organisation-sectionownerPOST /graphql200 OKAs expected12 ms
Operation
me
Request id
01a14ba9-411d-7f99-8ee9-f8729972387b
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditProfileSection { me { user { id name designation email phone joinedAt address city state pinCode country hasPassword } organisation { name code } } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "user": {
        "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
        "name": "Audit Owner",
        "designation": "Owner",
        "email": "owner@demo-coimbatore.demo.none1.in",
        "phone": null,
        "joinedAt": "2026-10-17",
        "address": "10 Synthetic Works Road",
        "city": "Coimbatore",
        "state": "Tamil Nadu",
        "pinCode": "641001",
        "country": "India",
        "hasPassword": true
      },
      "organisation": {
        "name": "Demo Precision Works, Coimbatore",
        "code": "demo-coimbatore"
      }
    }
  }
}
022EmployeeProfile · loadoperatorPOST /graphql200 OKAs expected15 ms
Operation
me
Request id
01a14ba9-422e-7516-a13c-9ef3d4cc2980
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditEmployeeProfile { me { user { id name role department joinedAt phone email } } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "user": {
        "id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
        "name": "Demo Operator",
        "role": "OPERATOR",
        "department": "",
        "joinedAt": "2026-10-17",
        "phone": null,
        "email": "operator@demo-coimbatore.demo.none1.in"
      }
    }
  }
}
023EmployeeProfile · load-app-fieldsoperatorPOST /graphql200 OKAs expected13 ms

App EmployeeProfile shows employeeId and shift.

Operation
me
Request id
01a14ba9-4343-7e45-9763-9fc850f956d1
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditEmployeeProfileApp { me { user { id employeeId shift } } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "me": {
      "user": {
        "id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
        "employeeId": "",
        "shift": ""
      }
    }
  }
}
061Dashboard · load-weekownerPOST /graphql200 OKAs expected52 ms
Operation
dashboard+me
Request id
01a14ba9-6e95-78dd-b017-033be55bd074
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditDashboard($period: DashboardPeriod!) { me { appRole user { id name email role } organisation { id name shortName } } dashboard(period: $period, first: 5, priorityFirst: 5) { period from to updatedAt billed outstanding orders customerDistribution { totalCount edges { node { id name orders percent totalRevenue outstandingBalance pendingDelivery } } } priorityJobs { totalCount edges { node { id routeCardNo jobCard { id orderId code customerName partName dueDate status priority operations { ...OP } } } } } } }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }

Variables

{
  "period": "WEEK"
}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "ADMIN",
      "user": {
        "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
        "name": "Audit Owner",
        "email": "owner@demo-coimbatore.demo.none1.in",
        "role": "OWNER"
      },
      "organisation": {
        "id": "01a14ba6-e3d8-7d56-8060-bfa0d3554b8b",
        "name": "Demo Coimbatore Works",
        "shortName": "Demo Coimbatore Works"
      }
    },
    "dashboard": {
      "period": "WEEK",
      "from": "2026-10-12",
      "to": "2026-10-18",
      "updatedAt": "2026-10-17T20:59:17.531Z",
      "billed": 2472100,
      "outstanding": 1004770,
      "orders": 6,
      "customerDistribution": {
        "totalCount": 5,
        "edges": [
          {
            "node": {
              "id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
              "name": "Demo Agro Implements",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
              "name": "Demo Auto Components",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 1004770,
              "outstandingBalance": 1004770,
              "pendingDelivery": 0
            }
          },
          {
            "node": {
              "id": "01a14ba6-e579-7091-b879-fd026c5ab537",
              "name": "Demo Hydraulics",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
              "name": "Demo Pumps & Valves",
              "orders": 2,
              "percent": 33.333333333333336,
              "totalRevenue": 1467330,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
              "name": "Demo Textile Machinery",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          }
        ]
      },
      "priorityJobs": {
        "totalCount": 1,
        "edges": [
          {
            "node": {
              "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
              "routeCardNo": "JOB4",
              "jobCard": {
                "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
                "orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
                "code": "JOB4",
                "customerName": "Demo Agro Implements",
                "partName": "Bearing housing",
                "dueDate": "2026-10-23",
                "status": "NOT_STARTED",
                "priority": "HIGH",
                "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
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}
062Dashboard · load-monthownerPOST /graphql200 OKAs expected24 ms
Operation
dashboard+me
Request id
01a14ba9-6fce-74cd-9f58-d708ba7b31f3
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditDashboard($period: DashboardPeriod!) { me { appRole user { id name email role } organisation { id name shortName } } dashboard(period: $period, first: 5, priorityFirst: 5) { period from to updatedAt billed outstanding orders customerDistribution { totalCount edges { node { id name orders percent totalRevenue outstandingBalance pendingDelivery } } } priorityJobs { totalCount edges { node { id routeCardNo jobCard { id orderId code customerName partName dueDate status priority operations { ...OP } } } } } } }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }

Variables

{
  "period": "MONTH"
}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "ADMIN",
      "user": {
        "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
        "name": "Audit Owner",
        "email": "owner@demo-coimbatore.demo.none1.in",
        "role": "OWNER"
      },
      "organisation": {
        "id": "01a14ba6-e3d8-7d56-8060-bfa0d3554b8b",
        "name": "Demo Coimbatore Works",
        "shortName": "Demo Coimbatore Works"
      }
    },
    "dashboard": {
      "period": "MONTH",
      "from": "2026-10-01",
      "to": "2026-10-18",
      "updatedAt": "2026-10-17T20:59:17.842Z",
      "billed": 2472100,
      "outstanding": 1004770,
      "orders": 6,
      "customerDistribution": {
        "totalCount": 5,
        "edges": [
          {
            "node": {
              "id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
              "name": "Demo Agro Implements",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
              "name": "Demo Auto Components",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 1004770,
              "outstandingBalance": 1004770,
              "pendingDelivery": 0
            }
          },
          {
            "node": {
              "id": "01a14ba6-e579-7091-b879-fd026c5ab537",
              "name": "Demo Hydraulics",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
              "name": "Demo Pumps & Valves",
              "orders": 2,
              "percent": 33.333333333333336,
              "totalRevenue": 1467330,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
              "name": "Demo Textile Machinery",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          }
        ]
      },
      "priorityJobs": {
        "totalCount": 1,
        "edges": [
          {
            "node": {
              "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
              "routeCardNo": "JOB4",
              "jobCard": {
                "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
                "orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
                "code": "JOB4",
                "customerName": "Demo Agro Implements",
                "partName": "Bearing housing",
                "dueDate": "2026-10-23",
                "status": "NOT_STARTED",
                "priority": "HIGH",
                "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
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}
063Dashboard · load-yearownerPOST /graphql200 OKAs expected29 ms
Operation
dashboard+me
Request id
01a14ba9-70eb-7863-bec3-8ef2a1667141
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditDashboard($period: DashboardPeriod!) { me { appRole user { id name email role } organisation { id name shortName } } dashboard(period: $period, first: 5, priorityFirst: 5) { period from to updatedAt billed outstanding orders customerDistribution { totalCount edges { node { id name orders percent totalRevenue outstandingBalance pendingDelivery } } } priorityJobs { totalCount edges { node { id routeCardNo jobCard { id orderId code customerName partName dueDate status priority operations { ...OP } } } } } } }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }

Variables

{
  "period": "YEAR"
}

Response · HTTP 200

{
  "data": {
    "me": {
      "appRole": "ADMIN",
      "user": {
        "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
        "name": "Audit Owner",
        "email": "owner@demo-coimbatore.demo.none1.in",
        "role": "OWNER"
      },
      "organisation": {
        "id": "01a14ba6-e3d8-7d56-8060-bfa0d3554b8b",
        "name": "Demo Coimbatore Works",
        "shortName": "Demo Coimbatore Works"
      }
    },
    "dashboard": {
      "period": "YEAR",
      "from": "2026-01-01",
      "to": "2026-10-18",
      "updatedAt": "2026-10-17T20:59:18.128Z",
      "billed": 2472100,
      "outstanding": 1004770,
      "orders": 6,
      "customerDistribution": {
        "totalCount": 5,
        "edges": [
          {
            "node": {
              "id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
              "name": "Demo Agro Implements",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
              "name": "Demo Auto Components",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 1004770,
              "outstandingBalance": 1004770,
              "pendingDelivery": 0
            }
          },
          {
            "node": {
              "id": "01a14ba6-e579-7091-b879-fd026c5ab537",
              "name": "Demo Hydraulics",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
              "name": "Demo Pumps & Valves",
              "orders": 2,
              "percent": 33.333333333333336,
              "totalRevenue": 1467330,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          },
          {
            "node": {
              "id": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
              "name": "Demo Textile Machinery",
              "orders": 1,
              "percent": 16.666666666666668,
              "totalRevenue": 0,
              "outstandingBalance": 0,
              "pendingDelivery": 1
            }
          }
        ]
      },
      "priorityJobs": {
        "totalCount": 1,
        "edges": [
          {
            "node": {
              "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
              "routeCardNo": "JOB4",
              "jobCard": {
                "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
                "orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
                "code": "JOB4",
                "customerName": "Demo Agro Implements",
                "partName": "Bearing housing",
                "dueDate": "2026-10-23",
                "status": "NOT_STARTED",
                "priority": "HIGH",
                "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
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}
109AssignMachine · loadoperatorPOST /graphql200 OKAs expected16 ms
Operation
jobCardByQr+machines+me
Request id
01a14ba9-b600-7cd0-9366-3b043361a9ff
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditAssignMachineLoad($qr: String!) { jobCardByQr(qrValue: $qr) { id orderId partName jobName operations { ...OP } } machines(first: 10) { totalCount edges { node { id name code location status currentAssignment { id jobCardId jobOperationId operationName startedAt } } } } me { user { id name } } }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }

Variables

{
  "qr": "JC-00004"
}

Response · HTTP 200

{
  "data": {
    "jobCardByQr": {
      "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
      "orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
      "partName": "Bearing housing",
      "jobName": null,
      "operations": [
        {
          "id": "01a14ba6-e670-7383-a269-879726ac44d1",
          "seq": 1,
          "name": "Turning",
          "machineId": null,
          "machineName": null,
          "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
          "operatorName": "Demo Operator",
          "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
        }
      ]
    },
    "machines": {
      "totalCount": 4,
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e589-7248-a7e0-1239851b82aa",
            "name": "CNC Lathe 1",
            "code": "MC-851B82AA",
            "location": "Bay 1",
            "status": "RUNNING",
            "currentAssignment": {
              "id": "01a14ba6-e843-79ed-952f-25d5e9b3a2ed",
              "jobCardId": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
              "jobOperationId": "01a14ba6-e65f-75d4-bf28-cbbe41f127f6",
              "operationName": "Turning",
              "startedAt": "2026-10-17T20:56:32.063Z"
            }
          }
        },
        {
          "node": {
            "id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98",
            "name": "CNC Lathe 2",
            "code": "MC-137E4B98",
            "location": "Bay 1",
            "status": "IDLE",
            "currentAssignment": null
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5d7-711c-bcba-22be75d5d8b4",
            "name": "Conventional Lathe 1",
            "code": "MC-75D5D8B4",
            "location": "Bay 3",
            "status": "MAINTENANCE",
            "currentAssignment": null
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5b5-71f3-aaea-903c4d97acc6",
            "name": "VMC 1",
            "code": "MC-4D97ACC6",
            "location": "Bay 2",
            "status": "IDLE",
            "currentAssignment": null
          }
        }
      ]
    },
    "me": {
      "user": {
        "id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
        "name": "Demo Operator"
      }
    }
  }
}
122QcCheck · loadqcPOST /graphql200 OKAs expected12 ms
Operation
jobCard+me
Request id
01a14ba9-c40f-703e-b51d-2ba4a7682909
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditQcCheck($id: ID!) { jobCard(id: $id) { ...J } me { user { id name } } }
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

{
  "id": "01a14ba6-e65b-777f-9975-ca8ed40d8792"
}

Response · HTTP 200

{
  "data": {
    "jobCard": {
      "id": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
      "orderId": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
      "code": "JOB3",
      "qrValue": "JC-00003",
      "customerId": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
      "customerName": "Demo Textile Machinery",
      "partName": "Gear blank",
      "jobName": null,
      "material": "EN8 steel",
      "quantity": 200,
      "priority": "MEDIUM",
      "dueDate": "2026-11-01",
      "status": "IN_PROGRESS",
      "designApproval": "APPROVED",
      "materialSource": "BOUGHT_OUT",
      "materialQc": "ACCEPTED",
      "quotation": "PENDING",
      "billing": "NOT_INVOICED",
      "designFile": {
        "id": "01a14ba6-e7e4-7d7a-9cfa-a05cff574f5d",
        "name": "synthetic-demo-drawing.pdf",
        "kind": "DESIGN",
        "sizeBytes": 0
      },
      "operations": [
        {
          "id": "01a14ba6-e65f-75d4-bf28-cbbe41f127f6",
          "seq": 1,
          "name": "Turning",
          "machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
          "machineName": "CNC Lathe 1",
          "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
          "operatorName": "Demo Operator",
          "status": "RUNNING",
          "startedAt": "2026-10-17T20:56:32.063Z",
          "completedAt": null
        },
        {
          "id": "01a14ba6-e65f-7d50-be77-0daed0461d04",
          "seq": 2,
          "name": "Milling",
          "machineId": null,
          "machineName": null,
          "operatorId": null,
          "operatorName": null,
          "status": "PENDING",
          "startedAt": null,
          "completedAt": null
        },
        {
          "id": "01a14ba6-e65f-7f06-96f5-34afdc3af49f",
          "seq": 3,
          "name": "Finishing",
          "machineId": null,
          "machineName": null,
          "operatorId": null,
          "operatorName": null,
          "status": "PENDING",
          "startedAt": null,
          "completedAt": null
        }
      ],
      "qcHistory": [
        {
          "id": "01a14ba6-e82f-78e9-b50d-88a90f1fb703",
          "kind": "RM",
          "stage": "Incoming inspection",
          "result": "ACCEPTED",
          "remark": null,
          "recordedAt": "2026-10-17T20:56:32.044Z",
          "jobOperationId": null,
          "inspector": "Demo Inspector",
          "rejectedMaterial": null,
          "report": null
        }
      ]
    },
    "me": {
      "user": {
        "id": "01a14ba6-e48b-766b-8c6b-8862bea47064",
        "name": "Demo Inspector"
      }
    }
  }
}

updateMyProfile

019MyProfile · save-accountownerPOST /graphql200 OKAs expected47 ms
Operation
updateMyProfile
Request id
01a14ba9-3edb-73bc-8c3d-9a977a8b260c
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "idempotency-key": "key-019",
  "content-type": "application/json"
}

Query

mutation AuditMyProfileSave($input: UpdateMyProfileInput!) { updateMyProfile(input: $input) { ...U } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }

Variables

{
  "input": {
    "name": "Audit Owner",
    "designation": "Owner",
    "address": "10 Synthetic Works Road",
    "city": "Coimbatore",
    "state": "Tamil Nadu",
    "pinCode": "641001",
    "country": "India"
  }
}

Response · HTTP 200

{
  "data": {
    "updateMyProfile": {
      "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
      "name": "Audit Owner",
      "email": "owner@demo-coimbatore.demo.none1.in",
      "phone": null,
      "designation": "Owner",
      "department": "",
      "address": "10 Synthetic Works Road",
      "city": "Coimbatore",
      "state": "Tamil Nadu",
      "pinCode": "641001",
      "country": "India",
      "role": "OWNER",
      "status": "ACTIVE",
      "joinedAt": "2026-10-17",
      "hasPassword": true,
      "permissions": {
        "viewOrders": true,
        "manageUsers": true,
        "exportReports": true
      },
      "photo": null,
      "documents": [],
      "activity": {
        "totalCount": 1,
        "edges": [
          {
            "node": {
              "id": "01a14ba6-e41d-719e-8cd0-bccc9ac18713",
              "label": "Joined organisation",
              "detail": null,
              "at": "2026-10-17T20:56:31.000Z",
              "tone": "INFO"
            }
          }
        ]
      }
    }
  }
}

Search documentation

Search operations, types and errors from the generated contract.