Solid Commerce Docs
GET/v1/orders/shipments/totals

GET /v1/orders/shipments/totals

Scopes: orders:shipments:read

Requires scope: orders:shipments:read.

Parameters

NameInTypeRequiredDescription
carrierquerystringno
statusquerystringno

Response (200)

FieldTypeRequiredDescription
totalShipmentsinteger<int32>no
lateShipmentsinteger<int32>no
onTimeShippedinteger<int32>no
lateDeliveryinteger<int32>no
onTimeDeliveryinteger<int32>no
totalShippingCostnumber<double>no

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/shipments/totals', {
  // params: { path: { id: '...' }, query: { limit: 25 } },
  // body: { /* request body */ },
});

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