List all payment tokens for customer
GET {{base_url}}/v3/vault/payment-tokens?customer_id={{vault_customer_id}}
Returns all payment tokens for a customer.
Request Params
| Key | Datatype | Required | Description |
| page_size
| number | | A non-negative, non-zero integer indicating the maximum number of results to return at one time. |
| page
| number | | A non-negative, non-zero integer representing the page of the results. |
| total_required
| boolean | | A boolean indicating total number of items (total_items) and pages (total_pages) are expected to be returned in the response. |
| customer_id
| string | | |
HEADERS
| Key | Datatype | Required | Description |
| Content-Type
| string | | The Content-Type header field is used to specify the nature of the data in the body of an entity. PayPal REST APIs support application/json. |
| PayPal-Request-Id
| string | | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager. |
| PayPal-Auth-Assertion
| string | | An API client-provided JSON Web Token (JWT) assertion that identifies the merchant. To use this header, you must get consent to act on behalf of a merchant.
|
RESPONSES
status: OK
{"customer":{"id":"EUvtnr5"},"payment_tokens":[{"id":"dd0nf9cw","customer":{"id":"EUvtnr5"},"payment_source":{"paypal":{"shipping":{"name":{"full_name":"John Doe"},"address":{"address_line_1":"2211 N First Street","address_line_2":"Building 17","admin_area_2":"San Jose","admin_area_1":"CA","postal_code":"95131","country_code":"US"}},"usage_type":"MERCHANT","customer_type":"CONSUMER","email_address":"_sys_aquarium-1020124149375675@paypal.com","payer_id":"WRV2K2BFNBRJY","name":{"given_name":"Earl","surname":"Kenneth","full_name":"Earl Kenneth"},"phone":{"phone_number":{"country_code":"US","national_number":"684-346-8882"}},"tenant":"PAYPAL"}},"links":[{"href":"https://api.sandbox.paypal.com/v3/vault/payment-tokens/dd0nf9cw","rel":"self","method":"GET","encType":"application/json"},{"href":"https://api.sandbox.paypal.com/v3/vault/payment-tokens/dd0nf9cw","rel":"delete","method":"DELETE","encType":"application/json"}]}],"links":[{"href":"https://api.sandbox.paypal.com/v3/vault/payment-tokens?pageNumber=1\u0026totalRequired=false\u0026customer_id=EUvtnr5\u0026pageSizeInternal=5","rel":"self","method":"GET","encType":"application/json"},{"href":"https://api.sandbox.paypal.com/v3/vault/payment-tokens?pageNumber=1\u0026totalRequired=false\u0026customer_id=EUvtnr5\u0026pageSizeInternal=5","rel":"first","method":"GET","encType":"application/json"},{"href":"https://api.sandbox.paypal.com/v3/vault/payment-tokens?pageNumber=1\u0026totalRequired=false\u0026customer_id=EUvtnr5\u0026pageSizeInternal=5","rel":"last","method":"GET","encType":"application/json"}]}