Skip to content

Commit

Permalink
Update order-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdoe authored Jan 8, 2020
1 parent 86c376a commit 4e7e4aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions documentation/order-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ We recommend polling for orders by setting the new request timestamp to the time
| --- | --- | --- |
| `Content-Type: application/json` | Indicates that the request body is of JSON media type | Yes|
| `Authorization: Bearer <api_token>` | Authentication. Contact [email protected] for a token | Yes |
| `X-REKKI-Authorization-Type: supplier_api_token` | Authentication Token type | Yes |

### Request Parameters

Expand All @@ -43,6 +44,7 @@ last order you received's `reference` and ignore the duplicate.
curl -X POST "https://backend.live.rekki.com/api/catalog/integration/list_orders_by_supplier" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_TOKEN" \
-H "X-REKKI-Authorization-Type: supplier_api_token" \
-d "{\"since\":1565610869}"
```

Expand Down Expand Up @@ -123,6 +125,7 @@ const fetch_orders = async function(token, since) {
method: "POST",
headers: {
Authorization: "Bearer " + token,
"X-REKKI-Authorization-Type": "supplier_api_token",
"Content-Type": "application/json",
Accept: "application/json"
},
Expand Down

0 comments on commit 4e7e4aa

Please sign in to comment.