Stored Instruments
Get Stored Instruments
GET https://api.bigcommerce.com/stores/{store_hash}/v3/customers/{customerId}/stored-instrumentsRequest
Lists all available stored instruments for a customer. This list will include all types of stored instruments namely card, account and bank_account instruments
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- customerId in path - integerrequiredThe ID of the customer.
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v3/customers/[customerId]/stored-instruments' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
OK
Body
array | application/json
One of:PayPal Account Instrument Bank Account Instrument
typestring
Type of instrument.Allowed: stored_card
tokenstring
An identifier representing this stored instrument.Example: 84596bea275fa254da820056bdc3e495bdf01fd11c51b0336347d447ee16200cis_defaultboolean
Identifies whether this stored instrument is default for the customer.brandstring
Card brand.Example: VISAexpiry_monthinteger
Expiry month for this card.Min: 1Max: 12expiry_yearinteger
Expiry year for this card.issuer_identification_numberstring
Issuer identification number for this card.Example: 411111last_4string
Last four digits of this card.Example: 1111billing_addressobject
example-1
[
{
"type": "stored_card",
"token": "84596bea275fa254da820056bdc3e495bdf01fd11c51b0336347d447ee16200c",
"is_default": true,
"brand": "VISA",
"expiry_month": 1,
"expiry_year": 0,
"issuer_identification_number": "411111",
"last_4": "1111",
"billing_address": {
"first_name": "Tester",
"last_name": "Tester",
"email": "example@email.com",
"company": "Test Company",
"address1": "1 Sample Street",
"address2": "Apt 1",
"city": "Las Vegas",
"postal_code": "90854",
"state_or_province": "Nevada",
"state_or_province_code": "NV",
"country_code": "US",
"phone": "101-192-0293"
}
}
Did you find what you were looking for?