Skip to main content

Get subscription invoice payment

GET 

https://euwest.api.elasticpath.com/v2/subscriptions/subscriptions/:subscription_uuid/invoices/:invoice_uuid/payments/:payment_uuid

Gets a specific payment for a given invoice.

Request

Path Parameters

    subscription_uuid UUIDrequired

    The unique identifier of the subscription.

    invoice_uuid UUIDrequired

    The unique identifier of the invoice.

    payment_uuid UUIDrequired

    The unique identifier of the payment.

Responses

Success. Specific payment for the invoice is returned.

Schema
    data SubscriptionInvoicePayment
    idUUID (string)required

    The unique identifier.

    Example: 11111111-2222-3333-4444-555555555555
    typeSubscriptionInvoicePaymentType (string)required

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

    Possible values: [subscription_invoice_payment]

    Example: subscription_invoice_payment
    attributes SubscriptionInvoicePaymentAttributesrequired
    successbooleanrequired

    Whether the payment was successful.

    Example: true
    pendingboolean

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

    Example: true
    gatewaystringrequired

    Specifies the payment gateway.

    Possible values: <= 1024 characters

    Example: elastic_path_payments_stripe
    external_payment_idstring

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

    Possible values: <= 1024 characters

    Example: 33e7ec6b-8b34-4c92-a95b-2e2647922e47
    failure_detail object

    The reason the payment failed.

    reasonstring
    Example: Card Failure
    amount SingleCurrencyPricerequired

    A price in a single currency.

    currencystringrequired

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

    Possible values: <= 1024 characters

    Example: USD
    amountint64required

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

    Example: 100
    includes_taxboolean

    Whether the amount includes any taxes.

    Example: true
    meta SubscriptionInvoicePaymentMetarequired
    ownerstringrequired

    The owner of a resource, either store or organization.

    Example: store
    subscription_idUUID (string)required

    The unique identifier.

    Example: 11111111-2222-3333-4444-555555555555
    invoice_idUUID (string)required

    The unique identifier.

    Example: 11111111-2222-3333-4444-555555555555
    job_idUUID (string)required

    The unique identifier.

    Example: 11111111-2222-3333-4444-555555555555
    timestamps InvoicePaymentTimestamps
    updated_atstringrequired

    The date and time a resource was updated.

    Example: 2017-01-10T11:41:19.244842Z
    created_atstringrequired

    The date and time a resource was created.

    Example: 2017-01-10T11:41:19.244842Z
    payment_taken_atstring

    The date and time a payment was taken.

    Example: 2017-01-10T11:41:19.244842Z
    manual_paymentbooleanrequired

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

    Example: false

Authorization: http

name: BearerTokentype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/v2/subscriptions/subscriptions/:subscription_uuid/invoices/:invoice_uuid/payments/:payment_uuid");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Parameters
— pathrequired
— pathrequired
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.