Zenki
Zenki Home Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Orders pending shipment

The following endpoint is used to generate a list of orders with status pending shipment, this list will serve as a reference to later use the endpoint to load tracking guides for orders that do not yet have a tracking guide.

💡 Remember that you must use the previously generated Bearer Token Access Token


ENDPOINT

GET  https://api.zenki.fi/v1/api/tracking 
  • Headers
    • Accept: application/json
    • Authorization: Bearer Tokens
  • Authorization [Bearer Token]
    • Token : (token)
  • Response attributes
    • orderId: (string)
    • items : (object)
      • orderItemId : (string)
      • order : (string)
      • orderId : (string)
      • externalItemId : (string)
      • status : (string) - Order Status. Must be PENDING (Pending Shipment)
      • quantity : (number)
      • price : (number)
      • thumbnailUrl : (string)
      • productName : (string)
      • productDescription : (string)
      • props : (string)
      • metadata : (object)
        • metadataExample1: (string)
        • metadataExample2: (string)
      • rmanumber: (string)
      • rmaissuedBy: (string)
      • rmaissuedDate: (date)

cURL

1
2
3
4
curl --request GET \
     --url https://api.zenki.fi/v1/api/tracking \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIwenJMTnEwbzBab1R4NTlaeWVPaTI1RGxZLWl6cV91SVFSLThWS0RaWjlFIn0.eyJleHAiOjE2NjE3ODk3NTQsImlhdCI6MTY2MTc4Nzk1NCwianRpIjoiYTczZDUwN2MtZmJkMS00MjE0LThjMjUtMDBlN2ZiYTk5Nzc0IiwiaXNzIjoiaHR0cHM6Ly9kZXYtYXV0aC56ZW5raS5maS9hdXRoL3JlYWxtcy9wYnciLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZWQ3ZWQ1ZmMtZjBmNy00OWEwLWEwNWYtNWNiZTFkMjZkYTlkIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiemVua2ktcGF5Iiwic2Vzc2lvbl9zdGF0ZSI6IjhmNmJkYzYzLWFiYTctNGMxNy1hZTcyLWEwNDcyZj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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[
  {
    "orderId": "79d8d1bae04642cc8f86cce2f521f3a0",
    "items": [
      {
        "orderItemId": "44bb712ba7f14872bb8c7ba22029f838",
        "order": null,
        "orderId": "79d8d1bae04642cc8f86cce2f521f3a0",
        "externalItemId": "",
        "status": "PENDING",
        "quantity": 1,
        "price": 0.5,
        "thumbnailUrl": "https://zenkipay.zenki.fi",
        "productName": "Sample product",
        "productDescription": "",
        "props": null,
        "metadata": {
          "metadataExample1": "exaple1",
          "metadataExample2": "exaple2"
        },
        "rmanumber": null,
        "rmaissuedBy": null,
        "rmaissuedDate": null
      }
    ]
  },
  {
    "orderId": "951b6761f0374cb7ba3a5462c645bfa4",
    "items": [
      {
        "orderItemId": "05956e74402a4516aab3824c83fd3976",
        "order": null,
        "orderId": "951b6761f0374cb7ba3a5462c645bfa4",
        "externalItemId": "",
        "status": "PENDING",
        "quantity": 1,
        "price": 0.5,
        "thumbnailUrl": "https://zenkipay.zenki.fi",
        "productName": "Sample product",
        "productDescription": "",
        "props": null,
        "metadata": {
          "metadataExample1": "exaple1",
          "metadataExample2": "exaple2"
        },
        "rmanumber": null,
        "rmaissuedBy": null,
        "rmaissuedDate": null
      }
    ]
  }
]

Errors

Code Description json
401 The request has not been executed because it lacks valid authentication credentials for the requested resource. Unauthorized