Get a Payment Method Token by ID
API Basics
Pay In Endpoints
- MoneyIn
- Subscription
- TokenStorage
- Invoice
- LineItem
- PaymentLink
- PaymentMethodDomain
- HostedPaymentPages
- Cloud
- Wallet: Apple Pay
Pay Out Endpoints
- MoneyOut
- Bill
Pay Ops Endpoints
- Templates
- Boarding
- Chargebacks and ACH Returns
- Entities
- Notification
- Query
- Statistic
- Export
- Import
Object Models
- Object Model References
Get a Payment Method Token by ID
Retrieves details for a saved payment method.
GET
/
TokenStorage
/
{methodId}
curl --request GET \
--url https://api-sandbox.payabli.com/api/TokenStorage/{methodId} \
--header 'requestToken: <api-key>'
{
"responseText": "Success",
"isSuccess": true,
"responseData": {
"customers": [
{
"customerId": 1456,
"customerNumber": "CS789",
"customerUsername": "Marcus",
"customerStatus": 1,
"company": "Bluesky Tech Inc",
"firstname": "Marcus",
"lastname": "Chen",
"phone": "+14156789012",
"email": "marcus@blueskytech.com",
"address": "742 Innovation Ave",
"address1": "Suite 500",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"shippingAddress": "742 Innovation Ave",
"shippingAddress1": "Suite 500",
"shippingCity": "San Francisco",
"shippingState": "CA",
"shippingZip": "94105",
"shippingCountry": "US",
"balance": 250,
"timeZone": -8,
"mfa": true,
"mfaMode": 1,
"snProvider": null,
"snIdentifier": null,
"snData": null,
"lastUpdated": "2024-12-15T09:45:32.123",
"created": "2023-06-01T14:30:00",
"additionalFields": {
"clientId": "901555",
"invoiceScheduled": "true",
"invoiceFrequency": "monthly",
"invoiceStartDate": "Mon Jan 15 2024 00:00:00 GMT-0800 (Pacific Standard Time)",
"additionalProp1": "enterpriseClient"
},
"identifierFields": [
"firstname",
"email"
],
"subscriptions": null,
"storedMethods": null,
"customerSummary": null,
"paypointLegalname": "Bluesky Technologies LLC",
"paypointDbaname": "Bluesky Tech",
"parentOrgName": "TechCorp",
"parentOrgId": 5,
"paypointEntryname": "45782932fcc",
"pageindentifier": null,
"externalPaypointID": null,
"customerConsent": null
}
],
"idPmethod": "81f7fde1-dd8b-4892-b2e1-cd60dd91f6b4-XXXC",
"method": "card",
"descriptor": "visa",
"maskedAccount": "4XXXXXXX2345",
"expDate": "0926",
"holderName": "Marcus Chen",
"bin": "401288",
"binData": {
"binMatchedLength": "6",
"binCardBrand": "VISA",
"binCardType": "CREDIT",
"binCardCategory": "CLASSIC",
"binCardIssuer": "CHASE",
"binCardIssuerCountry": "UNITED STATES",
"binCardIssuerCountryCodeA2": "US",
"binCardIssuerCountryNumber": "840"
},
"aba": "",
"postalCode": "94105",
"methodType": "Single Merchant",
"lastUpdated": "2025-01-15T16:30:22.45502"
}
}
Authorizations
Most endpoints require an organization
token. Some endpoints require an application
token, and those endpoints are noted.
Path Parameters
The saved payment method ID.
Query Parameters
Format for card expiration dates in the response.
Accepted values:
-
0: default, no formatting. Expiration dates are returned in the format they're saved in.
-
1: MMYY
-
2: MM/YY
Example:
1
When true
, the request will include temporary tokens in the search and return details for a matching temporary token. The default behavior searches only for permanent tokens.
Example:
false
Response
200
application/json
Success
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api-sandbox.payabli.com/api/TokenStorage/{methodId} \
--header 'requestToken: <api-key>'
{
"responseText": "Success",
"isSuccess": true,
"responseData": {
"customers": [
{
"customerId": 1456,
"customerNumber": "CS789",
"customerUsername": "Marcus",
"customerStatus": 1,
"company": "Bluesky Tech Inc",
"firstname": "Marcus",
"lastname": "Chen",
"phone": "+14156789012",
"email": "marcus@blueskytech.com",
"address": "742 Innovation Ave",
"address1": "Suite 500",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"shippingAddress": "742 Innovation Ave",
"shippingAddress1": "Suite 500",
"shippingCity": "San Francisco",
"shippingState": "CA",
"shippingZip": "94105",
"shippingCountry": "US",
"balance": 250,
"timeZone": -8,
"mfa": true,
"mfaMode": 1,
"snProvider": null,
"snIdentifier": null,
"snData": null,
"lastUpdated": "2024-12-15T09:45:32.123",
"created": "2023-06-01T14:30:00",
"additionalFields": {
"clientId": "901555",
"invoiceScheduled": "true",
"invoiceFrequency": "monthly",
"invoiceStartDate": "Mon Jan 15 2024 00:00:00 GMT-0800 (Pacific Standard Time)",
"additionalProp1": "enterpriseClient"
},
"identifierFields": [
"firstname",
"email"
],
"subscriptions": null,
"storedMethods": null,
"customerSummary": null,
"paypointLegalname": "Bluesky Technologies LLC",
"paypointDbaname": "Bluesky Tech",
"parentOrgName": "TechCorp",
"parentOrgId": 5,
"paypointEntryname": "45782932fcc",
"pageindentifier": null,
"externalPaypointID": null,
"customerConsent": null
}
],
"idPmethod": "81f7fde1-dd8b-4892-b2e1-cd60dd91f6b4-XXXC",
"method": "card",
"descriptor": "visa",
"maskedAccount": "4XXXXXXX2345",
"expDate": "0926",
"holderName": "Marcus Chen",
"bin": "401288",
"binData": {
"binMatchedLength": "6",
"binCardBrand": "VISA",
"binCardType": "CREDIT",
"binCardCategory": "CLASSIC",
"binCardIssuer": "CHASE",
"binCardIssuerCountry": "UNITED STATES",
"binCardIssuerCountryCodeA2": "US",
"binCardIssuerCountryNumber": "840"
},
"aba": "",
"postalCode": "94105",
"methodType": "Single Merchant",
"lastUpdated": "2025-01-15T16:30:22.45502"
}
}