Invoice
- amountType: integer
Due requiredWhat your customer owes on the invoice in all, before payments. Integer minor units (cents for USD).
- amountType: integer
Paid requiredHow much has been paid. An invoice Stripe has settled counts as paid in full, including any part Stripe took from the customer's Stripe balance (no payment is recorded for that part). Integer minor units (cents for USD).
- amountType: integer
Remaining min:0requiredWhat's still to pay:
invoiceTotallessamountPaid, never below 0, and 0 for a voided invoice. Integer minor units (cents for USD). - billingType: string | null
Contact Id requiredThe contact the invoice is addressed to (
con_…), the first of the order's billing contacts; null when the order names none or the invoice has no order. - createdType: stringFormat: date-time
At requiredthe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- creditType: integer
Notes Total requiredWhat's been refunded on the invoice, through credit notes (Create a credit note, or refunds made in Stripe). Integer minor units (cents for USD).
- currencyType: stringrequired
Three-letter ISO 4217 code, upper case.
- customerType: string
Id requiredThe customer billed.
- displayType: string
Number requiredThe invoice number your customer sees. For an invoice Spondo Billing made,
INV-and a number counting up fromINV-1001, one more than the highest number Spondo Billing has given so far (Stripe's invoice numbers don't count). For an invoice Stripe issued, Stripe's invoice number. - disputeType: string | nullFormat: uri
Link requiredA page where your customer can dispute the invoice, when there is one.
- dueType: string | nullFormat: date-time
Date requiredWhen payment is due. For an invoice Spondo Billing posts, it's set on posting: the order's payment terms counted from that moment (14 days when the order sets none). Null when the invoice is collected automatically with no due date.
- endType: stringFormat: date-time
Date requiredEnd of the billing period, exclusive (the next period's start).
- idType: stringrequired
The invoice's ID.
- invoiceType: integer
Total requiredThe total including tax. Integer minor units (cents for USD).
- invoiceType: integer
Total Excluding Tax requiredThe total before tax. Integer minor units (cents for USD).
- issueType: stringFormat: date-time
Date requiredWhen the invoice was issued.
- metadataType: nullablerequiredProperties: 1
Your own key-value data, set with Update an invoice; null when unset.
- orderType: string | null
Id requiredThe order this invoice bills, or null for an invoice raised outside an order.
- paymentType: string | nullFormat: uri
Link requiredWhere your customer can see and pay the invoice: Stripe's hosted invoice page when Stripe collects it; otherwise, once it's posted, its hosted page,
https://billing.getspondo.com/public/invoices/{publicUrlToken}, which shows your customer's bank transfer details when they have funding instructions. Null for a draft or voided invoice that Stripe doesn't collect. - paymentType: enum
Status requiredHow much of the invoice is paid.
pending: nothing paid yet and not past its due date.partiallyPaid: some paid.paid: paid in full.overdue: posted, not paid in full and past its due date (this wins overpartiallyPaid). A posted credit invoice (a total of zero or less) owes nothing, so it'spaid, neveroverdue.error: collecting payment failed in a way that needs your attention.valuespendingpaidpartiallyPaidoverdueerror - postedType: string | nullFormat: date-time
Date requiredWhen the invoice was posted; null until then.
- publicType: string | null
Url Token requiredThe token in the address of the invoice's hosted page,
https://billing.getspondo.com/public/invoices/{publicUrlToken}: a printable page your customer can open without signing in. Set when the invoice is posted; null for a draft, and usually for an invoice Stripe issued, which has Stripe's page instead. - purchaseType: string | null
Order Reference requiredYour customer's purchase order reference, set with Update an invoice.
- sourceType: "order_based" or "manual"enumrequired
order_basedwhen the invoice bills an order;manualotherwise. - startType: stringFormat: date-time
Date requiredStart of the billing period, inclusive.
- statusType: enumrequired
Where the invoice is in its life.
building: being assembled for its period, and its lines can still change.draft: assembled and waiting to be posted; your customer hasn't been sent it and it can't be paid.pending: being posted.posted: issued to your customer; it can be paid, and payments can be allocated to its lines (it stayspostedonce paid: seepaymentStatus).voided: cancelled after posting, so nothing is owed.canceled: discarded before it was posted.error: something stopped it being built or posted.valuesbuildingdraftpendingpostedvoidedcancelederror - taxType: integer
Amount requiredTax on the invoice; negative on an invoice that credits more than it charges, which gives its tax back too. Integer minor units (cents for USD).
- taxType: boolean
Exempt requiredWhether the customer is exempt from tax.
- taxType: number
Rate requiredTax as a fraction of the total excluding tax, to 4 decimal places (0.08 is 8%); 0 when there is no tax.
- taxType: "calculated" or "committed" or "not_applicable"enum
Status requiredcalculatedwhen a draft invoice carries tax, which can still change;committedonce an invoice that carries tax is posted, and its tax is final;not_applicablewhen it carries none. - updatedType: stringFormat: date-time
At requiredWhen the invoice last changed.