List payment methods

Changed on

This endpoint allows you to retrieve a list of all saved payment methods associated with the customer. This includes credit cards, wallets, and other supported payment options, along with their metadata such as type, last four digits, and expiry.

get/2026-04/paymentMethod

Request

  • Base URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2026-04/paymentMethod
  • Auth
    API key in header Authorization

Response

Payment methods fetched successfully

successboolean
messagestring
codestring

Example response

{
  "success": true,
  "message": "Payment methods fetched successfully",
  "data": [
    {
      "id": 86,
      "type": "CustomerCreditCard",
      "card": {
        "brand": "visa",
        "expiryYear": 23,
        "expiryMonth": 12,
        "lastDigits": "3184"
      },
      "billingAddress": {
        "zip": "411002",
        "city": "Pune",
        "country": "India",
        "address1": "Pune",
        "province": "Maharashtra",
        "countryCode": "IN",
        "provinceCode": "MH"
      },
      "status": "safe"
    }
  ],
  "code": "SUCCESS"
}

Changes