For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve subscription payment information

Use the getSubscriptionPaymentInformation method to retrieve information related to the payment made for a subscription.

Request parameters

Parameters
Type / Description

sessionID

Required (String) — Session identifier, the output of the Login method. Include sessionID into all your requests. 2Checkout throws an exception if the values are incorrect. The sessionID expires in 10 minutes.

subscriptionReference

Required (String) — The reference of the subscription you want to retrieve payment information for.

Response parameters

Parameters
Type / Description

Type

String

Payment method type.

Currency

String

ISO code of the order currency.

PaymentMethod

Object

Payment method details:

PaymentMethod.FirstDigits

String

First 4 digits of the card used on the order.

PaymentMethod.LastDigits

String

Last 4 digits of the card used on the order.

PaymentMethod.CardType

String

Type of card used on the order.

PaymentMethod.ExpirationMonth

String

Card expiration month.

PaymentMethod.ExpirationYear

String

Card expiration year.

PaymentMethod.CardUpdated

Boolean

The card updated by our internal account updater.

PaymentMethod.Authorize3DSUrl

String

URL address to which customers are redirected after the 3DS details get validated by the bank and the order is successfully authorized.

Response sample

{
    "Type": "CC",
    "Currency": "USD",
    "PaymentMethod": {
        "FirstDigits": "4111",
        "LastDigits": "1111",
        "ExpirationMonth": null,
        "ExpirationYear": null,
        "CardUpdated": false,
        "Authorize3DSUrl": null,
        "CardType": "Visa"
    }
}

Request sample

Last updated

Was this helpful?