Skip to main content
GET
/
payment
/
{id}
Get Payment
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/payment/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Payment retrieved successfully",
  "payment": {
    "id": "a6afa463-1073-4e14-860e-f5bbd9da0f74",
    "title": "Payment Receipt test",
    "currency": "USD",
    "amount": 74000,
    "amountUSD": 100
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/payment/example-id', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Payment ID

Query Parameters

include
string

Specify 'count' to include the total count of items

Response

Success

message
string
payment
object