Back to website Open portal

Available

Foreign invoice schema

Generated foreign and international invoice fields, the tax-ID identity keys, and the prepaid gross-amount rule.

Updated 2026-10-02

Use typeId: 14 for a non-Indian invoice or bill — a US, EU, UK or HK vendor, a SaaS vendor’s bill, a law-firm bill. Use typeId: 0 for an Indian GST tax invoice.

The difference is the identity keys. A foreign invoice has no GSTIN, so the party identifiers are from_tax_id and to_tax_id, each with a _type naming what kind of number it is: ein, fein, federal_tax_id, tin, vat, tax_number, company_registration, cin, gstin, pan, uen, singapore_gst or other. The bill-to tax ID is preferred over ship-to, and the keys are omitted entirely when the invoice does not print them — common for US buyers on SaaS invoices.

payment_type is always one of prepaid or postpaid. When a card paid the invoice, card_brand, card_number (as printed — usually the last four digits), card_payment_method and payment_date are extracted too. remarks is always present and never longer than 200 characters; when the model omits it, a generated one states prepaid or postpaid and names the card and payment date.

This type honours requireLineItems: true returns lineItems, false returns the summary alone. Missing template fields are omitted from the payload, and a field the model returned as null is dropped.

With line items

Field Type Template Description
processed_data.lineItems[].amount number Returned Generated from the current foreign invoice template.
processed_data.lineItems[].description string Returned Generated from the current foreign invoice template.
processed_data.lineItems[].discount number or 0 Returned Generated from the current foreign invoice template.
processed_data.lineItems[].quantity float Returned Generated from the current foreign invoice template.
processed_data.lineItems[].rate float Returned Generated from the current foreign invoice template.
processed_data.lineItems[].tax_amount number Returned Generated from the current foreign invoice template.
processed_data.lineItems[].tax_rate number Returned Generated from the current foreign invoice template.
processed_data.lineItems[].time_period string #Service period / date range when printed on the line Returned Generated from the current foreign invoice template.
processed_data.lineItems[].unit_or_per string Returned Generated from the current foreign invoice template.
processed_data.summary_data.PO string Returned Generated from the current foreign invoice template.
processed_data.summary_data.account_name string Returned Generated from the current foreign invoice template.
processed_data.summary_data.account_number string Returned Generated from the current foreign invoice template.
processed_data.summary_data.amount float #Gross charges before a prepaid payment or credit. Do not return 0 only because the printed total or amount due is 0 Returned Generated from the current foreign invoice template.
processed_data.summary_data.balance_due float #Amount still owed. 0 when prepaid or paid in full Returned Generated from the current foreign invoice template.
processed_data.summary_data.bank_name string Returned Generated from the current foreign invoice template.
processed_data.summary_data.card_brand string #Visa, MasterCard, Amex, or other brand when a card paid the invoice Returned Generated from the current foreign invoice template.
processed_data.summary_data.card_number string #Card number as printed, usually last 4. Required when prepaid and a card is shown Returned Generated from the current foreign invoice template.
processed_data.summary_data.card_payment_method string #Autopay, card on file, or one-time card charge Returned Generated from the current foreign invoice template.
processed_data.summary_data.client_number string #Client / matter / member number when printed (law firm / SaaS) Returned Generated from the current foreign invoice template.
processed_data.summary_data.currency string #ISO currency code, e.g. USD, EUR, HKD, GBP Returned Generated from the current foreign invoice template.
processed_data.summary_data.deduction_amount_payment_made float #Prepaid amount, card payment, or credit already applied Returned Generated from the current foreign invoice template.
processed_data.summary_data.deduction_reason string #prepaid, card payment, or the credit name Returned Generated from the current foreign invoice template.
processed_data.summary_data.due_date string (ISO 8601 date format) yyyy-mm-dd Returned Generated from the current foreign invoice template.
processed_data.summary_data.expense_date string (ISO 8601 date format) yyyy-mm-dd Returned Generated from the current foreign invoice template.
processed_data.summary_data.from_country string #ISO country code or country name of issuer Returned Generated from the current foreign invoice template.
processed_data.summary_data.from_tax_id string #Issuer business tax/registration ID — foreign equivalent of from_gstin Returned Generated from the current foreign invoice template.
processed_data.summary_data.from_tax_id_type string #ein | fein | federal_tax_id | tin | vat | tax_number | company_registration | cin | gstin | pan | uen | singapore_gst | other Returned Generated from the current foreign invoice template.
processed_data.summary_data.invoice_number string Returned Generated from the current foreign invoice template.
processed_data.summary_data.matter_number string Returned Generated from the current foreign invoice template.
processed_data.summary_data.notes string Returned Generated from the current foreign invoice template.
processed_data.summary_data.payment_date string (ISO 8601 date format) yyyy-mm-dd #Paid, charged, or autopay date. Required when prepaid Returned Generated from the current foreign invoice template.
processed_data.summary_data.payment_terms string #Net 30, Due on receipt, etc. Returned Generated from the current foreign invoice template.
processed_data.summary_data.payment_type string #prepaid | postpaid Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_address string Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_email string Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_name string #Buyer / bill-to name Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_postal_code string Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_state string Returned Generated from the current foreign invoice template.
processed_data.summary_data.remarks string #Required. Max 200 characters. State prepaid or postpaid and one short overall observation Returned Generated from the current foreign invoice template.
processed_data.summary_data.routing_number string #ABA / routing number Returned Generated from the current foreign invoice template.
processed_data.summary_data.swift string Returned Generated from the current foreign invoice template.
processed_data.summary_data.tax_amount float Returned Generated from the current foreign invoice template.
processed_data.summary_data.taxable_amount float Returned Generated from the current foreign invoice template.
processed_data.summary_data.to_country string #ISO country code or country name of buyer/bill-to Returned Generated from the current foreign invoice template.
processed_data.summary_data.to_tax_id string #Buyer/bill-to business tax/registration ID — foreign equivalent of to_gstin Returned Generated from the current foreign invoice template.
processed_data.summary_data.to_tax_id_type string #ein | fein | federal_tax_id | tin | vat | tax_number | company_registration | cin | gstin | pan | uen | singapore_gst | other Returned Generated from the current foreign invoice template.
processed_data.summary_data.type Foreign Invoice Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_address string Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_email string Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_name string #Issuer / bill-from / seller name Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_postal_code string #ZIP / postal code of issuer Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_state string #State / province / region of issuer Returned Generated from the current foreign invoice template.

