Skip to main content

Get Payment Option

GET 

/accounts/:customerAccountId/paymentOptions/:storedPaymentOptionReference

Retrieves a specific payment option identified by the reference parameter. This endpoint is useful when only a single payment option needs to be queried, without fetching all stored options.

Request​

Path Parameters

    customerAccountId stringrequired

    Possible values: <= 255 characters

    Customer identifier

    Example: john_doe_12345
    storedPaymentOptionReference stringrequired

    Unique identifier for the stored payment option to be retrieved

Header Parameters

    Content-Type stringrequired

    Must be application/json

    Accept-Language stringrequired

    Must be be en-US

    Origin stringrequired

    The origin of the request

    User-Agent stringrequired

    The client making the request

Responses​

Payment option successfully retrieved.

Schema
    result object[]

    List of one payment option object matching the reference.

  • Array [
  • namestring

    Name of the payment option provider (e.g., Visa, Mastercard, PayPal).

    Possible values: <= 128 characters

    Example: Mastercard
    codestring

    Internal payment option code identifying the payment method type.

    Possible values: <= 32 characters, [AMEX, BNKACCT, CRTBANCAIR, DISCOVER, GIROPAY, IDEAL, JCB, MSTRCRD, MSTRO, PAYPAL, PAYU, PAYUBLK, PAYUTWST, PAYUINST, PREPMNT, SEPADDB2B, SEPADDCORE, VISA, VISADBIT]

    Example: MSTRCRD
    carrierNumberstringnullable

    Masked card number or account identifier (e.g., IBAN, card PAN).

    Possible values: <= 32 characters

    Example: 520000****0106
    referencestring

    Unique reference ID of the stored payment option.

    Possible values: <= 64 characters

    Example: 8ac7a4a08c13ee65018c151c330a26c6
    isDefaultboolean

    Indicates whether this is the default payment option for the account.

    Example: true
    isExpiredboolean

    Indicates whether the payment option is expired.

    Example: false
    expiresSoonboolean

    Indicates whether the payment option is approaching expiry.

    Example: false
    expiryDatestringnullable

    Expiration date of the payment option if applicable.

    Possible values: <= 7 characters, Value must match regular expression MM/yyyy

    Example: 03/2025
  • ]