Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1.99 KB

File metadata and controls

53 lines (44 loc) · 1.99 KB

Create Order Request

Request for creating an order

Structure

CreateOrderRequest

Fields

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

Example (as JSON)

{
  "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
}