Solid Commerce Docs
GET/v1/orders/{id}

GET /v1/orders/{id}

Scopes: orders:orders:read

Requires scope: orders:orders:read.

Parameters

NameInTypeRequiredDescription
idpathinteger<int64>yes

Response (200)

FieldTypeRequiredDescription
idinteger<int64>no
company_idinteger<int32>no
store_order_idstringno
order_datestring<date-time>no
order_totalnumber<double>no
order_sub_totalnumber<double>no
order_shipping_feenumber<double>no
order_tax_amountnumber<double>no
order_discountnumber<double>no
balance_duenumber<double>no
is_shippedbooleanno
is_cancelledbooleanno
status_codestringno
sales_channel_namestringno
shipping_method_namestringno
customer_emailstringno

Examples

import { SolidCommerceClient } from '@solidcommerce/sdk';

const client = new SolidCommerceClient({
  apiKey: process.env.SOLIDCOMMERCE_API_KEY!,
});

const { data, error } = await client.raw.GET('/v1/orders/{id}', {
  // params: { path: { id: '...' }, query: { limit: 25 } },
  // body: { /* request body */ },
});

if (error) throw error;
console.log(data);