Update Payment
Description:
The /payment/{id}
endpoint updates a specific payment.
Method:
PUT
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the payment |
Request Body:
Field | Type | Required | Description |
---|---|---|---|
amount | number | No | Amount of the payment |
currency | string | No | Currency code |
status | string | No | Payment status (e.g., paid, pending, failed) |
memo | string | No | Optional memo |
curl --request PUT \
--url https://server26-dot-royalti-project.uc.r.appspot.com/payment/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"currency": "<string>",
"status": "<string>",
"memo": "<string>"
}'
{
"message": "Payment updated successfully"
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Payment ID
Success
The response is of type object
.
curl --request PUT \
--url https://server26-dot-royalti-project.uc.r.appspot.com/payment/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"currency": "<string>",
"status": "<string>",
"memo": "<string>"
}'
{
"message": "Payment updated successfully"
}