GET Customer Stored Payment Method
Returns one of the customer's saved payment methods.
properties is processor-dependent and typically carries the display values you need, such as masked_number and card_type.
The same resource is also reachable under /customer-accounts/{customer_account_id}/stored-payment-methods/{stored_payment_method_id}; the two are equivalent, and this form is the documented one.
Path Parameters
- Type: stringcustomer
_account _id requiredCustomer Account UUID
- Type: stringstored
_payment _method _id requiredStored payment method ID
Headers
- Type: stringContent
- Type requiredContent-Type header
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
- 404
No such stored payment method.
Request Example for get/customers/{customer_account_id}/stored-payment-methods/{stored_payment_method_id}
curl https://api-public-demo.menu.app/api/customers/4e42c2a6-3f23-11ed-936c-1a67b454859d/stored-payment-methods/b0566189-8b1d-456c-bd0b-fde59b4751aa \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
"status": "OK",
"code": 200,
"data": {
"stored_payment_method": {
"id": 1234,
"uuid": "b0566189-8b1d-456c-bd0b-fde59b4751aa",
"payment_method_id": 3,
"preselected": true,
"usage": "personal",
"billing_country_code": "US",
"billing_zip_code": "10001",
"properties": {
"masked_number": "**** **** **** 4242",
"card_type": "visa"
},
"proxy_info": null
}
}
}The saved payment method.
