Skip to main content

InvoiceResponse

Invoice

Properties

NameTypeRequiredDescription
id_str
attempt_countfloat
billingstrDetermines the method of collection, pay_automatically or send_invoice. Default is pay_automatically
billing_reasonstrThe reason for billing
created_atfloatThe time the invoice was created, in Unix time. Response only.
discountDiscountDescribes the fields relating to discounts in REST messages and webhooks for customer profiles and subscriptions Contains information about the coupon that applies to the customer. Read-only field. Adding a discount is a 2-step process - 1. Create Coupon, which returns a coupon ID. 2. Add the coupon ID to the coupon field of the customer with Create Customer or Update Customer.
currencystr
customerstrID of the customer. String starting with cus_.
days_until_duefloatThe number of days until the due date.
descriptionstrDescription of the invoice.
due_datestrThe date payment is due on this invoice. This value is calculated from the date the invoice is created, plus the number of days specified in the days_until_due field. Format is in Unix time.
metadatadictA JSON object defined by the client.
payment_fieldsdictObject containing additional payment_options fields.
payment_methodstrPayment method for the invoice.
statement_descriptorstrDescription of the invoice for the customer's credit card statement. Limited to 22 characters.
subscriptionstrID of the subscription that is the basis for this invoice.
tax_percentfloatThe tax rate, defined as a percentage.
paymentPaymentCollects money from a payment method and deposits it into one or more Rapyd Wallets
payoutstr
period_endfloatLast date in the period covered by the invoice, in Unix time. Response only.
period_startfloatFirst date in the period covered by the invoice, in Unix time. Response only.
linesList[InvoiceItem]
subtotalfloatTotal of all line items before discount and before tax. Decimal. Response only.
taxfloatThe amount of tax charged. Decimal
numberstr
totalfloatTotal after discount and tax. Decimal.
statusstrAn invoice moves through a series of statuses. See status table below.
payout_fieldsdictReserved
type_InvoiceResponseType

InvoiceResponseType

Properties

NameTypeRequiredDescription
PAYMENTstr"payment"
PAYOUTstr"payout"

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →