Endpoint #
PUT /wp-json/rtcl/v1/my/manage/orders/change-status
Description #
Update the status of an order by an authorized administrator or RTCL manager.
Authentication & Permission #
This endpoint requires: #
- REST API enabled in RTCL settings
- Valid authentication headers
- API Key
- Bearer JWT Token
- User must be:
- Logged in
- Role: administrator or rtcl_manager
Required Headers #
| Header | Value |
|---|---|
| Authorization | Bearer YOUR_JWT_TOKEN |
| X-API-KEY | YOUR_API_KEY |
| Content-Type | application/json |
Request Parameters #
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | ✅ Yes | Order ID |
status | string | ✅ Yes | New order status |
Allowed status values #
rtcl-pending
rtcl-processing
rtcl-on-hold
rtcl-completed
rtcl-cancelled
rtcl-refunded
rtcl-failed
rtcl-created
cURL Example #
curl -X POST "https://example.com/wp-json/rtcl/v1/my/manage/orders/change-status" \
-H "Content-Type: application/json" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"id": 400,
"status": "rtcl-completed"
}'
Success Response #
{
"id": 400,
"price": "20.00",
"method": "Offline",
"status": "on-hold",
"transaction_id": "transcation id",
"order_key": "rtcl_oder_6afjad",
"paid_date": "",
"created_date": "2026-01-26 08:57:38",
"gateway": {
"id": "offline",
"title": "Direct Bank Transfer",
"icon": null,
"instructions": "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.\r\nAccount details :\r\n\t\t\r\nAccount Name : YOUR ACCOUNT NAME\r\nAccount Number : YOUR ACCOUNT NUMBER\r\nBank Name : YOUR BANK NAME\r\n\t\t\r\nIf we don't receive your payment within 48 hrs, we will cancel the order.",
"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": 151,
"price": "20",
"description": "",
"title": "Advance",
"visible": 30,
"type": "membership",
"promotion": {
"regular": [],
"membership": {
"featured": {
"ads": 20,
"validate": 20
},
"_top": {
"ads": 20,
"validate": 30
},
"_bump_up": {
"ads": 30,
"validate": 30
}
}
},
"regular_ads": 60
}
}
Error Responses #
Not Logged In #
{
"code": "FORBIDDEN",
"message": "You are not logged in.",
"data": {
"status": 403
}
}
Permission Denied #
{
"code": "FORBIDDEN",
"message": "You are not permitted to update order status.",
"data": {
"status": 403
}
}
Invalid Order Status #
{
"code": "BADREQUEST",
"message": "Invalid order status.",
"data": {
"status": 403
}
}
Order Not Found #
{
"code": "BADREQUEST",
"message": "Order not found.",
"data": {
"status": 400
}
}
Status Not Changed #
{
"code": "BADREQUEST",
"message": "Status no change",
"data": {
"status": 400
}
}
Update Failed #
{
"code": "BADREQUEST",
"message": "Error while updating status",
"data": {
"status": 400
}
}
REST API Disabled #
{
"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."
}