Skip to main content

Set Default Card

PUT 

/api/customers/:customer/payment-methods/:paymentMethod/default

Make a saved card the customer's default. Clears the default flag on the customer's other cards and sets it on this one.

Required scope: customers:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token (PAT). Permission: customers.update.

No request body. The card must belong to the customer in the path, otherwise a 422 is returned.

Returns 200 with { data: <card on file>, message: "Default card updated." } (no token field).

Request

Responses

OK

Response Headers
    Content-Type