The cards on file for this credential's environment.
GET
/v1/payment-methods
const url = 'https://courierapi.itdlogisoft.co.uk/v1/payment-methods';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://courierapi.itdlogisoft.co.uk/v1/payment-methods \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
A card on file.
Four digits, a brand and an expiry, which is the most of a card this platform ever holds. The number lives at the payment provider and reaches us at no point.
object
id
required
string
brand
required
string
last_four
required
string
expiry_month
required
integer | string format: int32
expiry_year
required
integer | string format: int32
status
required
string
is_default
required
boolean
attached_at
required
string format: date-time
dead_reason
required
null | string
Example generated
[ { "id": "example", "brand": "example", "last_four": "example", "expiry_month": 1, "expiry_year": 1, "status": "example", "is_default": true, "attached_at": "2026-04-15T12:00:00Z", "dead_reason": "example" }]