Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
Invoice details
amount_due is the total amount that needs to be paid for this invoice
currency is the three-letter ISO currency code (e.g., USD, EUR) for the invoice
customer_id is the unique identifier of the customer this invoice belongs to
subtotal is the amount before taxes and discounts are applied
total is the total amount of the invoice including taxes and discounts
amount_paid is the amount that has been paid towards this invoice
billing_period is the period this invoice covers (e.g., "monthly", "yearly")
SUBSCRIPTION_CREATE
, SUBSCRIPTION_CYCLE
, SUBSCRIPTION_UPDATE
, PRORATION
, MANUAL
coupons
description is an optional text description of the invoice
due_date is the date by which payment is expected
environment_id is the unique identifier of the environment this invoice belongs to
idempotency_key is an optional key used to prevent duplicate invoice creation
Invoice Coupns
invoice_number is an optional human-readable identifier for the invoice
invoice_pdf_url is the URL where customers can download the PDF version of this invoice
DRAFT
, FINALIZED
, VOIDED
SUBSCRIPTION
, ONE_OFF
, CREDIT
Invoice Line Item Coupons
line_items contains the individual items that make up this invoice
INITIATED
, PENDING
, PROCESSING
, SUCCEEDED
, OVERPAID
, FAILED
, REFUNDED
, PARTIALLY_REFUNDED
period_end is the end date of the billing period
period_start is the start date of the billing period
prepared_tax_rates contains the tax rates pre-resolved by the caller (e.g., billing service) These are applied at invoice level by the invoice service without further resolution
subscription_id is the optional unique identifier of the subscription associated with this invoice
tax_rate_overrides is the tax rate overrides to be applied to the invoice
tax_rates
Response
Created
amount_due is the total amount that needs to be paid for this invoice
amount_paid is the amount that has been paid towards this invoice
amount_remaining is the amount still outstanding on this invoice
billing_period is the period this invoice covers (e.g., "monthly", "yearly")
billing_reason indicates why this invoice was created (subscription_cycle, manual, etc.)
billing_sequence is the optional sequence number for billing cycles
coupon_applications contains the coupon applications associated with this invoice
created_at is the timestamp when this invoice was created
created_by is the identifier of the user who created this invoice
currency is the three-letter ISO currency code (e.g., USD, EUR) for the invoice
Customer response object containing all customer information
customer_id is the unique identifier of the customer this invoice belongs to
description is the optional text description of the invoice
due_date is the date by which payment is expected
finalized_at is the timestamp when this invoice was finalized
id is the unique identifier for this invoice
idempotency_key is the optional key used to prevent duplicate invoice creation
invoice_number is the optional human-readable identifier for the invoice
invoice_pdf_url is the optional URL to the PDF version of this invoice
DRAFT
, FINALIZED
, VOIDED
SUBSCRIPTION
, ONE_OFF
, CREDIT
line_items contains the individual items that make up this invoice
overpaid_amount is the amount overpaid if payment_status is OVERPAID (amount_paid - total)
paid_at is the timestamp when this invoice was paid
INITIATED
, PENDING
, PROCESSING
, SUCCEEDED
, OVERPAID
, FAILED
, REFUNDED
, PARTIALLY_REFUNDED
period_end is the end date of the billing period
period_start is the start date of the billing period
status represents the current status of this invoice
subscription_id is the optional unique identifier of the subscription associated with this invoice
subtotal is the amount before taxes and discounts are applied
tax_applied_records contains the tax applied records associated with this invoice
tenant_id is the unique identifier of the tenant this invoice belongs to
total is the total amount of the invoice including taxes and discounts
total_discount is the total discount amount from coupon applications
total_tax is the total tax amount for this invoice
updated_at is the timestamp when this invoice was last updated
updated_by is the identifier of the user who last updated this invoice
version is the version number of this invoice
voided_at is the timestamp when this invoice was voided