Skip to content

Set Default Payment Method

POST
/api/members/{memberId}/payment-methods/{id}/default
curl --request POST \
--url https://example.com/api/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/payment-methods/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/default \
--header 'Authorization: Bearer <token>'

Marks a payment method as the member’s default. Any existing default is unset.

memberId
required
string format: uuid

The member’s unique identifier.

id
required
string format: uuid

The payment method’s identifier.

Default updated.

No payment method with the given ID exists.

Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}