Returns a list of commercial invoices
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/api/collections/paginated",
- "next": null,
- "data": [
- {
- "_object": "/commercial_invoices",
- "id": "abcxyz-23456-def",
- "invoice_number": "ABCDEFGHIJKLMNOP",
- "digitization_status": "complete",
- "manufacturer_addresses": [
- {
- "_object": "/address",
- "street_address": "1641 Settlers Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country": "United States of America",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "US AL2",
- "timezone": "America/Los_Angeles",
- "ref": "id-3333"
}
], - "total_value": {
- "_object": "/money",
- "amount": "100",
- "currency_code": "USD"
}, - "total_unit_count": "12345",
- "total_weight": {
- "_object": "/quantity/weight",
- "value": 100,
- "unit": "kg"
}, - "total_volume": {
- "_object": "/quantity/volume",
- "value": 100,
- "unit": "cbm"
}, - "line_items": [
- {
- "_object": "/commercial_invoice_line_item",
- "id": 12345,
- "price_per_unit": {
- "_object": "/money",
- "amount": "12.34",
- "currency_code": "USD"
}, - "value": {
- "_object": "/money",
- "amount": "12.34",
- "currency_code": "USD"
}, - "total_units": 10,
- "container_number": {
- "id": 123,
- "container_number": "XYZ123",
- "commercial_invoice_line_item_id": 12345,
- "deleted_at": null,
- "created_at": "2020-01-01T15:28:03.265Z",
- "updated_at": "2020-01-01T15:28:03.265Z"
}, - "purchase_order_number": "9876-ABC",
- "weight": {
- "_object": "/quantity/weight",
- "value": 12.34,
- "unit": "kg"
}, - "volume": {
- "_object": "/quantity/volume",
- "value": 12.34,
- "unit": "cbm"
}, - "product": {
- "_object": "/api/refs/object",
- "ref_type": "/product",
- "id": 12345
}
}
], - "updated_at": "2020-01-01T15:28:03.265Z",
- "shipment": {
- "_object": "/api/refs/object",
- "ref_type": "/shipment",
- "id": 123456
}
}
]
}
}
Retrieves the details of a single commercial invoice.
Success
error
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/commercial_invoice",
- "id": "abcxyz-23456-def",
- "invoice_number": "ABCDEFGHIJKLMNOP",
- "digitization_status": "complete",
- "manufacturer_addresses": [
- {
- "_object": "/address",
- "street_address": "1641 Settlers Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country": "United States of America",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "US AL2",
- "timezone": "America/Los_Angeles",
- "ref": "id-3333"
}
], - "total_value": {
- "_object": "/money",
- "amount": "100",
- "currency_code": "USD"
}, - "total_unit_count": "12345",
- "total_weight": {
- "_object": "/quantity/weight",
- "value": 100,
- "unit": "kg"
}, - "total_volume": {
- "_object": "/quantity/volume",
- "value": 100,
- "unit": "cbm"
}, - "line_items": [
- {
- "_object": "/commercial_invoice_line_item",
- "id": 12345,
- "price_per_unit": {
- "_object": "/money",
- "amount": "12.34",
- "currency_code": "USD"
}, - "value": {
- "_object": "/money",
- "amount": "12.34",
- "currency_code": "USD"
}, - "total_units": 10,
- "container_number": {
- "id": 123,
- "container_number": "XYZ123",
- "commercial_invoice_line_item_id": 12345,
- "deleted_at": null,
- "created_at": "2020-01-01T15:28:03.265Z",
- "updated_at": "2020-01-01T15:28:03.265Z"
}, - "purchase_order_number": "9876-ABC",
- "weight": {
- "_object": "/quantity/weight",
- "value": 12.34,
- "unit": "kg"
}, - "volume": {
- "_object": "/quantity/volume",
- "value": 12.34,
- "unit": "cbm"
}, - "product": {
- "_object": "/api/refs/object",
- "ref_type": "/product",
- "id": 12345
}
}
], - "shipment": {
- "_object": "/api/refs/object",
- "ref_type": "/shipment",
- "id": 123456
}
}
}