Endpoint #
GET /wp-json/rtcl/v1/my/store
Description #
Retrieve logged-in user’s store details.
Authentication & Permission #
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 | Required | Description |
|---|---|---|
Content-Type | ✅ | application/json |
X-API-KEY | ✅ | REST API key |
Authorization | ✅ | Bearer <access_token> |
cURL Request Example #
curl -X GET "https://example.com/wp-json/rtcl/v1/my/store" \
-H "Content-Type: application/json" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Success Response (200) #
{
"id": 386,
"title": "Tech Store",
"logo": "http://your-site.com/wp-content/uploads/classified-listing/2025/08/profile-1-180x140.jpg",
"listings_count": 1,
"banner": "http://your-site.com/wp-content/uploads/classified-listing/2025/08/robert_blue7-1-1024x529-3-1024x313.jpg",
"owner": {
"first_name": "Tech",
"last_name": "Store",
"description": "",
"id": 1,
"isAdmin": true,
"email": "your@gmail.com",
"username": "techstore",
"phone": "",
"whatsapp_number": "",
"website": "",
"locations": [],
"zipcode": "",
"address": "",
"latitude": "",
"longitude": "",
"pp_thumb_url": "https://gravatar.com/avatar/34566a7?s=80&d=mm",
"membership": {
"is_expired": false,
"expired_at": "2026-02-25 08:58:04",
"remaining_ads": "58",
"posted_ads": "2",
"promotions": {
"featured": {
"ads": 20,
"validate": 20
},
"_top": {
"ads": 20,
"validate": 30
},
"_bump_up": {
"ads": 30,
"validate": 30
}
},
"free_ads": 0
},
"store": true
},
"slug": "https-tech-store-com",
"description": "tech store details",
"slogan": "Tech Store",
"email": "techstore@gmail.com",
"address": "London",
"phone": "+28278384",
"owner_id": 1,
"website": "https://www.your-website.com/",
"created_at": "2025-08-11 05:46:08",
"created_at_gmt": "2025-08-11 05:46:08",
"opening_hours": {
"type": "selected",
"hours": {
"1": {
"active": "1",
"open": "11:45 AM",
"close": "11:45 PM"
},
"2": {
"active": "1",
"open": "11:45 AM",
"close": "11:45 PM"
},
"3": {
"open": "11:45 AM",
"close": "11:45 PM"
},
"4": {
"active": "1",
"open": "11:45 AM",
"close": "11:45 PM"
},
"5": {
"active": "1",
"open": "11:45 AM",
"close": "12:45 PM"
},
"6": {
"active": "1",
"open": "11:45 AM",
"close": "11:45 PM"
},
"0": {
"open": "11:45 AM",
"close": "11:45 PM"
}
}
},
"social": {
"facebook": "https://www.social-link.com/",
"twitter": "https://www.social-link.com/",
"youtube": "https://www.social-link.com/",
"instagram": "https://www.social-link.com/",
"linkedin": "https://www.social-link.com/"
},
"review": {
"total": 0,
"average": ""
},
"config": {
"banner": {
"width": 1230,
"height": 313,
"crop": "yes"
},
"logo": {
"width": 180,
"height": 140,
"crop": "yes"
}
}
}
Error Responses #
Not Logged In (403) #
{
"status": "error",
"error": "FORBIDDEN",
"code": "403",
"error_message": "You are not logged in."
}
Store Not Found (400) #
{
"status": "error",
"error": "BADREQUEST",
"code": "400",
"error_message": "Store not found."
}
REST API Disabled #
{
"code": "DENIED_REST_API",
"message": "Denied api call",
"data": {
"status": 403
}
}
Invalid API Key / Token #
{
"code": "rtcl_rest_authentication_error",
"message": "Invalid API authentication credentials.",
"data": {
"status": 403
}
}
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."
}