Skip to main content
PUT
/
payment-request
/
{id}
Update Payment Request
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Payment Request ID

Body

application/json
PaymentSettingId
string

ID of the payment setting to update

currency
string

Currency code

amountUSD
number

Amount in USD

amount
number

Amount in the specified currency

memo
string

Optional memo

Response

Success

message
string
paymentRequest
object