Get subscription invoice payment
GET/subscriptions/subscriptions/:subscription_uuid/invoices/:invoice_uuid/payments/:payment_uuid
Gets a specific payment for a given invoice.
Request
Path Parameters
The unique identifier of the subscription.
The unique identifier of the invoice.
The unique identifier of the payment.
Responses
- 200
- 404
Success. Specific payment for the invoice is returned.
- application/json
- Schema
- Example (from schema)
Schema
data SubscriptionInvoicePayment
The unique identifier.
Possible values: [subscription_invoice_payment]
This represents the type of resource object being returned. Always subscription_invoice_payment.
attributes SubscriptionInvoicePaymentAttributesrequired
Whether the payment was successful.
Whether the payment is pending (only for manual payments).
Possible values: <= 1024 characters
Specifies the payment gateway.
Possible values: <= 1024 characters
An optional external ID that is specific to the gateway used.
failure_detail object
The reason the payment failed.
amount SingleCurrencyPricerequired
A price in a single currency.
Possible values: <= 1024 characters
The three-letter ISO currency code in uppercase, associated with a price.
The value as a whole number of the currency's smallest subdivision.
Whether the amount includes any taxes.
meta SubscriptionInvoicePaymentMetarequired
The owner of a resource, either store or organization.
The unique identifier.
The unique identifier.
The unique identifier.
timestamps Timestampsrequired
The date and time a resource was updated.
The date and time a resource was created.
The date and time a payment was taken.
Whether manual payments are enabled or the payment will be handled by the configured gateway.
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "subscription_invoice_payment",
    "attributes": {
      "success": true,
      "pending": true,
      "gateway": "elastic_path_payments_stripe",
      "external_payment_id": "33e7ec6b-8b34-4c92-a95b-2e2647922e47",
      "failure_detail": {
        "reason": "Card Failure"
      },
      "amount": {
        "currency": "USD",
        "amount": 100,
        "includes_tax": false
      }
    },
    "meta": {
      "owner": "store",
      "subscription_id": "00000000-0000-0000-0000-000000000000",
      "invoice_id": "00000000-0000-0000-0000-000000000000",
      "job_id": "00000000-0000-0000-0000-000000000000",
      "timestamps": {
        "updated_at": "2017-01-10T11:41:19.244842Z",
        "created_at": "2017-01-10T11:41:19.244842Z",
        "payment_taken_at": "2017-01-10T11:41:19.244842Z"
      },
      "manual_payment": false
    }
  }
}
Not found. The requested entity does not exist.
- application/json
- Schema
- Example (from schema)
- not-found
Schema
- Array [
- ]
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "title": "Not Found",
      "status": "404",
      "detail": "No plan found"
    }
  ]
}