List Subscription Cards

This API allows you to retrieve a list of card tokens associated with a specific subscription identified by {{subscription_id}}. By sending a GET request to the specified URL with the appropriate Bearer Token in the request header, you can access information about the card tokens linked to that subscription. This can be valuable for managing and reviewing card tokens for recurring payments.

List Subscription Cards API Request:

URL: https://accept.paymob.com/api/acceptance/subscriptions/{{subscription_id}}/card-tokens

Method: GET

Source: Merchant's server

Recipient: Accept's server

Authentication: Bearer Token {auth token}

Example response data:

[
    {
        "id": 4,
        "created_at": "2023-12-04T12:27:56.218180",
        "is_primary": true,
        "masked_pan": "xxxx-xxxx-xxxx-2346",
        "failed_attempts": 0
    },
    {
        "id": 6,
        "created_at": "2023-12-05T19:14:56.789179",
        "is_primary": false,
        "masked_pan": "xxxx-xxxx-xxxx-1111",
        "failed_attempts": 0
    }
]