Get shop data

Get shop by date

{
  shops(date: "2020-03-10") {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        id
        date
        roundPerDate
        openedAt
        closedAt
        initialCash
        submitCash
        subTotal
        totalDiscount
        totalAmount
        totalPayment
        totalChange
        created
        lastUpdated
        status
      }
    },
    totalCount
  }
}

Get opened shop data

{
  shops(status: "OPENED") {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        id
        date
        roundPerDate
        openedAt
        closedAt
        initialCash
        submitCash
        subTotal
        totalDiscount
        totalAmount
        totalPayment
        totalChange
        created
        lastUpdated
        status
      }
    },
    totalCount
  }
}

example response

{
  "data": {
    "shops": {
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjA="
      },
      "edges": [
        {
          "cursor": "YXJyYXljb25uZWN0aW9uOjA=",
          "node": {
            "id": "U2hvcE5vZGU6Mzc=",
            "date": "2020-03-10",
            "roundPerDate": 1,
            "openedAt": "2020-03-10T11:38:02.433566+00:00",
            "closedAt": "2020-03-10T19:00:56.683412+00:00",
            "initialCash": 0,
            "submitCash": 96090,
            "subTotal": 167183,
            "totalDiscount": 2668.5,
            "totalAmount": 164514.5,
            "totalPayment": 203869.5,
            "totalChange": 39355,
            "created": "2020-03-10T11:38:02.433759+00:00",
            "lastUpdated": "2020-03-10T19:00:56.683569+00:00",
            "status": "CLOSED"
          }
        }
      ],
      "totalCount": 1
    }
  }
}
Last updated on