N1Developer docsv1

TESTED LIVE

Dashboard

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

dashboard

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
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

Search documentation

Search operations, types and errors from the generated contract.