Request for creating an order
CreateOrderRequest
| Name | Type | Tags | Description |
|---|---|---|---|
items |
CreateOrderItemRequest[] |
Required | Items |
customer |
CreateCustomerRequest |
Required | Customer |
payments |
CreatePaymentRequest[] |
Required | Payment data |
code |
string |
Required | The order code |
customerId |
string |
Required | The customer id |
shipping |
CreateShippingRequest | undefined |
Optional | Shipping data |
metadata |
Record<string, string> |
Required | Metadata |
antifraudEnabled |
boolean | undefined |
Optional | Defines whether the order will go through anti-fraud |
ip |
string | undefined |
Optional | Ip address |
sessionId |
string | undefined |
Optional | Session id |
location |
CreateLocationRequest | undefined |
Optional | Request's location |
device |
CreateDeviceRequest | undefined |
Optional | Device's informations |
closed |
boolean |
Required | Default: true |
currency |
string | undefined |
Optional | Currency |
antifraud |
CreateAntifraudRequest | undefined |
Optional | - |
submerchant |
CreateSubMerchantRequest | undefined |
Optional | SubMerchant |
{
"items": null,
"customer": {
"name": "{\n \"name\": \"Tony Stark\"\n}",
"email": null,
"document": null,
"type": null,
"address": null,
"metadata": null,
"phones": null,
"code": null
},
"payments": null,
"code": null,
"customer_id": null,
"metadata": null,
"closed": true
}