Order
Module endpoints
GET /orders
GET /orders
GET
https://api.slyk.io/orders
Returns a paginated list of orders
.
Name | Type | Example |
amount |
|
|
assetCode |
|
|
bonus |
|
|
fulfilledAt |
|
|
hideDrafts |
|
|
orderStatus |
|
|
paidAmount |
|
|
paidAt |
|
|
paymentStatus |
|
|
reference |
|
|
trackingId |
|
|
userId |
|
|
GET /orders/:id
GET /orders/:id
GET
https://api.slyk.io/orders/:id
Gets the order details of the given id
.
GET /orders/:orderId/lines
GET /orders/:orderId/lines
GET
https://api.slyk.io/orders/:id/lines
Returns a paginated list of order lines
.
Name | Type | Example |
assetCode |
|
|
fulfilledAt |
|
|
fulfilledQuantity |
|
|
quantity |
|
|
status |
|
|
unitPrice |
|
|
GET /orders/:orderId/lines/:id
GET /orders/:orderId/lines/:id
GET
https://api.slyk.io/orders/:orderId/lines/:id
Gets the order line details of the given id
on the order with the given orderId
.
PATCH /orders/:id
PATCH /orders/:id
PATCH
https://api.slyk.io/order/:id
Patches the order
details of the given id
.
Field | Type | Required | Description |
trackingId |
|
| Order tracking identifier. Format: |
POST /orders
POST /orders
POST
https://api.slyk.io/orders
Creates a new order
.
Field | Type | Required | Description |
chosenPaymentMethod |
|
| Order chosen payment method. This value is merely indicative. |
customData |
|
| Can store any additional information about the order. |
deliveryMethod |
|
| Available delivery methods: shipping or pickup |
dryRun |
|
| Dry run flag. If true, the order creation won't be committed. (default: false) |
lines |
|
| Order lines. The order line request parameters are defined on the next table. |
shippingAddressId |
|
| Shipping address identification. This attribute is required if delivery method is set to shipping |
useBonus |
|
| Flag to indicate if it should use bonus balance to pay the order. (default: false) |
userId |
|
| Associated user identifier. Format: |
userNotes |
|
| Order user notes. |
walletId |
|
| Wallet id from where the payment should be performed immediately. |
Order line request parameters:
Field | Type | Required | Description |
productId |
|
| Associated product identifier. Format: |
productQuestionsResult |
|
| Order line questions result. |
quantity |
|
| Order line quantity. |
POST /orders/:id/cancel
POST /orders/:id/cancel
POST
http://api.slyk.io/orders/:id/cancel
Cancels the order
with the given id
.
Field | Type | Required | Description |
reason |
|
| Order cancel reason. |
refundAmount |
|
| Order refund amount value. |
POST /orders/:id/fulfill
POST /orders/:id/fulfill
POST
http://api.slyk.io/orders/:id/fulfill
Fulfills the order
with the given id
.
Field | Type | Required | Description |
trackingId |
|
| Order tracking identifier. Format: |
POST /orders/:id/pay
POST /orders/:id/pay
POST
http://api.slyk.io/orders/:id/pay
Pays the order
with the given id
.
Field | Type | Required | Description |
amount |
|
| Amount to pay. |
walletId |
|
| Associated wallet identifier. Format: |
POST /orders/:id/unfulfill
POST /orders/:id/unfulfill
POST
http://api.slyk.io/orders/:id/unfulfill
Unfulfills the order
with the given id
.
POST /orders/:orderId/lines/:id/fulfill
POST /orders/:orderId/lines/:id/fulfill
POST
http://api.slyk.io/orders/:orderId/lines/:id/fulfill
Fulfills the order line
with the given id
on the order with the given orderId
.
Field | Type | Required | Description |
quantity |
|
| Order line quantity. |
POST /orders/:orderId/lines/:id/unfulfill
POST /orders/:orderId/lines/:id/unfulfill
POST
http://api.slyk.io/orders/:orderId/lines/:id/unfulfill
Unfulfills the order line
with the given id
on the order with the given orderId
.
Field | Type | Required | Description |
quantity |
|
| Order line quantity. |
Last updated