{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"37a023f9-bc63-4b01-b2da-5bacee6523da","name":"GHStoreHub API Documentation","description":"# Overview\n\nWelcome to the **GHStoreHub API**! This API provides programmatic access to the GHStoreHub e-commerce platform, enabling developers to integrate product catalog management, user profile operations, and transaction processing into their applications. Whether you're building a mobile app, web storefront, or third-party integration, this API offers the tools you need to interact with the GHStoreHub ecosystem.\n\n## Base URL\n\nAll API requests should be made to:\n\n```\nhttps://ghstorehub.com/api\n\n ```\n\n## Authentication\n\n### API Key Authentication\n\nThe GHStoreHub API uses **API Key authentication** to secure all endpoints. You must include your API key in the request header for every API call.\n\n**Header Format:**\n\n```\nAuthorization: ApiKey YOUR_API_KEY_HERE\n\n ```\n\n### Getting Your API Key\n\n1. Log in to your GHStoreHub account at [https://ghstorehub.com](https://ghstorehub.com)\n    \n2. Navigate to **Profile** > **API Key**\n    \n\n<img src=\"https://content.pstmn.io/7c7bc9f3-efef-41f4-88e1-04d0e6eaffc7/aW1hZ2UucG5n\" alt=\"Access%20your%20api%20key%20via%20profile\" width=\"1305\" height=\"632\">\n\n3\\. Generate a new API key or copy your existing key\n\n4\\. Store your API key securely - treat it like a password\n\n**Important:** Never share your API key publicly or commit it to version control. Use environment variables to store sensitive credentials.\n\n## Available Endpoints\n\nThis collection includes the following endpoints:\n\n### Products\n\n- **GET** `/products/all-products` - Retrieve all products in the catalog with optional filtering, pagination, and search capabilities\n    \n\n### User Management\n\n- **GET** `/user/profile` - Fetch the authenticated user's profile information, including wallet balance, transaction history, and account status\n    \n\n## Common Response Codes\n\n| Status Code | Meaning | Description |\n| --- | --- | --- |\n| **200** | OK | Request successful |\n| **201** | Created | Resource successfully created |\n| **400** | Bad Request | Invalid request parameters or malformed JSON |\n| **401** | Unauthorized | Missing or invalid API key |\n| **403** | Forbidden | Valid API key but insufficient permissions |\n| **404** | Not Found | Requested resource doesn't exist |\n| **429** | Too Many Requests | Rate limit exceeded |\n| **500** | Internal Server Error | Server-side error occurred |\n| **503** | Service Unavailable | Service temporarily unavailable |\n\n## Getting Started\n\n### Step 1: Set Up Environment Variables\n\nCreate environment variables in Postman to manage your API credentials:\n\n1. Click the **Environments** tab in Postman\n    \n2. Create a new environment (e.g., \"GHStoreHub Production\")\n    \n3. Add the following variables:\n    \n    - `base_url` = `https://ghstorehub.com/api`\n        \n    - `api_key` = `YOUR_API_KEY_HERE`\n        \n\n### Step 2: Configure Collection Authorization\n\n1. Select this collection\n    \n2. Go to the **Authorization** tab\n    \n3. Set the authorization to inherit from parent or configure it at the request level\n    \n4. Use `{{api_key}}` variable in the Authorization header\n    \n\n### Step 3: Make Your First Request\n\nStart with the **Fetch User Profile** endpoint to verify your authentication:\n\n1. Open the \"Fetch User Profile\" request\n    \n2. Ensure your environment is selected\n    \n3. Click **Send**\n    \n4. You should receive a 200 OK response with your profile data\n    \n\n### Step 4: Explore Product Endpoints\n\nOnce authenticated, explore the product catalog:\n\n1. Open the \"Fetch All Products\" request\n    \n2. Try adding query parameters for filtering (e.g., `?category=electronics`)\n    \n3. Experiment with pagination using `page` and `limit` parameters\n    \n\n## Response Format\n\nAll API responses follow a consistent JSON structure:\n\n**Success Response:**\n\n``` json\n{\n  \"success\": true,\n  \"data\": { ... },\n  \"message\": \"Optional success message\"\n}\n\n ```\n\n**Error Response:**\n\n``` json\n{\n  \"success\": false,\n  \"error\": \"Error description\",\n  \"code\": \"ERROR_CODE\"\n}\n\n ```\n\n## Data Types & Formats\n\n- **Dates:** ISO 8601 format (e.g., `2024-01-15T10:30:00Z`)\n    \n- **Currency:** Decimal strings to preserve precision (e.g., `\"2499.99\"`)\n    \n- **Phone Numbers:** String format with country code\n    \n- **IDs:** MongoDB ObjectId format (24-character hexadecimal string)\n    \n\n## Support & Resources\n\n- **Support:** Contact [support@ghstorehub.com](https://mailto:support@ghstorehub.com) for technical assistance\n    \n\n## Best Practices\n\n1. **Error Handling:** Always implement proper error handling for all response codes\n    \n2. **Retry Logic:** Use exponential backoff for failed requests\n    \n3. **Caching:** Cache product data to reduce API calls and improve performance\n    \n4. **Security:** Never expose your API key in client-side code\n    \n5. **Validation:** Validate data before sending requests to avoid 400 errors\n    \n\n---\n\n**Last Updated:** 18 April 2026  \n**API Version:** 1.0","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"32176725","team":5949305,"collectionId":"37a023f9-bc63-4b01-b2da-5bacee6523da","publishedId":"2sB3dPTWSA","public":true,"publicUrl":"https://documenter-api.postman.tech/view/32176725/2sB3dPTWSA","privateUrl":"https://go.postman.co/documentation/32176725-37a023f9-bc63-4b01-b2da-5bacee6523da","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"The Official GHStoreHub API Documentation for Developers To Integrate Our Services Into Their Platforms."},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.11.6","publishDate":"2026-04-18T13:42:39.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":"The Official GHStoreHub API Documentation for Developers To Integrate Our Services Into Their Platforms."},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/8e95ff204dd7ca8ebb7358b2c894cfe283fb1e689bced17800f569439ed7ecb6","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sB3dPTWSA"}