Skip to main content
PUT
/
payment
/
{id}
Update Payment
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"
}
Update Payment Description:
The /payment/{id} endpoint updates a specific payment.
Method:
PUT
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the payment
Request Body:
FieldTypeRequiredDescription
amountnumberNoAmount of the payment
currencystringNoCurrency code
statusstringNoPayment status (e.g., paid, pending, failed)
memostringNoOptional memo

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathPayment ID

Request Body

Request Schema

FieldTypeRequiredDescription
amountnumberAmount of the payment
currencystringCurrency code
statusstringPayment status (e.g., paid, pending, failed)
memostringOptional memo

Responses

✅ 200 - Success

⚠️ 401 - Unauthorized

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

Payment

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Payment ID

Body

application/json
amount
number

Amount of the payment

currency
string

Currency code

status
string

Payment status (e.g., paid, pending, failed)

memo
string

Optional memo

Response

Success

message
string
payment
object
I