curl --location --request GET 'https://api.stateset.com/v1/asns?status=in_transit&warehouse_id=wh_001&limit=10' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"object": "list",
"data": [
{
"id": "asn_0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "asn",
"asn_number": "ASN-2024-00001",
"status": "in_transit",
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-16T08:00:00Z",
"purchase_order_id": "po_123456789",
"purchase_order_number": "PO-2024-00123",
"supplier": {
"id": "sup_abc123",
"name": "AudioTech Suppliers Inc."
},
"warehouse": {
"id": "wh_001",
"name": "Main Distribution Center"
},
"shipment_date": "2024-01-15T14:00:00Z",
"expected_arrival_date": "2024-01-18T10:00:00Z",
"tracking_info": {
"carrier": "UPS",
"tracking_number": "1Z999AA10123456784",
"current_status": "In Transit",
"last_update": "2024-01-16T08:00:00Z"
},
"item_summary": {
"total_items": 2,
"total_quantity": 1500,
"total_value": {
"amount": 4200000,
"currency": "USD"
}
}
},
{
"id": "asn_xyz789def456",
"object": "asn",
"asn_number": "ASN-2024-00002",
"status": "in_transit",
"created_at": "2024-01-16T09:00:00Z",
"updated_at": "2024-01-16T15:00:00Z",
"purchase_order_id": "po_987654321",
"purchase_order_number": "PO-2024-00124",
"supplier": {
"id": "sup_def456",
"name": "TechConnect Wholesale"
},
"warehouse": {
"id": "wh_001",
"name": "Main Distribution Center"
},
"shipment_date": "2024-01-16T08:00:00Z",
"expected_arrival_date": "2024-01-19T14:00:00Z",
"tracking_info": {
"carrier": "FedEx",
"tracking_number": "123456789012",
"current_status": "In Transit",
"last_update": "2024-01-16T15:00:00Z"
},
"item_summary": {
"total_items": 5,
"total_quantity": 2500,
"total_value": {
"amount": 1875000,
"currency": "USD"
}
}
}
],
"has_more": true,
"total_count": 15,
"next_cursor": "eyJpZCI6ImFzbl94eXo3ODlkZWY0NTYifQ=="
}
Retrieve a paginated list of ASNs with filtering options
curl --location --request GET 'https://api.stateset.com/v1/asns?status=in_transit&warehouse_id=wh_001&limit=10' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"object": "list",
"data": [
{
"id": "asn_0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "asn",
"asn_number": "ASN-2024-00001",
"status": "in_transit",
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-16T08:00:00Z",
"purchase_order_id": "po_123456789",
"purchase_order_number": "PO-2024-00123",
"supplier": {
"id": "sup_abc123",
"name": "AudioTech Suppliers Inc."
},
"warehouse": {
"id": "wh_001",
"name": "Main Distribution Center"
},
"shipment_date": "2024-01-15T14:00:00Z",
"expected_arrival_date": "2024-01-18T10:00:00Z",
"tracking_info": {
"carrier": "UPS",
"tracking_number": "1Z999AA10123456784",
"current_status": "In Transit",
"last_update": "2024-01-16T08:00:00Z"
},
"item_summary": {
"total_items": 2,
"total_quantity": 1500,
"total_value": {
"amount": 4200000,
"currency": "USD"
}
}
},
{
"id": "asn_xyz789def456",
"object": "asn",
"asn_number": "ASN-2024-00002",
"status": "in_transit",
"created_at": "2024-01-16T09:00:00Z",
"updated_at": "2024-01-16T15:00:00Z",
"purchase_order_id": "po_987654321",
"purchase_order_number": "PO-2024-00124",
"supplier": {
"id": "sup_def456",
"name": "TechConnect Wholesale"
},
"warehouse": {
"id": "wh_001",
"name": "Main Distribution Center"
},
"shipment_date": "2024-01-16T08:00:00Z",
"expected_arrival_date": "2024-01-19T14:00:00Z",
"tracking_info": {
"carrier": "FedEx",
"tracking_number": "123456789012",
"current_status": "In Transit",
"last_update": "2024-01-16T15:00:00Z"
},
"item_summary": {
"total_items": 5,
"total_quantity": 2500,
"total_value": {
"amount": 1875000,
"currency": "USD"
}
}
}
],
"has_more": true,
"total_count": 15,
"next_cursor": "eyJpZCI6ImFzbl94eXo3ODlkZWY0NTYifQ=="
}
curl --location --request GET 'https://api.stateset.com/v1/asns?status=in_transit&warehouse_id=wh_001&limit=10' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"object": "list",
"data": [
{
"id": "asn_0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "asn",
"asn_number": "ASN-2024-00001",
"status": "in_transit",
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-16T08:00:00Z",
"purchase_order_id": "po_123456789",
"purchase_order_number": "PO-2024-00123",
"supplier": {
"id": "sup_abc123",
"name": "AudioTech Suppliers Inc."
},
"warehouse": {
"id": "wh_001",
"name": "Main Distribution Center"
},
"shipment_date": "2024-01-15T14:00:00Z",
"expected_arrival_date": "2024-01-18T10:00:00Z",
"tracking_info": {
"carrier": "UPS",
"tracking_number": "1Z999AA10123456784",
"current_status": "In Transit",
"last_update": "2024-01-16T08:00:00Z"
},
"item_summary": {
"total_items": 2,
"total_quantity": 1500,
"total_value": {
"amount": 4200000,
"currency": "USD"
}
}
},
{
"id": "asn_xyz789def456",
"object": "asn",
"asn_number": "ASN-2024-00002",
"status": "in_transit",
"created_at": "2024-01-16T09:00:00Z",
"updated_at": "2024-01-16T15:00:00Z",
"purchase_order_id": "po_987654321",
"purchase_order_number": "PO-2024-00124",
"supplier": {
"id": "sup_def456",
"name": "TechConnect Wholesale"
},
"warehouse": {
"id": "wh_001",
"name": "Main Distribution Center"
},
"shipment_date": "2024-01-16T08:00:00Z",
"expected_arrival_date": "2024-01-19T14:00:00Z",
"tracking_info": {
"carrier": "FedEx",
"tracking_number": "123456789012",
"current_status": "In Transit",
"last_update": "2024-01-16T15:00:00Z"
},
"item_summary": {
"total_items": 5,
"total_quantity": 2500,
"total_value": {
"amount": 1875000,
"currency": "USD"
}
}
}
],
"has_more": true,
"total_count": 15,
"next_cursor": "eyJpZCI6ImFzbl94eXo3ODlkZWY0NTYifQ=="
}