# Get Order Get an order by its ID. Endpoint: GET /v1/orders/{orderId} Security: OAuth2 ## Path parameters: - `orderId` (string, required) The unique identifier of the order. ## Response 200 fields (application/json): - `id` (string, required) The unique identifier of the order. - `number` (string, required) A sequential, human-readable order number. - `status` (string, required) The status of the order. Enum: "PENDING", "COMPLETED", "CANCELLED" - `payment_status` (string, required) The payment status of the order. Enum: "UNPAID", "PAID", "PARTIALLY_PAID", "REFUNDED", "PARTIALLY_REFUNDED" - `created_at` (string, required) Timestamp of when the order was created. - `updated_at` (string, required) Timestamp of when the order was last updated. - `customer` (any, required) The customer that placed the order. - `origin` (any, required) The origin of the order. - `totals` (object, required) Financial summary of the order. - `totals.discount` (object, required) The total discount applied to the order. - `totals.discount.currency` (string, required) The ISO 4217 currency code. Example: "USD" - `totals.discount.value` (integer, required) The price in the smallest currency unit (e.g. cents for USD). Example: 2500 - `totals.discount.exponent` (integer, required) The number of decimal places for the currency. Example: 2 - `totals.vat_amount` (object, required) The total VAT amount for the order. - `totals.amount` (object, required) The total amount for the order. - `metadata` (object) A set of key-value pairs that are attached to the order for storing additional information. ## Response 400 fields (application/json): - `message` (string, required) - `code` (string, required) ## Response 403 fields (application/json): - `message` (string, required) - `code` (string, required) ## Response 404 fields (application/json): - `message` (string, required) - `code` (string, required) ## Response default fields (application/json): - `message` (string, required) - `code` (string, required)