Decline Payment Request
Description:
The /payment-request/{id}/decline
endpoint declines a specific payment request.
Method:
PATCH
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the payment request |
curl --request PATCH \
--url https://server26-dot-royalti-project.uc.r.appspot.com/payment-request/{id}/decline \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reason": "<string>"
}'
{
"message": "Payment request declined successfully",
"paymentRequest": {
"id": "0654cd19-cea3-4fad-b92e-4033c4252c79",
"status": "declined"
}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Payment Request ID
Success
The response is of type object
.
curl --request PATCH \
--url https://server26-dot-royalti-project.uc.r.appspot.com/payment-request/{id}/decline \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reason": "<string>"
}'
{
"message": "Payment request declined successfully",
"paymentRequest": {
"id": "0654cd19-cea3-4fad-b92e-4033c4252c79",
"status": "declined"
}
}