Skip to main content
PATCH
/
payment-request
/
{id}
/
approve
Approve Payment Request
curl --request PATCH \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/payment-request/{id}/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "memo": "<string>"
}'
{
  "message": "Payment request approved successfully",
  "paymentRequest": {
    "id": "0654cd19-cea3-4fad-b92e-4033c4252c79",
    "status": "approved"
  }
}
Approve Payment Request Description:
The /payment-request/{id}/approve endpoint approves a specific payment request.
Method:
PATCH
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the payment request

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathāœ…Payment Request ID

Request Body

Request Schema

FieldTypeRequiredDescription
memostringāŒOptional memo for the approval

Responses

āœ… 200 - Success

āš ļø 401 - Unauthorized

āš ļø 404 - Not Found

āŒ 500 - Internal Server Error

Tags

Payment Requests

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
memo
string

Optional memo for the approval

Response

Success

message
string
paymentRequest
object
⌘I