GET
/
orders
curl --request GET \
  --url https://dashboard.scango.ch/api/v1/orders \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "giftcardCurrentValue": 123,
      "instance": "<string>",
      "orderId": "<string>",
      "price": 123,
      "giftcardFunction": "<string>",
      "paymentMethod": "<string>",
      "store": "<string>",
      "userId": "<string>",
      "orderDate": {
        "_seconds": 123,
        "_nanoseconds": 123
      },
      "orderState": "<string>",
      "giftcardId": "<string>",
      "products": [
        {
          "quantity": 123,
          "productId": "<string>",
          "netPrice": 123,
          "tax": 123,
          "title": "<string>",
          "type": "<string>",
          "taxRate": 123,
          "originalProductId": "<string>",
          "price": 123,
          "supplier": "<string>",
          "imageUrl": "<string>",
          "deposit": 123,
          "category": "<string>"
        }
      ],
      "paymentBrand": "<string>",
      "transactionDate": {
        "_seconds": 123,
        "_nanoseconds": 123
      },
      "paymentState": "successful",
      "transactionMessage": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start
string

Start date (Format: 2020-01-01T00:00:00Z)

end
string

End date (Format: 2020-01-01T00:00:00Z)

paymentState
enum<string>

Payment status filter

Available options:
successful,
cancelled,
timeout,
failed,
pending

Response

200 - application/json
List of orders
data
object[]