Skip to main content

Show Sales Order

GET 

/api/v2/sales-orders/:salesOrder

Returns core sales order data for the V2 show page. Includes essential fields, addresses, channel info, totals, counts, custom fields, financial lines, tags, discounts, credits, RMAs, and purchase orders.

Line items are loaded separately via the lineItems() endpoint for parallel loading.

Also returns the top-level flag use_sales_order_line_nominal_codes (boolean) — sibling to data — indicating whether the per-line nominal code editor should be enabled in the UI. Mirrors the accounting.use_sales_order_line_nominal_codes config value.

Payment / credit totals:

  • total_paid: aggregated sum of payments.amount for the order — lets the UI render Paid/Balance Due without lazy-loading the payments array.
  • Each entry in sales_credits[] includes refund_payments_total (sum of cash/card refunds against the credit, always positive), applied_to_other_total (sum of credit consumed by Loop Returns EXC-* exchange orders, always positive), fees_retained_total (sum of fees Loop withheld out of the customer's credit — return shipping, restocking, etc., always positive), and outstanding_amount (= total − refund_payments_total − applied_to_other_total − fees_retained_total, clamped to zero). The frontend uses outstanding_amount for the Credits line so partially-refunded credits no longer double-count against Balance Due.

Authentication: Requires Bearer token.\n\nAddress override fields: shipping_overridden_at is an ISO-8601 UTC timestamp (or null) set when an operator manually corrects the ship-to/billing address; is_shipping_overridden is the boolean equivalent. When set, sales-channel resyncs (e.g. Amazon) will not overwrite the corrected inline address columns.

Request

Responses

Successful response