Payment Methods API

List saved payment methods

GET
https://api.sandbox.primer.io/payment-instruments

Retrieve a list of stored payment methods for a customer.

Query parameters

customer_id
string

Return payment methods for this customer ID.

Response

This endpoint return an object.
data
optional list of objects
GET
/payment-instruments
1
2
curl "https://api.sandbox.primer.io/payment-instruments" \
     -H "X-API-KEY: <apiKey>"
Response
1
2
3
4
5
6
7
{
  "data": [
    {
      "paymentMethodType": "PAYMENT_CARD"
    }
  ]
}