Skip to main content

Order Details

Get order details

HTTP Request

[GET] /api/v6/sale_orders/{id}

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
order_codestringOrder code
real_amountnumericTotal order amount
f_amountnumericTotal paid amount
discountnumericDiscount percentage
discount_amountnumericDiscount amount
vat_amountnumericVAT amount
account_idintegerCustomer identifier
account_codestringCustomer code
account_emailstringCustomer email
account_phonenumericCustomer phone number
account_addressstringCustomer address
contact_namestringContact name
contact_phonestringContact phone number
contact_emailstringContact email
order_datestringOrder date in (Y-m-d) format
created_atstringCreation date in (Y-m-d H:i:s) format
updated_atstringModification date in (Y-m-d H:i:s) format
statusintegerStatus
status_labelstringStatus name
store_idintegerWarehouse identifier
assigned_userintegerOrder executor
assigned_user_namestringExecutor name
payment_statusstringPayment status (must also pass has_pay_off)
order_detailsarrayProduct information in the order
order_details.*.product_idintegerProduct identifier
order_details.*.product_codestringProduct code
order_details.*.product_namestringProduct name
order_details.*.notestringProduct description
order_details.*.product_sale_offnumericProduct discount
order_details.*.cash_discountnumericCash discount
order_details.*.pricenumericProduct price
order_details.*.quantitynumericProduct quantity
order_details.*.vatnumericProduct VAT (%)
order_details.*.vat_amountnumericProduct VAT (cash)
custom_fieldsobjectData definition

Example

HTTP Request

GET api/v6/sale_orders/4?fields=product_name HTTP/1.1
Host: example.getflycrm.com
Authorization: Bearer token

Status

200 OK

Response

{
"id": 4,
"order_code": "ORDER_CODE"
}