Get saved payment methods for the customer

View your saved card details and payment methods. This endpoint returns an ID that may be needed for future payment-related operations, such as initiating a new payment.

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
GET https://cloud.hostup.se/api/billing/cards
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/billing/cards" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "cards": [
      {
        "id": "string",
        "cardtype": "string",
        "token_gateway_id": "string",
        "cardcreated": "string",
        "cardupdated": "string",
        "cardname": "string",
        "card_contact_id": 0,
        "cardnum": "string",
        "expdate": "string",
        "token": "string",
        "status": "string",
        "primary": true,
        "expirymonth": "string",
        "expiryyear": "string",
        "store": true,
        "gateway_name": "string",
        "cardnum_pretty": "string",
        "last4": "string",
        "flags": 0
      }
    ],
    "success": true
  }
}