Skip to main content

Update Invoice Payment

PUT 

/subscriptions/invoices/:invoice_uuid/payments/:payment_uuid

External payment methods are payment methods not offered by Elastic Path Subscriptions (such as Elastic Path Payments powered by Stripe or Authorize.net), but they can still be integrated with Subscriptions. You can use the Update Invoice Payment endpoint to manually update a payment against an invoice where an external payment method is handling the payment of your invoices. See External Payments.

Request

Path Parameters

    invoice_uuid UUIDrequired

    The unique identifier of the invoice.

    payment_uuid UUIDrequired

    The unique identifier of the payment.

Body

    data UpdateInvoicePaymentrequired
    id UUID (string)required

    The unique identifier.

    type SubscriptionInvoicePaymentType (string)required

    Possible values: [subscription_invoice_payment]

    This represents the type of resource object being returned. Always subscription_invoice_payment.

    attributes UpdateInvoicePaymentAttributesrequired
    success booleanrequired

    Whether the payment was successful.

    external_payment_id string

    Possible values: <= 1024 characters

    An optional external ID that is specific to the gateway used.

    failure_detail string

    A message generated by an external payment method that describes why a payment fails.

    payment_taken_at string

    The date and time the invoice payment was taken at.

Responses

Success. Invoice payment has been updated.

Schema
    data SubscriptionInvoicePaymentrequired
    id UUID (string)required

    The unique identifier.

    type SubscriptionInvoicePaymentType (string)required

    Possible values: [subscription_invoice_payment]

    This represents the type of resource object being returned. Always subscription_invoice_payment.

    attributes SubscriptionInvoicePaymentAttributesrequired
    success booleanrequired

    Whether the payment was successful.

    pending boolean

    Whether the payment is pending (only for manual payments).

    gateway stringrequired

    Possible values: <= 1024 characters

    Specifies the payment gateway.

    external_payment_id string

    Possible values: <= 1024 characters

    An optional external ID that is specific to the gateway used.

    failure_detail object

    The reason the payment failed.

    reason string
    amount SingleCurrencyPricerequired

    A price in a single currency.

    currency stringrequired

    Possible values: <= 1024 characters

    The three-letter ISO currency code in uppercase, associated with a price.

    amount int64required

    The value as a whole number of the currency's smallest subdivision.

    includes_tax boolean

    Whether the amount includes any taxes.

    meta SubscriptionInvoicePaymentMetarequired
    owner stringrequired

    The owner of a resource, either store or organization.

    subscription_id UUID (string)required

    The unique identifier.

    invoice_id UUID (string)required

    The unique identifier.

    job_id UUID (string)required

    The unique identifier.

    timestamps Timestampsrequired
    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

    payment_taken_at string

    The date and time a payment was taken.

    manual_payment booleanrequired

    Whether manual payments are enabled or the payment will be handled by the configured gateway.

Loading...