Endpoint #
GET /wp-json/rtcl/v1/payments/{payment_id}
Description #
Fetch detailed information of a single payment/order for the currently authenticated user.
Authentication #
This endpoint requires: #
- REST API enabled in RTCL settings
- Valid authentication headers
- API Key
- Bearer JWT Token
- User must be:
- Logged in
Required Headers #
| Header | Value |
|---|---|
| Authorization | Bearer YOUR_JWT_TOKEN |
| X-API-KEY | YOUR_API_KEY |
| Content-Type | application/json |
URL Parameters #
| Parameter | Type | Required | Description |
|---|---|---|---|
payment_id | integer | Yes | Unique payment/order ID |
Example cURL Request #
curl -X GET "https://example.com/wp-json/rtcl/v1/payments/101" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Success Response #
Response Body #
{
"id": 403,
"price": "20.00",
"method": "Offline",
"status": "pending",
"transaction_id": "transaction_id",
"order_key": "rtcl_oder_key",
"paid_date": "",
"created_date": "2026-01-29 06:57:22",
"gateway": {
"id": "offline",
"title": "Direct Bank Transfer",
"icon": null,
"instructions": "Make your payment directly in our bank account.",
"description": "Make your payment directly in our bank account. Please use your Order ID as payment reference. Your order won't get approved until the funds have cleared in our account."
},
"plan": {
"id": 146,
"price": "20",
"description": "",
"title": "Regular Price",
"visible": 20,
"type": "regular",
"promotion": {
"regular": {
"featured": true,
"_top": true,
"_bump_up": true
}
}
}
}
Error Responses #
User Not Logged In #
{
"status": "error",
"error": "FORBIDDEN",
"code": "403",
"error_message": "You are not logged in."
}
Order Not Found #
{
"status": "error",
"error": "BAD_REQUEST",
"code": "400",
"message": "Order not found."
}
API Access Denied #
{
"code": "DENIED_REST_API",
"message": "Denied api call",
"data": {
"status": 403
}
}
Missing / Invalid Authentication #
{
"status": "error",
"error": "INVALID_API_KEY",
"code": "401",
"error_message": "Invalid API key or authorization token."
}
Missing Authorization Header #
{
"status": "error",
"error": "MISSING_AUTHORIZATION_HEADER",
"code": "401",
"error_message": "Authorization header not received. Either authorization header was not sent or it was removed by your server due to security reasons."
}
Invalid Authorization Token Type #
{
"status": "error",
"error": "INVALID_AUTHORIZATION_HEADER_TOKEN_TYPE",
"code": "401",
"error_message": "Authorization header must be type of Bearer Token."
}
Invalid JWT Format (Segment Fault) #
{
"status": "error",
"error": "SEGMENT_FAULT",
"code": "401",
"error_message": "Incorrect JWT Format."
}
Invalid JWT Signature #
{
"status": "error",
"error": "INVALID_TOKEN",
"code": "401",
"error_message": "JWT signature verification failed."
}