Update the default payment method for a user by ID
data
boolean
Updating the payment to isDefault
path
string
API path
version
string
API version used for the request
Content-Type
application/json
Authorization
Bearer <YOUR_ACCESS_TOKEN>
userId
string
Existing user identifier, returned upon session creation or update
paymentId
string
Default payment identifier of the user
statusCode
number
HTTP status code of the response
message
string
A brief message describing the result of the API call
metadata
Contains metadata about the API call
auth
Authentication object, only when refresh in true
languages
Array<string>
List of supported languages for the response, e.g. ["en"]
timestamp
string
Unix timestamp (in milliseconds) when the response was generated
timezone
string
Timezone used for the response, always "UTC"
requestId
string
Unique identifier for the API request. Used for debugging and support
curl --location 'https://staging.api.liquidcommerce.cloud/users/payments/updateDefault' \
--header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"customerId": "usrid_123abc456def",
"paymentMethodId": "paymentid_123abc456def",
"isDefault": false
}'{
"statusCode": 200,
"message": "Updating default payment method succeeded",
"metadata": {
"languages": [
"en"
],
"timestamp": 1731600946784,
"timezone": "UTC",
"requestId": "reqid_123abc45def",
"path": "/api/users/payments/updateDefault/usr_123abc456def/paymentid_123abc456def",
"version": "1.7.0"
},
"data": true
}