Skip to main content
DELETE
/
payment
/
{id}
Delete Payment
curl --request DELETE \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/payment/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Payment deleted successfully."
}
Delete Payment Description:
The /payment/{id} endpoint deletes a specific payment.
Method:
DELETE
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the payment

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathPayment ID

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

Response

Success

message
string
I