List cards
List all your cards that have been added to the system.
Request
Request header:
GET https://api.ipaymy.com/v2/cards
Host: api.ipaymy.com
Accept: application/json
Authorization: Bearer your_access_token
Response
Response body:
{
"cross_border_card_flag": true,
"data": [
{
"acquirer_id": 81,
"additional_data": {
"is_favourite": false,
"card_nick_name": ""
},
"card_brand": 2,
"created_at": "2023-07-11T07:04:47.409179Z",
"expiry_month": "12",
"expiry_year": "2023",
"id": 17057,
"is_wallet_card": true,
"last_4": "1091",
"last_used_at": "2023-07-11T09:30:13.655149Z",
"name": "Visa"
},
{
"acquirer_id": 81,
"additional_data": {
"is_favourite": false,
"card_nick_name": "Mastercard"
},
"card_brand": 3,
"created_at": "2023-06-13T05:44:52.704925Z",
"expiry_month": "12",
"expiry_year": "2025",
"id": 16985,
"is_wallet_card": true,
"last_4": "1005",
"last_used_at": "2023-06-26T10:06:15.444349Z",
"name": "Mastercard"
}
]
}
Response codes:
- 200: Good stuff, and the response body should be easy to parse.
- 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.