Skip to main content
PATCH
/
set-default
/
{id}
Set Default
curl --request PATCH \
  --url https://app.closerx.ai/api/set-default/{id} \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "user_id": "user_12345"
}
'
{
  "status": "success",
  "default_card_id": "card_abc123"
}

Authorizations

api_key
string
header
required

Path Parameters

id
string
required

The ID of the card or payment method to set as default.

Example:

"card_abc123"

Body

application/json
user_id
string
required

The ID of the user for whom the card will be set as default.

Example:

"user_12345"

Response

Card successfully set as default

status
string

Indicates whether the default setting was successful.

Example:

"success"

default_card_id
string

The ID of the card now set as the default.

Example:

"card_abc123"