curl --location 'https://api.stateset.com/v1/shipments?status=in_transit&limit=10' \ --header 'Authorization: Bearer YOUR_API_KEY'
{ "object": "list", "data": [ { "id": "ship_0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "object": "shipment", "status": "in_transit", "created_at": "2024-01-19T14:30:00Z", "ship_date": "2024-01-20T08:00:00Z", "delivery_date": "2024-01-23T18:00:00Z", "carrier": "ups", "service_type": "ground", "tracking_number": "1Z999AA10123456784", "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10123456784", "packages_count": 1, "total_weight": { "value": 5.5, "unit": "lb" }, "from_address": { "city": "Los Angeles", "state": "CA", "country": "US" }, "to_address": { "name": "John Doe", "city": "Los Angeles", "state": "CA", "country": "US" }, "order_ids": ["order_123456", "order_123457"], "rate": { "amount": 1250, "currency": "USD" } }, { "id": "ship_7823f083-bb2c-54d6-bf6d-1b8e3fc75f41", "object": "shipment", "status": "in_transit", "created_at": "2024-01-19T10:15:00Z", "ship_date": "2024-01-19T14:00:00Z", "delivery_date": "2024-01-22T18:00:00Z", "carrier": "fedex", "service_type": "express", "tracking_number": "772123456789", "tracking_url": "https://www.fedex.com/apps/fedextrack/?tracknumbers=772123456789", "packages_count": 2, "total_weight": { "value": 12.3, "unit": "lb" }, "from_address": { "city": "New York", "state": "NY", "country": "US" }, "to_address": { "name": "Jane Smith", "city": "Chicago", "state": "IL", "country": "US" }, "order_ids": ["order_789012"], "rate": { "amount": 2850, "currency": "USD" } } ], "has_more": true, "total_count": 156, "page_info": { "limit": 10, "offset": 0 } }
List all shipments with filtering and pagination
shipments:read
Authorization: Bearer YOUR_API_KEY