Skip to main content
PATCH
/
public
/
{user_id}
/
payment-methods
/
{paymentMethod_uuid}
Updates Payment Method
curl --request PATCH \
  --url https://apigw.ipxo.com/ecommerce/public/{user_id}/payment-methods/{paymentMethod_uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "make_default": true
}
'
{
  "data": {
    "uuid": "013b937c-8a69-39ba-b3a2-6861da3a6062",
    "type": "card",
    "is_default": true,
    "details": {
      "card_brand": "mastercard",
      "card_last_four": "4444",
      "card_expiry_month": 4,
      "card_expiry_year": 2044
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user.

paymentMethod_uuid
string
required

Body

application/json
make_default
boolean | null
Example:

true

Response

200 - application/json
data
object