Invoice

Invoice snapshot for invoice.paid and invoice.payment_failed events.

  • An invoice represents the amount due for a billing period and the payment attempts used to collect it. Subscription invoice webhook events include this object in data.object.

    • Unique identifier for the invoice.

    • Time at which the invoice was created.

    • Time at which the invoice was last updated.

    • Customer associated with the invoice. Pass expand[]=customer to include the full Customer object.

      • Customer associated with the invoice. Pass expand[]=customer to include the full Customer object.

    • Current invoice status. Use the invoice event type and payment attempts to distinguish a failed collection attempt from the invoice lifecycle state.

      values
      • draft

        Invoice is being prepared and is not ready for collection.

      • open

        Invoice is finalized and payment is still due.

      • paid

        Invoice has been fully paid.

      • void

        Invoice was voided and will not be collected.

      • uncollectible

        Invoice was marked uncollectible after collection was abandoned.

    • Reason the invoice was created. Use this to choose the right recovery or fulfillment flow for subscription invoices.

      values
      • subscription_create

        First invoice created when a subscription starts and payment is due immediately.

      • subscription_cycle

        Recurring invoice created for a subscription billing period.

      • subscription_update

        Invoice created because a subscription changed in a way that produced an amount due.

      • manual

        Invoice created directly rather than by subscription automation.

    • How Paypercut collects payment for the invoice.

      values
      • charge_automatically

        Paypercut attempts to collect the invoice using a saved payment method.

      • send_invoice

        Payment is expected through an invoice collection flow rather than an immediate automatic charge.

    • ISO 4217 currency codes (alpha3) supported for payments

    • Total amount due on the invoice, in the smallest currency unit.

    • Amount successfully collected for the invoice, in the smallest currency unit.

    • Amount still outstanding on the invoice, in the smallest currency unit.

    • Billing period covered by an invoice or invoice line.

      Properties: 2
    • Resource that caused the invoice to be created.

      Properties: 2
    • Invoice line items included with the invoice. Additional lines can be fetched from url when has_more is true.

      Properties: 4
    • Payment attempts associated with the invoice.

      Properties: 4
    • Timestamps for important invoice lifecycle transitions.

      Properties: 4
    • Error details from the last failed invoice finalization attempt.

      Properties: 9
    • Has the value true if the invoice exists in live mode or false if it exists in test mode.

    • Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

    • String representing the object's type.

    • Account associated with the Invoice.