Without line items

Field Type Template Description
processed_data.summary_data.PO string Returned Generated from the current foreign invoice template.
processed_data.summary_data.account_name string Returned Generated from the current foreign invoice template.
processed_data.summary_data.account_number string Returned Generated from the current foreign invoice template.
processed_data.summary_data.amount float #Gross charges before a prepaid payment or credit. Do not return 0 only because the printed total or amount due is 0 Returned Generated from the current foreign invoice template.
processed_data.summary_data.balance_due float #Amount still owed. 0 when prepaid or paid in full Returned Generated from the current foreign invoice template.
processed_data.summary_data.bank_name string Returned Generated from the current foreign invoice template.
processed_data.summary_data.card_brand string #Visa, MasterCard, Amex, or other brand when a card paid the invoice Returned Generated from the current foreign invoice template.
processed_data.summary_data.card_number string #Card number as printed, usually last 4. Required when prepaid and a card is shown Returned Generated from the current foreign invoice template.
processed_data.summary_data.card_payment_method string #Autopay, card on file, or one-time card charge Returned Generated from the current foreign invoice template.
processed_data.summary_data.client_number string #Client / matter / member number when printed (law firm / SaaS) Returned Generated from the current foreign invoice template.
processed_data.summary_data.currency string #ISO currency code, e.g. USD, EUR, HKD, GBP Returned Generated from the current foreign invoice template.
processed_data.summary_data.deduction_amount_payment_made float #Prepaid amount, card payment, or credit already applied Returned Generated from the current foreign invoice template.
processed_data.summary_data.deduction_reason string #prepaid, card payment, or the credit name Returned Generated from the current foreign invoice template.
processed_data.summary_data.due_date string (ISO 8601 date format) yyyy-mm-dd Returned Generated from the current foreign invoice template.
processed_data.summary_data.expense_date string (ISO 8601 date format) yyyy-mm-dd Returned Generated from the current foreign invoice template.
processed_data.summary_data.from_country string #ISO country code or country name of issuer Returned Generated from the current foreign invoice template.
processed_data.summary_data.from_tax_id string #Issuer business tax/registration ID — foreign equivalent of from_gstin Returned Generated from the current foreign invoice template.
processed_data.summary_data.from_tax_id_type string #ein | fein | federal_tax_id | tin | vat | tax_number | company_registration | cin | gstin | pan | uen | singapore_gst | other Returned Generated from the current foreign invoice template.
processed_data.summary_data.invoice_number string Returned Generated from the current foreign invoice template.
processed_data.summary_data.matter_number string Returned Generated from the current foreign invoice template.
processed_data.summary_data.notes string Returned Generated from the current foreign invoice template.
processed_data.summary_data.payment_date string (ISO 8601 date format) yyyy-mm-dd #Paid, charged, or autopay date. Required when prepaid Returned Generated from the current foreign invoice template.
processed_data.summary_data.payment_terms string #Net 30, Due on receipt, etc. Returned Generated from the current foreign invoice template.
processed_data.summary_data.payment_type string #prepaid | postpaid Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_address string Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_email string Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_name string #Buyer / bill-to name Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_postal_code string Returned Generated from the current foreign invoice template.
processed_data.summary_data.receiver_state string Returned Generated from the current foreign invoice template.
processed_data.summary_data.remarks string #Required. Max 200 characters. State prepaid or postpaid and one short overall observation Returned Generated from the current foreign invoice template.
processed_data.summary_data.routing_number string #ABA / routing number Returned Generated from the current foreign invoice template.
processed_data.summary_data.swift string Returned Generated from the current foreign invoice template.
processed_data.summary_data.tax_amount float Returned Generated from the current foreign invoice template.
processed_data.summary_data.taxable_amount float Returned Generated from the current foreign invoice template.
processed_data.summary_data.to_country string #ISO country code or country name of buyer/bill-to Returned Generated from the current foreign invoice template.
processed_data.summary_data.to_tax_id string #Buyer/bill-to business tax/registration ID — foreign equivalent of to_gstin Returned Generated from the current foreign invoice template.
processed_data.summary_data.to_tax_id_type string #ein | fein | federal_tax_id | tin | vat | tax_number | company_registration | cin | gstin | pan | uen | singapore_gst | other Returned Generated from the current foreign invoice template.
processed_data.summary_data.type Foreign Invoice Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_address string Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_email string Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_name string #Issuer / bill-from / seller name Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_postal_code string #ZIP / postal code of issuer Returned Generated from the current foreign invoice template.
processed_data.summary_data.vendor_state string #State / province / region of issuer Returned Generated from the current foreign invoice template.