{"info":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>What does your API do?</p>\n<h1 id=\"overview\">Overview</h1>\n<p>Things that the developers should know about</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>What is the preferred way of using the API?</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>What errors and status codes can a user expect?</p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>Is there a limit to the number of requests an user can send?</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"11352997","collectionId":"bdded3d9-c680-452a-ae54-646637ebe585","publishedId":"UVC3jnba","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-07T03:47:44.000Z"},"item":[{"name":"Categories","item":[{"name":"Add product category","id":"f3bdd0b7-5f4d-47c7-a5e2-e955b6e1f5c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Clothing\",\r\n    \"description\": \"Good for the fam\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/categories","urlObject":{"path":["api","v1","categories"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"a52f8f8b-ffbd-4a84-9f6d-7af3bc42e85e","name":"Add product category","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Clothing\",\r\n    \"description\": \"Good for the fam\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"199"},{"key":"ETag","value":"W/\"c7-WDLjOVWgjOcTKijayZoDxmDgZ8Q\""},{"key":"Date","value":"Tue, 09 Nov 2021 09:52:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Category created successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Clothing\",\n        \"description\": \"Good for the fam\",\n        \"updatedAt\": \"2021-11-09T09:52:56.934Z\",\n        \"createdAt\": \"2021-11-09T09:52:56.934Z\"\n    }\n}"},{"id":"fe18cc4f-922e-489d-9671-1f3779b21886","name":"Name validation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-Ke4ozxhbfx/Xr5OiDhXmQ3zju88\""},{"key":"Date","value":"Sun, 07 Nov 2021 11:53:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"\\\"name\\\" is not allowed to be empty\"\n}"},{"id":"b6a990de-93f6-4532-b6d3-f9cf6c2822bf","name":"Description validation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Beverages!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-xPhGFd8PtgfRAm6yalF3o+Kffxk\""},{"key":"Date","value":"Sun, 07 Nov 2021 11:54:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"\\\"description\\\" is required\"\n}"},{"id":"bed72e22-cebb-4647-aac7-7f06510fef7d","name":"Category with the name exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Beverages!\",\r\n    \"description\": \"Good for the fam\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-bgf6Hp5qwoQgS/qHc/u5gxWVeOI\""},{"key":"Date","value":"Sun, 07 Nov 2021 12:00:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"Category with the name exists\"\n}"},{"id":"de2642d1-9f64-4752-8636-7124e4551c37","name":"Add product category success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Clothing\",\r\n    \"description\": \"Good for the fam\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"199"},{"key":"ETag","value":"W/\"c7-/u+O69PcSo6uC8jQLQsaYdD2d7w\""},{"key":"Date","value":"Sun, 07 Nov 2021 12:01:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Category created successfully\",\n    \"data\": {\n        \"id\": 4,\n        \"name\": \"Clothing\",\n        \"description\": \"Good for the fam\",\n        \"updatedAt\": \"2021-11-07T12:01:03.324Z\",\n        \"createdAt\": \"2021-11-07T12:01:03.324Z\"\n    }\n}"}],"_postman_id":"f3bdd0b7-5f4d-47c7-a5e2-e955b6e1f5c1"},{"name":"Get all product categories","id":"f475c91f-250c-4c97-89c0-74bd79211fc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","categories"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"7716a489-beb3-4e6b-8ee7-c523bd347aae","name":"Get all product categories","originalRequest":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"502"},{"key":"ETag","value":"W/\"1f6-mctnjijvMGwLo2WPrTET7UznuCg\""},{"key":"Date","value":"Sun, 07 Nov 2021 11:57:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Category retrieved successfully\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Beverage\",\n            \"description\": \"Some stufff\",\n            \"isActive\": true,\n            \"createdAt\": \"2021-11-06T09:38:59.000Z\",\n            \"updatedAt\": \"2021-11-06T09:38:59.000Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"\",\n            \"description\": null,\n            \"isActive\": true,\n            \"createdAt\": \"2021-11-07T07:50:25.000Z\",\n            \"updatedAt\": \"2021-11-07T07:50:25.000Z\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Beverages!\",\n            \"description\": \"Good for the fam\",\n            \"isActive\": true,\n            \"createdAt\": \"2021-11-07T11:55:38.000Z\",\n            \"updatedAt\": \"2021-11-07T11:55:38.000Z\"\n        }\n    ]\n}"}],"_postman_id":"f475c91f-250c-4c97-89c0-74bd79211fc5"},{"name":"Delete category","id":"0b8f7b43-1d68-4f89-9fb9-99814e875992","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/9","urlObject":{"path":["api","v1","categories","9"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"7b057e61-982f-437d-9b55-a3cfc7acfa2f","name":"Delete category success","originalRequest":{"method":"DELETE","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/1"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Date","value":"Sun, 07 Nov 2021 12:02:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null},{"id":"ee7988a7-72b4-48be-977c-026c55a6c708","name":"Delete category - category not found","originalRequest":{"method":"DELETE","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/9"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"77"},{"key":"ETag","value":"W/\"4d-2IOZBbYVlfb6Zzx2aMVNXKWGgv4\""},{"key":"Date","value":"Sun, 07 Nov 2021 12:03:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Category with the id of 9 does not exist\",\n    \"data\": null\n}"}],"_postman_id":"0b8f7b43-1d68-4f89-9fb9-99814e875992"},{"name":"Get a category","id":"68cab868-3d5c-47e1-858e-bf9806238253","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","categories","2"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"66f7abe1-a6ea-42b9-ac0d-830c76e66e5b","name":"Get a category","originalRequest":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"195"},{"key":"ETag","value":"W/\"c3-hgQpy13cKxBXTmcKnnOimUN+sMI\""},{"key":"Date","value":"Sun, 07 Nov 2021 12:04:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Category retrieved successfully\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"\",\n        \"description\": null,\n        \"isActive\": true,\n        \"createdAt\": \"2021-11-07T07:50:25.000Z\",\n        \"updatedAt\": \"2021-11-07T07:50:25.000Z\"\n    }\n}"}],"_postman_id":"68cab868-3d5c-47e1-858e-bf9806238253"},{"name":"Update category","id":"482ac142-b820-423e-8c46-d15c4c15b9b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","categories","3"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"482ac142-b820-423e-8c46-d15c4c15b9b6"}],"id":"55a4b46b-2e83-4274-a35d-0c17cb68dbdf","_postman_id":"55a4b46b-2e83-4274-a35d-0c17cb68dbdf","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}}},{"name":"Product","item":[{"name":"Add product","id":"551275a4-17fa-4e26-a860-e189cb6bc48c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"5 aLIVE\",\n    \"description\": \"A nice fruit juice from Chivita house\",\n    \"sellingPrice\":80.00,\n    \"costPrice\":90.00,\n    \"categoryId\":2,\n    \"availableQuantity\":8\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/products","urlObject":{"path":["api","v1","products"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"edc4da83-b582-406f-8fe3-fa6784747df5","name":"Add product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"5 Alive\",\r\n    \"sellingPrice\":80.00,\r\n    \"costPrice\":90.00,\r\n    \"categoryId\":4,\r\n    \"availableQuantity\":8\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"254"},{"key":"ETag","value":"W/\"fe-esJgOyNzDf7K+gVU9rEUTzFdKvE\""},{"key":"Date","value":"Wed, 03 Nov 2021 18:18:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product created successfully\",\n    \"data\": {\n        \"id\": 7,\n        \"name\": \"5 Alive\",\n        \"sellingPrice\": 80,\n        \"userId\": 9,\n        \"availableQuantity\": 8,\n        \"costPrice\": 90,\n        \"categoryId\": 4,\n        \"sku\": 89,\n        \"updatedAt\": \"2021-11-03T18:18:33.266Z\",\n        \"createdAt\": \"2021-11-03T18:18:33.266Z\"\n    }\n}"},{"id":"b3ddf90b-2636-40df-80c0-e5ad38bffa83","name":"Unauthenticated","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"5 Alive\",\n    \"description\": \"A nice fruit juice from Chivita house\",\n    \"sellingPrice\":80.00,\n    \"costPrice\":90.00,\n    \"categoryId\":5,\n    \"availableQuantity\":8\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-uSwn4fsBDJRGS22iHRcNEbKdp2s\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:25:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"invalid token\"\n}"},{"id":"f449f856-c9d7-4bd0-a563-e1967a1443eb","name":"Category not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"5 Alive\",\n    \"description\": \"A nice fruit juice from Chivita house\",\n    \"sellingPrice\":80.00,\n    \"costPrice\":90.00,\n    \"categoryId\":5,\n    \"availableQuantity\":8\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-kOKPwxZSewLUDSF+kEOsTc2KrGk\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:26:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"Category not found\"\n}"},{"id":"5f9c3380-0c56-47b1-b948-4c573d004284","name":"Existing product name","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"5 Alive\",\n    \"description\": \"A nice fruit juice from Chivita house\",\n    \"sellingPrice\":80.00,\n    \"costPrice\":90.00,\n    \"categoryId\":1,\n    \"availableQuantity\":8\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-rUh0FXQmPKp5txNlJRTIOXn6kZA\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:27:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"Product with the name exists\"\n}"},{"id":"b3bb3b83-7827-440d-a81b-ce4fe6176dfc","name":"Add product - name is required","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \n    \"description\": \"A nice fruit juice from Chivita house\",\n    \"sellingPrice\":80.00,\n    \"costPrice\":90.00,\n    \"categoryId\":1,\n    \"availableQuantity\":8\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-m8j/Xuplnk8f+3uDRXrXAsLNWDU\""},{"key":"Date","value":"Sun, 07 Nov 2021 12:21:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"\\\"name\\\" is required\"\n}"}],"_postman_id":"551275a4-17fa-4e26-a860-e189cb6bc48c"},{"name":"Get all products","id":"c67577b8-e828-437a-a583-6816e0aa1447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","products"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"08ff06e7-a172-4523-83ce-d323ce30159a","name":"Get all products","originalRequest":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"295"},{"key":"ETag","value":"W/\"127-5d6Zd8buTj3zDhsSA1FI6Qkfa+E\""},{"key":"Date","value":"Wed, 03 Nov 2021 18:19:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product retrieved successfully\",\n    \"data\": [\n        {\n            \"id\": 7,\n            \"name\": \"5 Alive\",\n            \"userId\": 9,\n            \"categoryId\": 4,\n            \"sku\": 89,\n            \"costPrice\": 90,\n            \"sellingPrice\": 80,\n            \"expirationDate\": null,\n            \"availableQuantity\": 8,\n            \"createdAt\": \"2021-11-03T18:18:33.000Z\",\n            \"updatedAt\": \"2021-11-03T18:18:33.000Z\",\n            \"CategoryId\": 4\n        }\n    ]\n}"}],"_postman_id":"c67577b8-e828-437a-a583-6816e0aa1447"},{"name":"Delete product","id":"9b39722a-5635-4268-a99b-e2b967938932","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","categories","1"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"ae372cc2-bd27-4c7a-9050-e95cc942e9e0","name":"Delete product","originalRequest":{"method":"DELETE","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/products/7"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Date","value":"Wed, 03 Nov 2021 19:22:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9b39722a-5635-4268-a99b-e2b967938932"},{"name":"Get a product","id":"19eaa93c-f984-4565-9c39-b4348ce9dcee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"21091154-c401-42f1-8abe-2ad6dbe0c2c5","name":"Get a product","originalRequest":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/products/7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"ETag","value":"W/\"125-vRH6jo9uTuU2m44SFY1gjoqJu18\""},{"key":"Date","value":"Wed, 03 Nov 2021 18:23:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product retrieved successfully\",\n    \"data\": {\n        \"id\": 7,\n        \"name\": \"5 Alive\",\n        \"userId\": 9,\n        \"categoryId\": 4,\n        \"sku\": 89,\n        \"costPrice\": 90,\n        \"sellingPrice\": 80,\n        \"expirationDate\": null,\n        \"availableQuantity\": 8,\n        \"createdAt\": \"2021-11-03T18:18:33.000Z\",\n        \"updatedAt\": \"2021-11-03T18:18:33.000Z\",\n        \"CategoryId\": 4\n    }\n}"}],"_postman_id":"19eaa93c-f984-4565-9c39-b4348ce9dcee"},{"name":"Update product","id":"edcdc9b6-a0cb-4b78-aa16-cfb95108790b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/categories/3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","categories","3"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"f5eb2e57-b26b-4aab-9ccb-4c58f09a0674","name":"Update product","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"5 Alive\",\r\n    \"sellingPrice\":80.00,\r\n    \"costPrice\":90.00,\r\n    \"categoryId\":4,\r\n    \"availableQuantity\":9\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/products/7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"291"},{"key":"ETag","value":"W/\"123-/1VmfCheoA+uFp5ruZj4vm7FkZ0\""},{"key":"Date","value":"Wed, 03 Nov 2021 19:14:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product updated successfully\",\n    \"data\": {\n        \"id\": 7,\n        \"name\": \"5 Alive\",\n        \"userId\": 9,\n        \"categoryId\": 4,\n        \"sku\": 89,\n        \"costPrice\": 90,\n        \"sellingPrice\": 80,\n        \"expirationDate\": null,\n        \"availableQuantity\": 9,\n        \"createdAt\": \"2021-11-03T18:18:33.000Z\",\n        \"updatedAt\": \"2021-11-03T19:11:40.000Z\",\n        \"CategoryId\": 4\n    }\n}"}],"_postman_id":"edcdc9b6-a0cb-4b78-aa16-cfb95108790b"},{"name":"Get products by category","id":"dfdd8fbc-4091-47a0-9c9d-fc45109a560e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"8ff47854-5417-4f8d-be0c-7803dc0af739","name":"Get products by category","originalRequest":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/category/4/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"295"},{"key":"ETag","value":"W/\"127-5d6Zd8buTj3zDhsSA1FI6Qkfa+E\""},{"key":"Date","value":"Wed, 03 Nov 2021 18:22:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product retrieved successfully\",\n    \"data\": [\n        {\n            \"id\": 7,\n            \"name\": \"5 Alive\",\n            \"userId\": 9,\n            \"categoryId\": 4,\n            \"sku\": 89,\n            \"costPrice\": 90,\n            \"sellingPrice\": 80,\n            \"expirationDate\": null,\n            \"availableQuantity\": 8,\n            \"createdAt\": \"2021-11-03T18:18:33.000Z\",\n            \"updatedAt\": \"2021-11-03T18:18:33.000Z\",\n            \"CategoryId\": 4\n        }\n    ]\n}"}],"_postman_id":"dfdd8fbc-4091-47a0-9c9d-fc45109a560e"}],"id":"c0453a7c-fce2-4f65-98b1-977b5c331eb2","_postman_id":"c0453a7c-fce2-4f65-98b1-977b5c331eb2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}}},{"name":"Cart","item":[{"name":"Add to cart","id":"72dfb671-ed48-4023-a1ee-932832cd94f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":2,\n    \"quantity\":5\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","cart"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"3add27ff-eb00-4618-ad2c-2ef397dfc010","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":2,\n    \"quantity\":5\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"208"},{"key":"ETag","value":"W/\"d0-LZKQjSkVgMKKU6HtMKyDIa4aVHk\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:12:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product added to cart successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"productId\": 2,\n        \"quantity\": 5,\n        \"price\": 80,\n        \"totalPrice\": 400,\n        \"updatedAt\": \"2021-11-07T02:12:51.601Z\",\n        \"createdAt\": \"2021-11-07T02:12:51.601Z\"\n    }\n}"},{"id":"4de89a47-ef70-415a-97b3-e7fe479e28bc","name":"Product out of stock","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":2,\n    \"quantity\":5\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-tbV68ANOGsYt2oTzAU5v9nFEAs8\""},{"key":"Date","value":"Sun, 07 Nov 2021 00:55:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product is Out of Stock!\",\n    \"data\": null\n}"},{"id":"d25b85e0-1256-46c4-ba52-531921457661","name":"Add to cart - product id is required","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\n\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-uYSQgCAfPMycFaewAxs4OWd8Vvo\""},{"key":"Date","value":"Sun, 07 Nov 2021 12:39:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"\\\"productId\\\" is required\"\n}"}],"_postman_id":"72dfb671-ed48-4023-a1ee-932832cd94f4"},{"name":"Remove from cart","id":"94ad2c1e-fc2c-4fc2-a3c2-2682dd15d338","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":2\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","cart","1"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"7476d8b1-843f-4157-843d-525871ae7c04","name":"Cart not found","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":2\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-Dcvh/EZd3Ec+uRkQE47DSNn1SgM\""},{"key":"Date","value":"Sat, 06 Nov 2021 19:26:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Cart with the id of 2 does not exist\",\n    \"data\": null\n}"},{"id":"c263474c-691d-4969-8cd2-2217b393c5c1","name":"Remove from cart success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":2\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"ETag","value":"W/\"41-cXXjHzxf+gQyS9Et5C4zME8FEIU\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:20:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product removed successfully\",\n    \"data\": null\n}"}],"_postman_id":"94ad2c1e-fc2c-4fc2-a3c2-2682dd15d338"},{"name":"Retrieve cart","id":"29f0a096-7e56-48bf-9e82-60645d22d11b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/cart/5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","cart","5"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"789ba097-2a7d-4f65-8e4b-18e19a8234e3","name":"Cart not found","originalRequest":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/cart/3"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-GWH0aRz8wgyP6BOwkrzPu0f5jFM\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:29:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Cart with the id of 3 does not exist\",\n    \"data\": null\n}"},{"id":"e41f46f6-1d17-44f8-b023-8b522645c2ae","name":"Retrieve cart - success","originalRequest":{"method":"GET","header":[],"url":"{{LOCAL_NODE_URL}}/api/v1/cart/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"965"},{"key":"ETag","value":"W/\"3c5-IJowNQ2a0tlzPi6z0y1hrMlAI/c\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:30:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Cart retrieved successfully\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"quantity\": 5,\n            \"productId\": 2,\n            \"price\": 80,\n            \"totalPrice\": 400,\n            \"createdAt\": \"2021-11-07T02:23:54.000Z\",\n            \"updatedAt\": \"2021-11-07T02:23:54.000Z\",\n            \"ProductId\": 2,\n            \"Product\": {\n                \"id\": 2,\n                \"name\": \"5 Alive\",\n                \"description\": \"A nice fruit juice from Chivita house\",\n                \"userId\": 1,\n                \"categoryId\": 1,\n                \"sku\": 85,\n                \"costPrice\": 90,\n                \"sellingPrice\": 80,\n                \"expirationDate\": null,\n                \"availableQuantity\": 8,\n                \"createdAt\": \"2021-11-06T09:48:14.000Z\",\n                \"updatedAt\": \"2021-11-06T09:48:14.000Z\",\n                \"CategoryId\": 1\n            }\n        },\n        {\n            \"id\": 3,\n            \"quantity\": 5,\n            \"productId\": 3,\n            \"price\": 80,\n            \"totalPrice\": 400,\n            \"createdAt\": \"2021-11-07T02:23:54.000Z\",\n            \"updatedAt\": \"2021-11-07T02:23:54.000Z\",\n            \"ProductId\": 3,\n            \"Product\": {\n                \"id\": 3,\n                \"name\": \"5 Alive!!\",\n                \"description\": \"A nice fruit juice from Chivita house\",\n                \"userId\": 1,\n                \"categoryId\": 1,\n                \"sku\": 87,\n                \"costPrice\": 90,\n                \"sellingPrice\": 80,\n                \"expirationDate\": null,\n                \"availableQuantity\": 8,\n                \"createdAt\": \"2021-11-07T02:27:51.000Z\",\n                \"updatedAt\": \"2021-11-07T02:27:51.000Z\",\n                \"CategoryId\": 1\n            }\n        }\n    ]\n}"}],"_postman_id":"29f0a096-7e56-48bf-9e82-60645d22d11b"},{"name":"Modify cart","id":"843a5640-997b-49e6-8dd3-db803daa35bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","v1","cart","1"],"host":["{{LOCAL_NODE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"543861d0-67f6-4439-830b-b5730ec640bd","name":"Cart not found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":2,\n    \"quantity\":7\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/90"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"74"},{"key":"ETag","value":"W/\"4a-ir1jEy4B+9htE10eb/Qh3/O/8xY\""},{"key":"Date","value":"Sun, 07 Nov 2021 02:43:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Cart with the id of 90 does not exist\",\n    \"data\": null\n}"},{"id":"2fa5f11f-39da-4569-8348-c0a08b3176cd","name":"Modify cart success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":4,\n    \"quantity\": 6\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"214"},{"key":"ETag","value":"W/\"d6-0nb0VDGKkBOMgfbgQL4RM9YSw14\""},{"key":"Date","value":"Sun, 07 Nov 2021 13:35:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Cart modified successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"quantity\": 6,\n        \"productId\": 4,\n        \"price\": 80,\n        \"totalPrice\": 480,\n        \"createdAt\": \"2021-11-07T13:34:54.000Z\",\n        \"updatedAt\": \"2021-11-07T13:35:42.756Z\",\n        \"ProductId\": 4\n    }\n}"},{"id":"27f26a72-8a23-4b7f-baf3-15b035637f33","name":"Modify cart product does not exist","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\":1,\n    \"quantity\": 6\n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-N8AebjwxGUhQ61KF+uSeffhw3EE\""},{"key":"Date","value":"Sun, 07 Nov 2021 13:36:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Product with the id of 1 does not exist\",\n    \"data\": null\n}"},{"id":"89dd8dae-a6ac-4f5a-b79b-88e8235a4d21","name":"Modify cart - product is required","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \n}","options":{"raw":{"language":"json"}}},"url":"{{LOCAL_NODE_URL}}/api/v1/cart/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-uYSQgCAfPMycFaewAxs4OWd8Vvo\""},{"key":"Date","value":"Sun, 07 Nov 2021 14:01:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_msg\": \"\\\"productId\\\" is required\"\n}"}],"_postman_id":"843a5640-997b-49e6-8dd3-db803daa35bf"}],"id":"fee670d0-0e5e-4724-8168-9d3fe2c3a6ed","_postman_id":"fee670d0-0e5e-4724-8168-9d3fe2c3a6ed","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}}},{"name":"Mutual funds","item":[{"name":"Subscribe to a mutual fund","id":"4a2e565b-4dff-4596-9a8a-28d57fc571cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PARTNER_KEY","value":"<your-partner-key>","type":"text"},{"key":"Authorization","value":"<Bearer Token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"fundCode\": \"FUND123\",\n    \"fullName\": \"John Doe\",\n    \"phoneNumber\": \"+1234567890\",\n    \"subscriptionAmount\": \"1000\",\n    \"CustID\": \"CUST987\",\n    \"channel\": \"Web\",\n    \"emailAddress\": \"johndoe@example.com\",\n    \"initiatedPrice\": \"20.00\",\n    \"transactionRef\": \"REF123456\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/yoocha/mutualfunds/subscription","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","yoocha","mutualfunds","subscription"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a2e565b-4dff-4596-9a8a-28d57fc571cb"},{"name":"Complete mutual funds redemption","id":"d47af62e-1216-4b5f-b293-b15560015bb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PARTNER_KEY","value":"<your-partner-key>","type":"text"},{"key":"Authorization","value":"<Bearer Token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phoneNumber\": \"+1234567890\",\n    \"fundCode\": \"FUND123\",\n    \"redemptionAmount\": \"1000\",\n    \"redemptionUnits\": \"10\",\n    \"CustID\": \"CUST987\",\n    \"fullName\": \"John Doe\",\n    \"emailAddress\": \"johndoe@example.com\",\n    \"accountNumber\": \"ACCT123456\",\n    \"bankAcctNo\": \"BANK123456\",\n    \"bankName\": \"Bank XYZ\",\n    \"registerID\": \"REG123\",\n    \"initiatedPrice\": \"20.00\",\n    \"otp\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/yoocha/mutualfunds/redemption/complete","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","yoocha","mutualfunds","redemption","complete"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d47af62e-1216-4b5f-b293-b15560015bb0"},{"name":"Start mutual funds redemption","id":"c4fd52fa-53a8-4715-ab42-ccd2070a6e11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PARTNER_KEY","value":"<your-partner-key>","type":"text"},{"key":"Authorization","value":"<Bearer Token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phoneNumber\": \"+1234567890\",\n    \"fundCode\": \"FUND123\",\n    \"fullName\": \"John Doe\",\n    \"CustID\": \"CUST987\",\n    \"redemptionAmount\": \"1000\",\n    \"redemptionUnits\": \"10\",\n    \"bankAcctNo\": \"BANK123456\",\n    \"bankName\": \"Bank XYZ\",\n    \"emailAddress\": \"johndoe@example.com\",\n    \"initiatedPrice\": \"20.00\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/yoocha/mutualfunds/redemption/start","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","yoocha","mutualfunds","redemption","start"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4fd52fa-53a8-4715-ab42-ccd2070a6e11"},{"name":"Create involvement","id":"77f50528-9eb6-4d86-91b7-4e9211380099","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PARTNER_KEY","value":"<your-partner-key>","type":"text"},{"key":"Authorization","value":"<Bearer Token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"fundCode\":\"CDOP\",\n    \"CustID\":\"DEMO123\",\n    \"businessInvolvement\":\"random\",\n    \"involvementType\":\"stuff\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/yoocha/customer/createInvolvement","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","yoocha","customer","createInvolvement"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"77f50528-9eb6-4d86-91b7-4e9211380099"},{"name":"Get mutual funds transaction history","id":"f0baad40-a34d-4a0f-8092-0f0a93d27b6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"<Bearer Token>","type":"text"},{"key":"PARTNER_KEY","value":"<your-partner-token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionType\":\"subscription\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/yoocha/mutualFundtransactionHistory","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","yoocha","mutualFundtransactionHistory"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0baad40-a34d-4a0f-8092-0f0a93d27b6c"},{"name":"Get mutual fund valuation","id":"dc0b8d89-deb8-450d-985b-2398563f1fd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"<bearer token>","type":"text"},{"key":"PARTNER_KEY","value":"<your partner key>","type":"text"}],"url":"{{baseUrl}}/api/yoocha/getCAMMFAccountDetails_?CustID=2929&fundCode=Sample","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}},"urlObject":{"path":["api","yoocha","getCAMMFAccountDetails_"],"host":["{{baseUrl}}"],"query":[{"key":"CustID","value":"2929"},{"key":"fundCode","value":"Sample"}],"variable":[]}},"response":[],"_postman_id":"dc0b8d89-deb8-450d-985b-2398563f1fd6"}],"id":"f6e761c2-162c-4503-92f6-6f8ce936dafd","_postman_id":"f6e761c2-162c-4503-92f6-6f8ce936dafd","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"bdded3d9-c680-452a-ae54-646637ebe585","id":"bdded3d9-c680-452a-ae54-646637ebe585","name":"Paystack test","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"6eb41ffb-7abd-499d-9602-e7511c3f648c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"205ad04e-f605-469f-a388-599acb2373f3","type":"text/javascript","exec":[""]}}]}