Update payment method

This API is used to make a payment method the default one or to update a card's expiry and holder name.

It returns the updated payment method.

Note: Send only the fields to change. Bank accounts have no expiry: exp_month / exp_year are ignored for them.

URL

{{interface_url}}/{{version}}/customers/{{customer_id}}/payment-methods/{{payment_method_id}}

Method

PATCH

Headers

Authorization: Bearer {access_token} (or Api-Key)

Request Parameters

FieldTypeRequiredDescription
defaultBooleanNotrue makes it the default method.
exp_monthIntegerNo1-12 (cards).
exp_yearIntegerNo2 digits (cards).
card_holderStringNoMax 45.

URL Parameters

ParameterRequired/OptionalTypeDescription
customer_idRequiredIntegerOur customer ID (id returned by Create customer).
payment_method_idRequiredIntegerPayment method ID (id returned by List payment methods).

Example Request (cURL)

curl --location --request PATCH '{{interface_url}}/{{version}}/customers/{{customer_id}}/payment-methods/{{payment_method_id}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--data '{
  "default": true,
  "exp_month": 11,
  "exp_year": 29
}'

Example Response (JSON) — 200

{
  "id": 90311,
  "type": "card",
  "location_id": 279685,
  "holder": "Ana Garcia",
  "default": true,
  "created_at": "2026-11-05T18:16:18Z",
  "brand": "visa",
  "last4": "4242",
  "exp_month": 11,
  "exp_year": 29,
  "billing_address": {
    "line1": "100 Main St",
    "line2": null,
    "city": "Austin",
    "state": "TX",
    "zipcode": "78701",
    "country_iso": "US"
  }
}

Error Responses

Format: { "error": { "code", "name", "message", "details" } }

StatusErrorWhen
400missing_required_parametersInvalid field (see error.details).
404payment_method_not_foundWrong ID, or not in your scope.

Path Params
string
required
string
required
string
required
Body Params
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json