Invoice Payment

Invoice Payments represent payments made against invoices. Invoice Payments can be accessed in two ways:

  • By expanding the payments field on the Invoice resource.
  • By using the Invoice Payment retrieve and list endpoints.

Invoice Payments include the mapping between payment objects, such as Payment Intent, and Invoices. This resource and its endpoints allows you to easily track if a payment is associated with a specific invoice and monitor the allocation details of the payments.

Was this section helpful?YesNo
Retrieve an InvoicePayment
GET/v1/invoice_payments/:id
List all payments for an invoice
GET/v1/invoice_payments

The Invoice Payment object

Attributes

  • idstring

    Unique identifier for the object.

  • amount_paidnullable integer

    Amount that was actually paid for this invoice, in the smallest currency unit. This field is null until the payment is paid. This amount can be less than the amount_requested if the PaymentIntent’s amount_received is not sufficient to pay all of the invoices that it is attached to.

  • amount_requestedinteger

    Amount intended to be paid toward this invoice, in the smallest currency unit

  • invoicestringExpandable

    The invoice that was paid.

  • is_defaultboolean

    Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s amount_remaining. The PaymentIntent associated with the default payment can’t be edited or canceled directly.

  • paymentobject

    The details on the payment.

  • statusstring

    The status of the payment, one of open, paid, or canceled.

More attributes

  • objectstring

  • createdtimestamp

  • currencystring

  • livemodeboolean

  • status_transitionsobject

The Invoice Payment object
{
"object": "invoice_payment",
"amount_paid": 2000,
"amount_requested": 2000,
"created": 1391288554,
"currency": "usd",
"is_default": true,
"livemode": false,
"payment": {
"type": "payment_intent",
"payment_intent": ""
},
"status": "paid",
"status_transitions": {
"canceled_at": null,
"paid_at": 1391288554
}
}

Retrieve an InvoicePayment

Retrieves the invoice payment with the given ID.

Parameters

No parameters.

Returns

Returns an invoice_payment object if a valid invoice payment ID was provided. Otherwise, this call raises an error.

curl https://api.stripe.com/v1/invoice_payments/ \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:"
Response
{
"object": "invoice_payment",
"amount_paid": 2000,
"amount_requested": 2000,
"created": 1391288554,
"currency": "usd",
"is_default": true,
"livemode": false,
"payment": {
"type": "payment_intent",
"payment_intent": ""
},
"status": "paid",
"status_transitions": {
"canceled_at": null,
"paid_at": 1391288554
}
}