POST
/
invoices
/
{invoice_id}
/
mark_paid

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Path Parameters

invoice_id
string
required

Body

application/json
payment_received_date
string
required

A date string to specify the date of the payment.

external_id
string | null

An optional external ID to associate with the payment.

notes
string | null

An optional note to associate with the payment.

Response

200 - application/json

An Invoice is a fundamental billing entity, representing the request for payment for a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as the result of an action, such as a cancellation.

amount_due
string
required

This is the final amount required to be charged to the customer and reflects the application of the customer balance to the total of the invoice.

auto_collection
object
required
billing_address
object | null
required
created_at
string
required

The creation time of the resource in Orb.

credit_notes
object[]
required

A list of credit notes associated with the invoice

currency
string
required

An ISO 4217 currency string or credits

customer
object
required
customer_balance_transactions
object[]
required
customer_tax_id
object | null
required

Tax IDs are commonly required to be displayed on customer invoices, which are added to the headers of invoices.

Supported Tax ID Countries and Types

| Country | Type | Description | |----------------|--------------|---------------------------------------------| | Andorra | ad_nrt | Andorran NRT Number | | Argentina | ar_cuit | Argentinian Tax ID Number | | Australia | au_abn | Australian Business Number (AU ABN) | | Australia | au_arn | Australian Taxation Office Reference Number | | Austria | eu_vat | European VAT Number | | Bahrain | bh_vat | Bahraini VAT Number | | Belgium | eu_vat | European VAT Number | | Bolivia | bo_tin | Bolivian Tax ID | | Brazil | br_cnpj | Brazilian CNPJ Number | | Brazil | br_cpf | Brazilian CPF Number | | Bulgaria | bg_uic | Bulgaria Unified Identification Code | | Bulgaria | eu_vat | European VAT Number | | Canada | ca_bn | Canadian BN | | Canada | ca_gst_hst | Canadian GST/HST Number | | Canada | ca_pst_bc | Canadian PST Number (British Columbia) | | Canada | ca_pst_mb | Canadian PST Number (Manitoba) | | Canada | ca_pst_sk | Canadian PST Number (Saskatchewan) | | Canada | ca_qst | Canadian QST Number (Québec) | | Chile | cl_tin | Chilean TIN | | China | cn_tin | Chinese Tax ID | | Colombia | co_nit | Colombian NIT Number | | Costa Rica | cr_tin | Costa Rican Tax ID | | Croatia | eu_vat | European VAT Number | | Cyprus | eu_vat | European VAT Number | | Czech Republic | eu_vat | European VAT Number | | Denmark | eu_vat | European VAT Number | | Dominican Republic | do_rcn | Dominican RCN Number | | Ecuador | ec_ruc | Ecuadorian RUC Number | | Egypt | eg_tin | Egyptian Tax Identification Number | | El Salvador | sv_nit | El Salvadorian NIT Number | | Estonia | eu_vat | European VAT Number | | EU | eu_oss_vat | European One Stop Shop VAT Number for non-Union scheme | | Finland | eu_vat | European VAT Number | | France | eu_vat | European VAT Number | | Georgia | ge_vat | Georgian VAT | | Germany | eu_vat | European VAT Number | | Greece | eu_vat | European VAT Number | | Hong Kong | hk_br | Hong Kong BR Number | | Hungary | eu_vat | European VAT Number | | Hungary | hu_tin | Hungary Tax Number (adószám) | | Iceland | is_vat | Icelandic VAT | | India | in_gst | Indian GST Number | | Indonesia | id_npwp | Indonesian NPWP Number | | Ireland | eu_vat | European VAT Number | | Israel | il_vat | Israel VAT | | Italy | eu_vat | European VAT Number | | Japan | jp_cn | Japanese Corporate Number (Hōjin Bangō) | | Japan | jp_rn | Japanese Registered Foreign Businesses' Registration Number (Tōroku Kokugai Jigyōsha no Tōroku Bangō) | | Japan | jp_trn | Japanese Tax Registration Number (Tōroku Bangō) | | Kazakhstan | kz_bin | Kazakhstani Business Identification Number | | Kenya | ke_pin | Kenya Revenue Authority Personal Identification Number | | Latvia | eu_vat | European VAT Number | | Liechtenstein | li_uid | Liechtensteinian UID Number | | Lithuania | eu_vat | European VAT Number | | Luxembourg | eu_vat | European VAT Number | | Malaysia | my_frp | Malaysian FRP Number | | Malaysia | my_itn | Malaysian ITN | | Malaysia | my_sst | Malaysian SST Number | | Malta | eu_vat | European VAT Number | | Mexico | mx_rfc | Mexican RFC Number | | Netherlands | eu_vat | European VAT Number | | New Zealand | nz_gst | New Zealand GST Number | | Nigeria | ng_tin | Nigerian Tax Identification Number | | Norway | no_vat | Norwegian VAT Number | | Norway | no_voec | Norwegian VAT on e-commerce Number | | Oman | om_vat | Omani VAT Number | | Peru | pe_ruc | Peruvian RUC Number | | Philippines | ph_tin | Philippines Tax Identification Number | | Poland | eu_vat | European VAT Number | | Portugal | eu_vat | European VAT Number | | Romania | eu_vat | European VAT Number | | Romania | ro_tin | Romanian Tax ID Number | | Russia | ru_inn | Russian INN | | Russia | ru_kpp | Russian KPP | | Saudi Arabia | sa_vat | Saudi Arabia VAT | | Serbia | rs_pib | Serbian PIB Number | | Singapore | sg_gst | Singaporean GST | | Singapore | sg_uen | Singaporean UEN | | Slovakia | eu_vat | European VAT Number | | Slovenia | eu_vat | European VAT Number | | Slovenia | si_tin | Slovenia Tax Number (davčna številka) | | South Africa | za_vat | South African VAT Number | | South Korea | kr_brn | Korean BRN | | Spain | es_cif | Spanish NIF Number (previously Spanish CIF Number) | | Spain | eu_vat | European VAT Number | | Sweden | eu_vat | European VAT Number | | Switzerland | ch_vat | Switzerland VAT Number | | Taiwan | tw_vat | Taiwanese VAT | | Thailand | th_vat | Thai VAT | | Turkey | tr_tin | Turkish Tax Identification Number | | Ukraine | ua_vat | Ukrainian VAT | | United Arab Emirates | ae_trn | United Arab Emirates TRN | | United Kingdom | eu_vat | Northern Ireland VAT Number | | United Kingdom | gb_vat | United Kingdom VAT Number | | United States | us_ein | United States EIN | | Uruguay | uy_ruc | Uruguayan RUC Number | | Venezuela | ve_rif | Venezuelan RIF Number | | Vietnam | vn_tin | Vietnamese Tax ID Number |

