Invoices
The invoice_payment object
An invoice payment links an invoice to one payment intent or charge that collects it. An invoice has one per collection attempt; list them with GET /invoices/{id}/payments.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
invoicestringRequiredID of the invoice the payment is for.
statusstringRequiredState of the payment.
openThe payment has not completed yet.
paidThe payment succeeded.
canceledThe payment was canceled and will not collect anything.
amount_requestedintegerRequiredAmount this payment asked for, in the smallest currency unit (for example,
49900is 499.00 THB).amount_paidintegerNullableAmount this payment collected, in the smallest currency unit. Set when
statusispaid; omitted otherwise.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
is_defaultbooleanRequiredtruefor the payment Paycose created itself to collect the invoice, when it was finalized or paid throughPOST /invoices/{id}/pay.paymentobjectRequiredThe payment intent or charge behind this invoice payment.
Show child attributes
payment.typestringRequiredWhich kind of payment it is; the matching ID field is set.
payment_intentThe invoice is collected through a payment intent.
chargeThe invoice is collected by a charge made without a payment intent.
payment.payment_intentstringID of the payment intent. Set when
typeispayment_intent.payment.chargestringID of the charge. Set when
typeischarge.