Get Bill

Get Bill (For Merchant Role)

GET
/user/bill
/user/bill

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

curl -X GET "https://api.t4b.top/user/bill" \
  -H "Authorization: Bearer <token>"

Ok

{
  "data": {
    "total": 100,
    "transactions": [
      {
        "id": 1,
        "createdAt": "2021-01-01T00:00:00.000Z",
        "userId": 1,
        "amount": "10.00",
        "state": "PENDING",
        "orderId": 1,
        "sequenceId": 1,
        "paymentState": "DUE",
        "updatedAt": "2021-01-01T00:00:00.000Z"
      }
    ],
    "purchases": [
      {
        "id": 1,
        "createdAt": "2021-01-01T00:00:00.000Z",
        "userId": 1,
        "amount": "10.00",
        "stockId": 1,
        "paymentState": "DUE",
        "updatedAt": "2021-01-01T00:00:00.000Z"
      }
    ]
  },
  "statusCode": 200
}