Returns a list of invoices.
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/api/collections/paginated",
- "prev": null,
- "data": [
- {
- "_object": "/invoice",
- "id": "gwdpaYrhTI-T1ljn1M7o7w",
- "name": "FLEX-123456-1",
- "issued_at": "2019-05-22T18:39:53.679Z",
- "due_date": "2019-05-22",
- "quote_currency_code": "USD",
- "exchange_rate": 1.2543,
- "invoice_type": "customs",
- "total": {
- "_object": "/money",
- "amount": "6843.29",
- "currency_code": "EUR"
}, - "balance": {
- "_object": "/money",
- "amount": "6743.29",
- "currency_code": "EUR"
}, - "status": "void",
- "type": "Shipment",
- "voided_at": "2019-05-22T20:49:15.639Z",
- "last_updated_at": "2019-05-24T20:49:15.653Z",
- "service_level": "Standard",
- "notes": [
- "**Container numbers**\n\n1234567",
- "**Notes**\n\nOther details about this invoice"
], - "recipient": {
- "_object": "/company_entity",
- "id": 123456,
- "name": "Your Company Name",
- "mailing_address": {
- "_object": "/address",
- "street_address": "123 MAIN ST",
- "street_address2": "",
- "city": "Anytown",
- "state": "CA",
- "country": "United States",
- "country_code": "US",
- "zip": "12345",
- "unlocode": null,
- "timezone": "America/Los_Angeles",
- "ref": "my-address-ref"
}, - "ref": "id-123456",
- "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
- "country_code": "US",
- "number": "US 573467947"
}
]
}, - "issuer": {
- "_object": "/company_entity",
- "id": 28714,
- "name": "Flexport LLC",
- "mailing_address": {
- "_object": "/address",
- "street_address": "760 MARKET ST FL 8",
- "street_address2": "",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "country": "United States",
- "country_code": "US",
- "zip": "94102-2300",
- "unlocode": null,
- "timezone": "America/Los_Angeles",
- "ref": "flexport-address-ref"
}, - "ref": "id-54321",
- "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
- "country_code": "US",
- "number": "US 572559803"
}
]
}, - "items": [
- {
- "_object": "/invoice_item",
- "name": "Import Customs Clearance",
- "slug": "import_customs_clearance",
- "category": "customs",
- "amount": {
- "_object": "/money",
- "amount": "125",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "125.00",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1",
- "qualifier": "total"
}
}, - {
- "_object": "/invoice_item",
- "name": "Fuel Surcharge",
- "slug": "fuel_surcharge",
- "category": "destination",
- "amount": {
- "_object": "/money",
- "amount": "200.61",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "23",
- "qualifier": "% Cartage Base"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "872.22",
- "qualifier": "EUR"
}
}, - {
- "_object": "/invoice_item",
- "name": "Cartage Base",
- "slug": "cartage_base",
- "category": "destination",
- "amount": {
- "_object": "/money",
- "amount": "872.22",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "0.5233",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1667",
- "qualifier": "100_LB"
}
}, - {
- "_object": "/invoice_item",
- "name": "Automated Manifest System",
- "slug": "automated_manifest_system_freight",
- "category": "freight",
- "amount": {
- "_object": "/money",
- "amount": "15",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "15",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1",
- "qualifier": "bill of lading"
}
}, - {
- "_object": "/invoice_item",
- "name": "Air Freight",
- "slug": "air_freight",
- "category": "freight",
- "amount": {
- "_object": "/money",
- "amount": "5197.13",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "3.1183",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1667.67",
- "qualifier": "KG"
}
}, - {
- "_object": "/invoice_item",
- "name": "Fuel Surcharge",
- "slug": "fuel_surcharge",
- "category": "freight",
- "amount": {
- "_object": "/money",
- "amount": "433.33",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "0.26",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1667.67",
- "qualifier": "KG"
}
}
], - "credit_memos": [
- {
- "_object": "/credit_memo",
- "amount": {
- "_object": "/money",
- "amount": "100",
- "currency_code": "EUR"
}, - "categories": [
- "customs",
- "freight"
], - "reasons": [
- "reason for credit",
- "another reason"
], - "credited_at": "2019-05-24T18:39:53.679Z"
}
], - "shipments": {
- "_object": "/api/refs/collection",
- "ref_type": "/shipment",
}
}
]
}
}
Retrieves the details of a single invoice
Success
error
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/invoice",
- "id": "abcdef123",
- "name": "FLEX-123456-1",
- "issued_at": "2019-05-22T18:39:53.679Z",
- "due_date": "2019-05-22",
- "quote_currency_code": "USD",
- "exchange_rate": 1.2543,
- "invoice_type": "general",
- "total": {
- "_object": "/money",
- "amount": "6843.29",
- "currency_code": "EUR"
}, - "balance": {
- "_object": "/money",
- "amount": "6743.29",
- "currency_code": "EUR"
}, - "status": "void",
- "type": "Shipment",
- "voided_at": "2019-05-22T20:49:15.639Z",
- "last_updated_at": "2019-05-24T20:49:15.653Z",
- "service_level": "Standard",
- "notes": [
- "**Container numbers**\n\n1234567",
- "**Notes**\n\nOther details about this invoice"
], - "recipient": {
- "_object": "/company_entity",
- "id": 123456,
- "name": "Your Company Name",
- "mailing_address": {
- "_object": "/address",
- "street_address": "123 MAIN ST",
- "street_address2": "",
- "city": "Anytown",
- "state": "CA",
- "country": "United States",
- "country_code": "US",
- "zip": "12345",
- "unlocode": null,
- "timezone": "America/Los_Angeles",
- "ref": "my-address-ref"
}, - "ref": "id-123456",
- "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
- "country_code": "US",
- "number": "US 573467947"
}
]
}, - "issuer": {
- "_object": "/company_entity",
- "id": 28714,
- "name": "Flexport LLC",
- "mailing_address": {
- "_object": "/address",
- "street_address": "760 MARKET ST FL 8",
- "street_address2": "",
- "city": "SAN FRANCISCO",
- "state": "CA",
- "country": "United States",
- "country_code": "US",
- "zip": "94102-2300",
- "unlocode": null,
- "timezone": "America/Los_Angeles",
- "ref": "flexport-address-ref"
}, - "ref": "id-54321",
- "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
- "country_code": "US",
- "number": "US 572559803"
}
]
}, - "items": [
- {
- "_object": "/invoice_item",
- "name": "Import Customs Clearance",
- "slug": "import_customs_clearance",
- "category": "customs",
- "amount": {
- "_object": "/money",
- "amount": "125",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "125.00",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1",
- "qualifier": "total"
}
}, - {
- "_object": "/invoice_item",
- "name": "Fuel Surcharge",
- "slug": "fuel_surcharge",
- "category": "destination",
- "amount": {
- "_object": "/money",
- "amount": "200.61",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "23",
- "qualifier": "% Cartage Base"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "872.22",
- "qualifier": "EUR"
}
}, - {
- "_object": "/invoice_item",
- "name": "Cartage Base",
- "slug": "cartage_base",
- "category": "destination",
- "amount": {
- "_object": "/money",
- "amount": "872.22",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "0.5233",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1667",
- "qualifier": "100_LB"
}
}, - {
- "_object": "/invoice_item",
- "name": "Automated Manifest System",
- "slug": "automated_manifest_system_freight",
- "category": "freight",
- "amount": {
- "_object": "/money",
- "amount": "15",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "15",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1",
- "qualifier": "bill of lading"
}
}, - {
- "_object": "/invoice_item",
- "name": "Air Freight",
- "slug": "air_freight",
- "category": "freight",
- "amount": {
- "_object": "/money",
- "amount": "5197.13",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "3.1183",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1667.67",
- "qualifier": "KG"
}
}, - {
- "_object": "/invoice_item",
- "name": "Fuel Surcharge",
- "slug": "fuel_surcharge",
- "category": "freight",
- "amount": {
- "_object": "/money",
- "amount": "433.33",
- "currency_code": "EUR"
}, - "rate": {
- "_object": "/invoice/rate",
- "value": "0.26",
- "qualifier": "EUR"
}, - "quantity": {
- "_object": "/invoice/quantity",
- "value": "1667.67",
- "qualifier": "KG"
}
}
], - "credit_memos": [
- {
- "_object": "/credit_memo",
- "amount": {
- "_object": "/money",
- "amount": "100",
- "currency_code": "EUR"
}, - "categories": [
- "customs",
- "freight"
], - "reasons": [
- "reason for credit",
- "another reason"
], - "credited_at": "2019-05-24T18:39:53.679Z"
}
], - "shipments": {
- "_object": "/api/refs/collection",
- "ref_type": "/shipment",
}
}
}