Function orders/get (<http://<DOMAIN>>/api/orders/get/)
<aside> 🗒️ Block customer_details in Getting order list only for b2b projects
</aside>
<aside> 🗒️ dropshipping_details block and new ownTTNPicked parameter in the delivery_data array in the order list only for b2b projects
</aside>
Parameters:
token
— authorization key obtained through the auth function.from
— show orders from the specified date (inclusive). Optional parameter.
Date format:
to
— show orders up to the specified date (inclusive). Optional parameter.
Date Format:
ids[]
— order numbers for displaystatus
— show orders with selected statuses (all statuses can be downloaded via the Get order statuses function). Optional parameter. The parameter can be passed as an array or variable (status=1 or status[]=1&status[]=2, {status:1}, {status:[1, 2]}). Possible values:
additionalData
— boolean value (true or false). Allows to upload additional information about the order, for example, tracking number, recipient's and sender's warehouse.offset
— offset of user selection relative to the start (works only in combination with the limit parameter)limit
— number of orders displayedResponse:
status
response.orders
— array containing orders
response.orders[i]
order_id
— order numberuser
— user ID in the system (unique for each user)delivery_name
— recipient's full namedelivery_email
— email (unique for each user within the system, duplication is not possible)delivery_phone
— phone numberdelivery_city
— citydelivery_address
— delivery address (if UkrPoshta delivery option is selected, fields are separated by @ symbol)delivery_type
— delivery type
delivery_type.id
— delivery type identifier in the API. You can get information about delivery options through the functions Delivery options export and Delivery types export.
delivery_type.title
— delivery type namedelivery_price
— delivery cost ("delivery_price": -1
— means that the cost of delivery is calculated at the carrier's rates)comment
— customer comments on the orderpayment_type
— payment type. You can get information about payment options through the Payment options export and Payment methods export functions.
payment_type.id
— payment type identifier in API
payment_type.title
— payment type namepayment_price
— payment feepayed
— paid (1 — yes; 0 — no)total_default
— cost of goods (excluding discounts)total_sum
— total cost (including all discounts, but excluding shipping costs)total_quantity
— total number of items in the orderdiscount_percent
— relative discountdiscount_value
— discount amountcoupon_code
— discount coupon codecoupon_percent
— relative discount of the couponcoupon_discount_value
— coupon discount amountcoupon_type
— coupon type
stat_status
— order status. You can get information about all order statuses via the Get order statuses function (available since version 4.0).
stat_created
— date and time of order placement (example: 2021-04-09 12:09:01)currency
— currency in which the order was placed (in ISO format, for example: UAH — hryvnia, USD — dollar, EUR — euro, etc.). You can get information about all currencies through the Currency and exchange rate export function.order_without_callback
— boolean value (true or false). Whether the customer should be called back (added in version 3.32).manager_id
— id of the manager who processed the ordermanager_comment
— manager's commentmanager_discount
— manager's discountmanager_discount_title
— manager's discount namedelivery_country
— country of delivery (if country selection is enabled on the checkout page)products[i]
— products in an orderadditional_data
— additional order information (only displayed if you pass the "additionalData": true
key in the body of the query)