Create a new commercial invoice.
Accepted
Bad Request
Bad token
Unknown error
{- "invoice_number": "ABCD1234",
- "involved_parties": [
- {
- "type": "consignee",
- "name": "party_name",
- "address_line1": "760 Market Street",
- "address_line2": "Floor 8",
- "address_line3": null,
- "address_line4": null,
- "address_line5": null,
- "address_line6": null,
- "city": "San Francisco",
- "state_province": "CA",
- "postal_code": "94102",
- "country_code": "US",
- "external_ref": "ref_1234"
}
], - "mid_code": "mid_code",
- "is_related_parties": true,
- "currency_code": "USD",
- "terms_of_sale": "terms_of_sale",
- "line_items": [
- {
- "mid_code": "mid_code",
- "manufacturer_address": {
- "type": "manufacturer",
- "name": "party_name",
- "address_line1": "760 Market Street",
- "address_line2": "Floor 8",
- "address_line3": null,
- "address_line4": null,
- "address_line5": null,
- "address_line6": null,
- "city": "San Francisco",
- "state_province": "CA",
- "postal_code": "94102",
- "country_code": "US",
- "external_ref": "ref_1234"
}, - "country_of_origin": "CN",
- "quantity": {
- "value": 1,
- "unit": "pcs"
}, - "net_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "unit_price": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "first_sale_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "final_sale_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "gross_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "net_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "net_net_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "volume": {
- "value": 1.23,
- "unit": "cbm"
}, - "container_number": "ABCD1234",
- "document_line_number": 1234,
- "purchase_order_number": "123456",
- "po_line_item_number": "123456",
- "product": {
- "product_sku": "abcd-1234",
- "description": "the prettiest makeup there is",
- "product_category": "Cosmetics",
- "product_properties": [
- {
- "type": "color",
- "value": "red"
}
], - "product_classifications": [
- {
- "hs_codes": [
- "1234.56.78"
], - "region": "US"
}
]
}, - "metadata": "{color: [\"red\", \"blue\"], size: [\"large\", \"medium\", \"small\"]}"
}
], - "shipment_ref": "shipment_ref",
- "shipment_id": 123456,
- "invoice_date": "2000-04-30",
- "proration_amount": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "metadata": "{color: [\"red\", \"blue\"], size: [\"large\", \"medium\", \"small\"]}"
}
Accepted
{- "_object": "/api/response",
- "version": "2023-05-18",
- "data": {
- "_object": "/request",
- "request_uuid": "abcd-1234",
- "request_status": "acknowledged"
}, - "error": null
}
Update an existing commercial invoice
invoice_number required | string Invoice number on the commercial invoice, typically used for display purposes. Uniqueness is based on the supplier Involved Party. There can be multiple commercial invoices with the same invoice_number only if they have different suppliers. | ||||||||||||||||||||||||||||||||||||||
Array of objects (InvolvedParty) List of involved parties. Note that manufacturer at the invoice level will apply to all line items within the CI. | |||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||
mid_code | string Correctly formatted MID (Manufacturer ID) Code | ||||||||||||||||||||||||||||||||||||||
is_related_parties | boolean Whether there was a related parties transaction as defined by CBP. | ||||||||||||||||||||||||||||||||||||||
currency_code | string The currency being used on the commercial invoice. | ||||||||||||||||||||||||||||||||||||||
terms_of_sale | string | ||||||||||||||||||||||||||||||||||||||
Array of objects (LineItem) List of line items. Note that only full replacement of the list is allowed. | |||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||
invoice_date | string date of invoice, in the format of yyyy-MM-dd. | ||||||||||||||||||||||||||||||||||||||
object (Money) Money Object | |||||||||||||||||||||||||||||||||||||||
metadata | object (Metadata) Set of custom key-values specific to the object. The keys are strings and values are arrays of strings. The set of valid keys is always the consignee's list of keys, even if call was made by a different party. |
Accepted
Bad Request
Bad token
Not Found
Unknown error
{- "invoice_number": "ABCD1234",
- "involved_parties": [
- {
- "type": "consignee",
- "name": "party_name",
- "address_line1": "760 Market Street",
- "address_line2": "Floor 8",
- "address_line3": null,
- "address_line4": null,
- "address_line5": null,
- "address_line6": null,
- "city": "San Francisco",
- "state_province": "CA",
- "postal_code": "94102",
- "country_code": "US",
- "external_ref": "ref_1234"
}
], - "mid_code": "mid_code",
- "is_related_parties": true,
- "currency_code": "USD",
- "terms_of_sale": "terms_of_sale",
- "line_items": [
- {
- "mid_code": "mid_code",
- "manufacturer_address": {
- "type": "manufacturer",
- "name": "party_name",
- "address_line1": "760 Market Street",
- "address_line2": "Floor 8",
- "address_line3": null,
- "address_line4": null,
- "address_line5": null,
- "address_line6": null,
- "city": "San Francisco",
- "state_province": "CA",
- "postal_code": "94102",
- "country_code": "US",
- "external_ref": "ref_1234"
}, - "country_of_origin": "CN",
- "quantity": {
- "value": 1,
- "unit": "pcs"
}, - "net_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "unit_price": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "first_sale_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "final_sale_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "gross_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "net_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "net_net_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "volume": {
- "value": 1.23,
- "unit": "cbm"
}, - "container_number": "ABCD1234",
- "document_line_number": 1234,
- "purchase_order_number": "123456",
- "po_line_item_number": "123456",
- "product": {
- "product_sku": "abcd-1234",
- "description": "the prettiest makeup there is",
- "product_category": "Cosmetics",
- "product_properties": [
- {
- "type": "color",
- "value": "red"
}
], - "product_classifications": [
- {
- "hs_codes": [
- "1234.56.78"
], - "region": "US"
}
]
}, - "metadata": "{color: [\"red\", \"blue\"], size: [\"large\", \"medium\", \"small\"]}"
}
], - "invoice_date": "2000-04-30",
- "proration_amount": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "metadata": "{color: [\"red\", \"blue\"], size: [\"large\", \"medium\", \"small\"]}"
}
Accepted
{- "_object": "/api/response",
- "version": "2023-05-18",
- "data": {
- "_object": "/request",
- "request_uuid": "abcd-1234",
- "request_status": "acknowledged"
}, - "error": null
}
Retrieve an existing commercial invoice by invoice number
Success
_object | string | ||||||||||||||||||||||||
self | string | ||||||||||||||||||||||||
version | string | ||||||||||||||||||||||||
object (CommercialInvoice) The commercial invoice data | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
error | object |
Bad Request
Bad token
Not Found
Unknown error
Success
{- "_object": "/api/response",
- "version": "2023-05-18",
- "data": {
- "invoice_number": "ABCD1234",
- "involved_parties": [
- {
- "type": "consignee",
- "name"": "party_name",
- "address_line1": "760 Market Street",
- "address_line2": "8th floor",
- "address_line3": null,
- "address_line4": null,
- "address_line5": null,
- "address_line6": null,
- "city": "San Francisco",
- "state_province": "CA",
- "postal_code": "94102",
- "country_code": "US",
- "external_ref": "ref_1234"
}
], - "mid_code": "mid_code",
- "is_related_parties": true,
- "currency_code": "USD",
- "terms_of_sale": "terms_of_sale",
- "line_items": [
- {
- "mid_code": "mid_code",
- "manufacturer_address": {
- "type": "manufacturer",
- "name": "party_name",
- "address_line1": "760 Market Street",
- "address_line2": "8th floor",
- "address_line3": null,
- "address_line4": null,
- "address_line5": null,
- "address_line6": null,
- "city": "San Francisco",
- "state_province": "CA",
- "postal_code": "94102",
- "country_code": "US",
- "external_ref": "ref_1234"
}, - "country_of_origin": "CN",
- "quantity": {
- "value": 1,
- "unit": "pcs"
}, - "net_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "unit_price": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "first_sale_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "final_sale_value": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "gross_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "net_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "net_net_weight": {
- "value": 1.23,
- "unit": "kg"
}, - "volume": {
- "value": 1.23,
- "unit": "cbm"
}, - "container_number": "ABCD1234",
- "document_line_number": 1234,
- "purchase_order_number": "123456",
- "po_line_item_number": "123456",
- "product": {
- "product_sku": "abcd-1234",
- "description": "the prettiest makeup there is",
- "product_category": "Cosmetics",
- "product_properties": [
- {
- "type": "color",
- "value": "red"
}
], - "product_classifications": [
- {
- "hs_codes": [
- "1234.56.78"
], - "region": "US"
}
]
}, - "metadata": "{color: [\"red\", \"blue\"], size: [\"large\", \"medium\", \"small\"]}"
}
], - "shipment_ref": "shipment_ref",
- "shipment_id": 123456,
- "invoice_date": "2000-04-30",
- "proration_amount": {
- "amount": 1.23,
- "currency_code": "USD"
}, - "metadata": "{color: [\"red\", \"blue\"], size: [\"large\", \"medium\", \"small\"]}"
}, - "error": null
}