discount
any | null
requireddeprecated

This field is deprecated in favor of discounts. If a discounts list is provided, the first discount in the list will be returned. If the list is empty, None will be returned.

discounts
object[]
required
due_date
string
required

When the invoice payment is due.

eligible_to_issue_at
string | null
required

If the invoice has a status of draft, this will be the time that the invoice will be eligible to be issued, otherwise it will be null. If auto-issue is true, the invoice will automatically begin issuing at this time.

hosted_invoice_url
string | null
required

A URL for the customer-facing invoice portal. This URL expires 30 days after the invoice's due date, or 60 days after being re-generated through the UI.

id
string
required
invoice_date
string
required

The scheduled date of the invoice

invoice_number
string
required

Automatically generated invoice number to help track and reconcile invoices. Invoice numbers have a prefix such as RFOBWG. These can be sequential per account or customer.

invoice_pdf
string | null
required

The link to download the PDF representation of the Invoice.

invoice_source
enum<string>
required
Available options:
subscription,
partial,
one_off
issue_failed_at
string | null
required

If the invoice failed to issue, this will be the last time it failed to issue (even if it is now in a different state.)

issued_at
string | null
required

If the invoice has been issued, this will be the time it transitioned to issued (even if it is now in a different state.)

line_items
object[]
required

The breakdown of prices in this invoice.

maximum
object | null
required
maximum_amount
string | null
required
memo
string | null
required

Free-form text which is available on the invoice PDF and the Orb invoice portal.

metadata
object
required

User specified key-value pairs for the resource. If not present, this defaults to an empty dictionary. Individual keys can be removed by setting the value to null, and the entire metadata mapping can be cleared by setting metadata to null.

minimum
object | null
required
minimum_amount
string | null
required
paid_at
string | null
required

If the invoice has a status of paid, this gives a timestamp when the invoice was paid.

payment_attempts
object[]
required

A list of payment attempts associated with the invoice

payment_failed_at
string | null
required

If payment was attempted on this invoice but failed, this will be the time of the most recent attempt.

payment_started_at
string | null
required

If payment was attempted on this invoice, this will be the start time of the most recent attempt. This field is especially useful for delayed-notification payment mechanisms (like bank transfers), where payment can take 3 days or more.

scheduled_issue_at
string | null
required

If the invoice is in draft, this timestamp will reflect when the invoice is scheduled to be issued.

shipping_address
object | null
required
status
enum<string>
required
Available options:
issued,
paid,
synced,
void,
draft
subscription
object | null
required
subtotal
string
required

The total before any discounts and minimums are applied.

sync_failed_at
string | null
required

If the invoice failed to sync, this will be the last time an external invoicing provider sync was attempted. This field will always be null for invoices using Orb Invoicing.

total
string
required

The total after any minimums and discounts have been applied.

voided_at
string | null
required

If the invoice has a status of void, this gives a timestamp when the invoice was voided.

will_auto_issue
boolean
required

This is true if the invoice will be automatically issued in the future, and false otherwise.