Adding a new order.
object
object
currency
(string)
Required. Currency. Standard ISO 4217.
user
(OrderUserType)
Required.
delivery
(OrderDeliveryType)
Required. Delivery.
payments
(ArrayOfOrderPaymentType - array of OrderPaymentType)
Required. Payments.
products
(ArrayOfOrderProductType - array of OrderProductType)
Required. Products.
is_confirmed
(boolean)
Is the order confirmed? Default: false
status_id
(integer)
Order status identifier.
client_request_invoice
(boolean)
Request for invoice
merchant_notes
(string)
Merchant notes.
id
(integer)Identifier of the created order.
OrderUserType
Customer data. Parameters:
email
(string)
Required. Customer's email address.
billing
(OrderUserDataType)
Required. Billing data.
delivery
(OrderUserDataType)
Required. Delivery data.
OrderUserDataType
Customer address data. Parameters:
company
(string)
Company name.
full_name
(string)
First and last name.
address
(string)
Required. Address.
address_more
(string)
Further address.
country
(string)
Required. Country code. ISO 3166-1 alpha-2 standard.
zip_code
(string)
Required. Zip code.
town
(string)
Required. Town.
phone
(string)
Phone.
vat_number
(string)
VAT number.
OrderDeliveryType
Delivery. Parameters:
delivery_id
(integer)
Required. Delivery identifier.
is_weekend_delivery
(boolean)
Delivery on weekend? Default: false
is_express_delivery
(boolean)
Express delivery? Default: false
tracking_numbers
(ArrayOfString)
Shipment tracking number.
OrderPaymentType
Payment. Parameters:
payment_type_id
(integer)
Required. Payment type identifier.
amount
(double)
Amount. Default: total order value.
is_paid
(boolean)
Paid? Default: false.
OrderProductType
Product. Parameters:
product_id
(integer)
Required. Product identifier.
quantity
(double)
Quantity.
options
(ArrayOfInteger)
Product option identifier.
discount
(OrderProductDiscountType)
Discount.
OrderProductDiscountType
Product discount. Parameters:
value
(double)
Required. Discount value.
type
(string)
Discount type. Default: %
.
%
- percentagep
- amount