curl --request GET \
--url https://api.royalti.io/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
}
}Get Payment
curl --request GET \
--url https://api.royalti.io/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
}
}/payment/{id} endpoint retrieves details of a specific payment by its ID.
Method:GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the payment |
| Parameter | Type | Description |
|---|---|---|
| include (Optional) | string | Comma-separated list of attributes to include in response |
const response = await fetch('https://api.royalti.io/payment/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);