shipments #83
- orderId
- orders/143
- carrier
- fedex
- trackingNumber
- Y2J879ETO4ZSG1VB
- status
- label_created
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #83
#83
#83
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/83" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/83" ); const shipment = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/shipments.d.ts https://example-data.com/types/shipments.d.ts
import type { Shipment } from "./types/shipments";
const res = await fetch(
"https://example-data.com/api/v1/shipments/83"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/83"
)
shipment = res.json() Response
{
"id": 83,
"orderId": 143,
"carrier": "fedex",
"trackingNumber": "Y2J879ETO4ZSG1VB",
"status": "label_created",
"shippedAt": "2024-06-23T01:15:20.787Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-06-26T16:20:25.289Z",
"createdAt": "2024-06-23T01:15:20.787Z"
}