For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve an order

Returns the full details of a single order identified by its primary key.

get
/orders/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the order.

Responses
200

The requested order.

application/json

A customer order record.

pkintegerRead-onlyOptional

The unique identifier of the order. Assigned by the server; read-only.

numberstring · max: 128Optional

The unique order number. Auto-generated on creation using the pattern defined by the ORDER_NUMBER_GENERATOR_CONF dynamic setting.

statusstring · enumOptional

The lifecycle status of an order. Values are numeric strings that increase as the order progresses through its lifecycle.

ValueNameDescription
50cancellation_waitingCancellation requested, pending.
100cancelledOrder cancelled.
200waitingOrder created; payment not yet confirmed.
300payment_waitingPayment initiated, awaiting confirmation.
350confirmation_waitingAwaiting manual confirmation.
400approvedPayment confirmed; order approved for fulfilment.
430waiting_for_substituteWaiting for a substitute product.
450preparingOrder being prepared / packed.
500shippedOrder dispatched to carrier.
510shipped_and_informedOrder shipped and customer notified.
520ready_for_pickupReady for in-store collection.
540attempted_deliveryDelivery attempted; recipient unavailable.
544review_startedTrade-in review started.
545review_waitingTrade-in review waiting.
546waiting_for_paymentWaiting for trade-in payment.
547paidTrade-in payment received.
550deliveredOrder delivered to customer.
600refundedOrder refunded.
700mergedAdd-on order merged into main order.
Example: 400Possible values:
currencystring · enumOptional

ISO 4217 currency code used for the order.

Example: tryPossible values:
userinteger · nullableOptional

The identifier of the registered customer who placed the order. null for guest orders.

user_emailstring · emailOptional

The email address of the customer, always present including for guest orders.

basketinteger · nullableOptional

The identifier of the basket from which the order was created.

shipping_optionintegerOptional

The identifier of the shipping option selected for this order.

shipping_option_slugstring · max: 128Optional

The slug of the shipping option at the time of ordering.

payment_optionintegerOptional

The identifier of the payment option used for this order.

payment_option_slugstring · max: 128Optional

The slug of the payment option at the time of ordering.

cardinteger · nullableOptional

The identifier of the saved card used, if applicable.

bin_numberstring · max: 8 · nullableOptional

The first 6-8 digits of the credit card used, for instalment lookup.

installmentinteger · nullableOptional

The identifier of the instalment option selected, if applicable.

installment_countintegerOptional

Number of instalments. 1 indicates a single (non-instalment) payment.

installment_interest_amountstring · decimalOptional

Additional amount charged as instalment interest. "0.00" for non-instalment orders.

segmentinteger · nullableOptional

The identifier of the customer segment at the time of purchase.

shipping_addressinteger · nullableOptional

The identifier of the delivery address.

billing_addressinteger · nullableOptional

The identifier of the billing address.

checkout_providerinteger · nullableOptional

The identifier of the checkout provider used.

amountstring · decimalOptional

Total order amount including shipping, before discounts.

discount_amountstring · decimalOptional

Total discount applied to the order.

shipping_amountstring · decimalOptional

Shipping charge applied to the order.

shipping_tax_ratestring · nullableOptional

Tax rate applied to the shipping charge.

refund_amountstring · decimalOptional

Total amount refunded.

discount_refund_amountstring · decimalOptional

Discount portion of the refunded amount.

shipping_refund_amountstring · decimalOptional

Shipping portion of the refunded amount.

invoice_numberstring · max: 32 · nullableOptional

Invoice number, set when the invoice has been issued.

invoice_datestring · nullableOptional

Date and time the invoice was issued.

e_archive_urlstring · max: 1024 · nullableOptional

URL of the e-archive invoice document.

tracking_numberstring · max: 256 · nullableOptional

Carrier tracking number.

defined_tracking_urlstring · max: 512 · nullableOptional

An explicitly set tracking URL, used in preference to the carrier-derived tracking URL.

shipping_companystring · enum · nullableOptional

The carrier used to ship the order. null if not yet assigned.

Example: arasPossible values:
shipping_tracking_urlstring · max: 500 · nullableOptional

The full tracking URL for the shipment.

remote_addrstring · nullableOptional

The IP address of the customer's device at the time of ordering.

has_gift_boxboolean · nullableOptional

Whether the order includes a gift box.

gift_box_notestring · max: 160 · nullableOptional

The personal message included with the gift box.

client_typestring · enumOptional

The type of client (channel) through which the order was placed.

Example: defaultPossible values:
language_codestring · max: 256 · nullableOptional

The language code active during the customer's session at the time of ordering.

notesstring · max: 320 · nullableOptional

Delivery instructions or other notes from the customer.

extra_fieldobject · nullableOptional

Unstructured JSON data attached to the order (e.g. campaign rewards, staff info for in-store orders).

is_payablebooleanRead-onlyOptional

Computed field. true if the order uses a pay-later payment option and all eligible trade-in items are in a payment-waiting status.

created_datestring · date-timeRead-onlyOptional

The date and time the order was created.

modified_datestring · date-timeRead-onlyOptional

The date and time the order was last modified.

get/orders/{id}/
GET /api/v1/remote/1/orders/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 12345,
  "number": "000123456789",
  "status": "400",
  "currency": "try",
  "user": 789,
  "user_email": "customer@example.com",
  "basket": null,
  "shipping_option": 42,
  "shipping_option_slug": "standard-delivery",
  "payment_option": 34,
  "payment_option_slug": "credit-card",
  "card": null,
  "bin_number": null,
  "installment": null,
  "installment_count": 1,
  "installment_interest_amount": "0.00",
  "segment": null,
  "shipping_address": 100,
  "billing_address": 101,
  "checkout_provider": null,
  "amount": "249.99",
  "discount_amount": "0.00",
  "shipping_amount": "0.00",
  "shipping_tax_rate": null,
  "refund_amount": "0.00",
  "discount_refund_amount": "0.00",
  "shipping_refund_amount": "0.00",
  "invoice_number": null,
  "invoice_date": null,
  "e_archive_url": null,
  "tracking_number": null,
  "defined_tracking_url": null,
  "shipping_company": null,
  "shipping_tracking_url": null,
  "remote_addr": "203.0.113.42",
  "has_gift_box": false,
  "gift_box_note": null,
  "client_type": "default",
  "language_code": "tr",
  "notes": null,
  "delivery_range": null,
  "extra_field": null,
  "is_payable": false,
  "created_date": "2024-03-15T10:30:00Z",
  "modified_date": "2024-03-15T10:35:00Z"
}

Last updated

Was this helpful?