Esenda
Recurring Payments

Saved Cards

Retrieve and manage a customer's saved tokenised cards

Retrieve information about a tokenised card or disable it to prevent future use.

Production: https://api.esenda.com/v2/partner/recurring-payment/{shortcode}/cards/{tokenised_card_id}

Sandbox: https://api-demo.esenda.com/v2/partner/recurring-payment/{shortcode}/cards/{tokenised_card_id}

Headers

Accept-Language: <LANGUAGE>   (optional, default en-GB)
Authorization:   Bearer <ACCESS_TOKEN>
Content-Type:    application/json

Path Parameters

ParameterTypeRequiredDescriptionExample
shortcodeStringYesYour Esenda shortcode identifierexample-school
tokenised_card_idStringYesThe unique card identifier from the tokenisation responsec3e7f8a9-1234-5678-9012-3456789abcde

GET — View Saved Card

200 — Active Card

{
  "tokenised_card_id": "c3e7f8a9-1234-5678-9012-3456789abcde",
  "customer_name": "John Smith",
  "customer_email": "john.smith@example.com",
  "card": {
    "card_last_four": "1234",
    "card_brand": "visa",
    "card_expiry_month": "12",
    "card_expiry_year": "2028",
    "status": "active",
    "created_at": "2024-01-23 14:42:19.999462"
  }
}

404 — Not Found

{
  "error": "Not found",
  "message": "No cards found for tokenised_card_id: c3e7f8a9-1234-5678-9012-3456789abcde"
}

DELETE — Disable Saved Card

Disables the card to prevent it from being used for future payments.

204 — Success

204 No Content

On this page