curl --request PUT \
--url https://api.royalti.io/payment-request/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"PaymentSettingId": "<string>",
"currency": "<string>",
"amountUSD": 123,
"amount": 123,
"memo": "<string>"
}
'{
"message": "Payment request updated successfully"
}Update Payment Request
curl --request PUT \
--url https://api.royalti.io/payment-request/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"PaymentSettingId": "<string>",
"currency": "<string>",
"amountUSD": 123,
"amount": 123,
"memo": "<string>"
}
'{
"message": "Payment request updated successfully"
}/payment-request/{id} endpoint updates a specific payment request.
Method:PUT
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the payment request |
| Field | Type | Required | Description |
|---|---|---|---|
| PaymentSettingId | string | No | ID of the payment setting to update |
| currency | string | No | Currency code |
| amountUSD | number | No | Amount in USD |
| amount | number | No | Amount in the specified currency |
| memo | string | No | Optional memo |
const response = await fetch('https://api.royalti.io/payment-request/example-id', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"PaymentSettingId": "sample-PaymentSettingId",
"currency": "sample-currency",
"amountUSD": 1,
"amount": 1,
"memo": "sample-memo"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Payment Request ID