Skip to main content

Get order

An order session must first be in state authorized before an order entity is created. The first event registered on an order is therefore create, any new events on the order will be supplied in response to subsequent requests for the same order ID, such as readyForCapture, authorize, etc. Initially, the status of an order is uncaptured, as is highlighted in the example response. Captures, cancels, refunds and edits are handled by unique endpoints, and all separately documented.

Currencies will be formatted according to en_US in the API responses. Formatting can vary in the checkout though, depending on the configured locale.

curl -X GET \
-H 'authorization: Bearer v4.public.eyJpc3MiOiJs...' \
https://api.sandbox.ledyer.com/v1/orders/:orderId \

Path parameters

orderId

The order ID string that was obtained when the order session was created.