Get receipt data

get COMPLETED receipt in single date

{
  receipts (status: "COMPLETED", date: "2020-03-10") {
    pageInfo{
        hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    },
    edges{
      node {
        id,
        bill {
          id,
          created,
          lastUpdated,
          customerCount,
          totalDiscount,
          subTotal,
          totalAmount,
          totalPayment,
          change,
        },
        created,
        lastUpdated,
        items {
          saleitem {
            id
            name
          }
          unitPrice
          quantity
          totalAmount
          note
        }
        status
      },
      cursor
    }
  }
}

get VOIDED receipt data in date range

receipts (status: "VOIDED", startDate: "2020-03-01", endDate: "2020-03-10") {
    pageInfo{
        hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    },
    edges{
      node {
        id,
        bill {
          id,
          created,
          lastUpdated,
          customerCount,
          totalDiscount,
          subTotal,
          totalAmount,
          totalPayment,
          change,
        },
        created,
        lastUpdated,
        items {
          saleitem {
            id
            name
          }
          unitPrice
          quantity
          totalAmount
          note
        }
        status
      },
      cursor
    }
  }
}

example response data

{
  "data": {
    "receipts": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": false,
        "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjk5"
      },
      "edges": [
        {
          "node": {
            "id": "UmVjZWlwdE5vZGU6MTcyODE=",
            "bill": {
              "id": "17475",
              "created": "2020-03-10T13:09:45.687156+00:00",
              "lastUpdated": "2020-03-10T13:09:59.044573+00:00",
              "customerCount": 0,
              "totalDiscount": 0,
              "subTotal": 195,
              "totalAmount": 195,
              "totalPayment": 500,
              "change": 305
            },
            "created": "2020-03-10T13:09:59.019155+00:00",
            "lastUpdated": "2020-03-10T13:09:59.019198+00:00",
            "items": [
              {
                "saleitem": {
                  "id": "U2FsZUl0ZW1Ob2RlOjI1MA==",
                  "name": "Soda Bt."
                },
                "unitPrice": 65,
                "quantity": 2,
                "totalAmount": 130,
                "note": ""
              },
              {
                "saleitem": {
                  "id": "U2FsZUl0ZW1Ob2RlOjMxOQ==",
                  "name": "ICE"
                },
                "unitPrice": 65,
                "quantity": 1,
                "totalAmount": 65,
                "note": ""
              }
            ],
            "status": "COMPLETED"
          },
          "cursor": "YXJyYXljb25uZWN0aW9uOjA="
        },
        ...
Last updated on