Skip to main content

Get Raw Order from Store

GET 

/api/storefront/instances/:id/orders/:id2/raw

Ask the store for this order right now and return exactly what it sends back, untouched. Nothing is written: the mirrored order and its stored payload are left alone. Use it to compare what SKU.io holds against what the store currently says.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

The payload is the store's own order object, not SKU.io's, so its field names are the store's: id, number, status, payment (status, provider, reference, method_label, paid_at), currency, money objects for subtotal/shipping/tax/discount/total (each {amount, currency} in minor units), customer, shipping_address, billing_address, shipping_method, lines, fulfillments, external_reference, notes, metadata, and the created_at/updated_at/paid_at/cancelled_at timestamps. It is wrapped as {"data": {"order": … }}.

404 when the store no longer has the order; 422 when the store could not be reached or refused the read (the message carries the store's own error text).

Authentication: Bearer token (session or PAT).

Request​

Responses​

OK

Response Headers
    Content-Type