v2.3
Postman collection
Back to main docs
Search...
/
Introduction
Getting Started
Authentication
API Responses
Idempotency Key
Loyalty Transactions
Changelogs
API Reference
Client Session API
GET
Retrieve a client session
POST
Create a client session
PATCH
Update client session
Payments API
GET
Search & list payments
POST
Create a payment
POST
Authorize a payment
POST
Capture a payment
POST
Cancel a payment
POST
Refund a payment
POST
Resume a payment
POST
Adjust authorized amount
GET
Get a payment
Payment Methods API
POST
Save a payment method token
GET
List saved payment methods
DEL
Delete a saved payment method
POST
Update the default saved payment method
Loyalty API
GET
Get a loyalty customer's points balance
GET
List the transactions for a customer
POST
Create a loyalty transaction
Webhooks
Payment Webhooks
POST
Payment Status Update
POST
Payment Refund
Dispute Chargebacks Webhooks
POST
Dispute Open
POST
Dispute Status
Postman collection
Back to main docs
API Reference
Payment Methods API
Update the default saved payment method
POST
https://
api.sandbox.primer.io
/
payment-instruments
/
:paymentMethodToken
/
default
Update a saved payment method to be the default stored payment method for a customer.
Path parameters
paymentMethodToken
string
Required
Saved payment method token to set to default.
Response
Expand all
Collapse all
This endpoint returns an object
createdAt
datetime
Optional
Creation date & time of the object (UTC)
deletedAt
datetime
Optional
Date & time when this object was revoked. (UTC)
deleted
boolean
Optional
Whether or not this object has been revoked.
token
string
Optional
The vaulted payment method token.
tokenType
string
Optional
MULTI_USE
a vaulted token that can be re-used with subsequent payments
analyticsId
string
Optional
Unique analytics identifier corresponding to a payment method
paymentMethodType
enum
Optional
Payment method type associated with a token.
Show 98 enum values
paymentMethodData
union
Optional
Payment method data
Show 5 variants
customerId
string
Optional
The ID representing the customer
description
string
Optional
A friendly description given by the user
default
boolean
Optional
Whether or not this payment method is the default
Errors
400
Bad Request
Built with