curl --request PUT \
--url https://api.royalti.io/payment-setting/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"settings": {},
"isDefault": true,
"memo": "<string>"
}
'{
"message": "Payment setting updated successfully"
}Update Payment Setting
curl --request PUT \
--url https://api.royalti.io/payment-setting/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"settings": {},
"isDefault": true,
"memo": "<string>"
}
'{
"message": "Payment setting updated successfully"
}/payment-setting/{id} endpoint allows updating details of a specific payment setting.
Method:PUT
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the payment setting |
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the payment setting |
| type | string | The type of the payment setting |
| settings | object | The settings/configuration of the payment setting |
| isDefault | boolean | Whether this is the default payment setting |
| memo | string | Additional notes or comments |
const response = await fetch('https://api.royalti.io/payment-setting/example-id', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "sample-name",
"type": "sample-type",
"settings": {},
"isDefault": true,
"memo": "sample-memo"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Payment Setting ID