{"info":{"_postman_id":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","name":"Product","description":"<html><head></head><body><p>The Product API allows merchants to retrieve product information configured in the payment gateway. You can request details for a specific product or fetch the complete product list associated with the merchant.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"34291398","collectionId":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","publishedId":"2sB3Hhthom","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-09-01T15:15:58.000Z"},"item":[{"name":"Create Product","id":"83642d22-1bee-4c66-a30c-02097f4d8d99","protocolProfileBehavior":{"disableBodyPruning":true,"protocolVersion":"auto"},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"product\": {\n        \"uniqueID\": null,\n        \"name\": \"Product Name\",\n        \"description\": \"Product Description\",\n        \"price\": 2.32\n    }\n}"},"url":"{{developer_url}}/query/expiproduct","urlObject":{"path":["query","expiproduct"],"host":["{{developer_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Reduces response to given variable(s) and uniqueID</p>\n","type":"text/plain"},"key":"modifiers","value":""}],"variable":[]}},"response":[{"id":"e5e7789e-efd5-493f-91d9-0d95b4933021","name":"Normal","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"product\": {\n        \"uniqueID\": null,\n        \"name\": \"Product Name\",\n        \"description\": \"Product Description\",\n        \"price\": 2.32\n    }\n}"},"url":{"raw":"{{baseURL}}/query/expiproduct","host":["{{baseURL}}"],"path":["query","expiproduct"],"query":[{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"product\": {\n        \"uniqueID\": 3,\n        \"name\": \"Product Name\",\n        \"description\": \"Product Description\",\n        \"price\": 2.32\n    }\n}"}],"_postman_id":"83642d22-1bee-4c66-a30c-02097f4d8d99"},{"name":"Get Product","id":"1a40ff6a-5bd0-4753-bac9-314d4041f8db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"url":"{{baseURL}}/query/expiproduct?uniqueID=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","id":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","name":"Product","type":"collection"}},"urlObject":{"path":["query","expiproduct"],"host":["{{baseURL}}"],"query":[{"key":"uniqueID","value":""},{"disabled":true,"description":{"content":"<p>Reduces response to given variable(s) and uniqueID</p>\n","type":"text/plain"},"key":"modifiers","value":""}],"variable":[]}},"response":[{"id":"fab96bc5-6d9e-4722-b994-c3c227eb8b98","name":"Normal","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"url":{"raw":"{{baseURL}}/query/expiproduct?uniqueID=","host":["{{baseURL}}"],"path":["query","expiproduct"],"query":[{"key":"uniqueID","value":""},{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"product\": {\n        \"uniqueID\": 2,\n        \"name\": \"Product Altered Name\",\n        \"description\": \"Product Description\",\n        \"price\": 2.32\n    }\n}"},{"id":"8a9f3d08-c20e-4115-8e7c-e47b42fda689","name":"Fail Condition","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"url":{"raw":"{{baseURL}}/query/expiproduct?uniqueID=","host":["{{baseURL}}"],"path":["query","expiproduct"],"query":[{"key":"modifiers","value":null,"type":"text","disabled":true},{"key":"uniqueID","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"result\": \"failed\",\n    \"message\": \"No product found\"\n}"}],"_postman_id":"1a40ff6a-5bd0-4753-bac9-314d4041f8db"},{"name":"Get Products","id":"a964e735-7a9f-4c0b-bcbf-ff5ce3e159c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"{{baseURL}}/query/expiproduct?pageSize=1&page=1","urlObject":{"path":["query","expiproduct"],"host":["{{baseURL}}"],"query":[{"disabled":true,"description":{"content":"<p>Reduces response to given variable(s) and uniqueID</p>\n","type":"text/plain"},"key":"modifiers","value":"uniqueID"},{"disabled":true,"description":{"content":"<p>Filters response by given variable(s)</p>\n","type":"text/plain"},"key":"filters","value":""},{"disabled":true,"description":{"content":"<p>Sorts response by given variable with a +(ascending) or a -(descending).</p>\n","type":"text/plain"},"key":"sort","value":"-price"},{"key":"pageSize","value":"1"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"dfc3d36f-7576-489e-87d7-4fe623f8f465","name":"Get Products (success)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"url":{"raw":"{{baseURL}}/query/expiproduct","host":["{{baseURL}}"],"path":["query","expiproduct"],"query":[{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"products\": [\n        {\n            \"uniqueID\": 2,\n            \"name\": \"Product Altered Name\",\n            \"description\": \"Product Description\",\n            \"price\": 2.32\n        },\n        {\n            \"uniqueID\": 3,\n            \"name\": \"Product Name\",\n            \"description\": \"Product Description\",\n            \"price\": 92.32\n        }\n    ]\n}"},{"id":"79d650ff-9727-4b99-96df-e7a3c3cd6daa","name":"No Products (success)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"url":{"raw":"{{baseURL}}/query/expiproduct","host":["{{baseURL}}"],"path":["query","expiproduct"],"query":[{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"products\": []\n}"}],"_postman_id":"a964e735-7a9f-4c0b-bcbf-ff5ce3e159c5"},{"name":"Update Product","id":"98ad7e99-fec5-45a6-bfa0-e32128981409","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"product\": {\n        \"uniqueID\": ,\n        \"name\": \"Product Altered Name\",\n        \"description\": \"Product Description\",\n        \"price\": 2.32\n    }\n}"},"url":"{{baseURL}}/query/expiproduct","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","id":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","name":"Product","type":"collection"}},"urlObject":{"path":["query","expiproduct"],"host":["{{baseURL}}"],"query":[{"disabled":true,"description":{"content":"<p>Reduces response to given variable(s) and uniqueID</p>\n","type":"text/plain"},"key":"modifiers","value":""}],"variable":[]}},"response":[{"id":"2bd4c6ec-558f-4911-83c0-982dcc7407b9","name":"Normal","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"product\": {\n        \"uniqueID\": ,\n        \"name\": \"Product Altered Name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/query?action=expiproduct","host":["{{baseURL}}"],"path":["query"],"query":[{"key":"action","value":"expiproduct"},{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"product\": {\n        \"uniqueID\": 2,\n        \"name\": \"Product Altered Name\",\n        \"description\": \"Product Description\",\n        \"price\": 2.32\n    }\n}"},{"id":"8bcb9a3a-4bda-44ee-90b5-0dddcf6fed96","name":"Fail Condition","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"product\": {\n        \"uniqueID\": -1,\n        \"name\": \"Product Altered Name\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/query?action=expiproduct","host":["{{baseURL}}"],"path":["query"],"query":[{"key":"action","value":"expiproduct"},{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"result\": \"failed\",\n    \"message\": \"No product found\"\n}"}],"_postman_id":"98ad7e99-fec5-45a6-bfa0-e32128981409"},{"name":"Delete Product","id":"8b93d1fe-a544-419b-8a96-bd28ba8afc90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"url":"{{baseURL}}/query/expiproduct","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","id":"1d7ce74f-840e-4cc2-baa1-f8f83384481f","name":"Product","type":"collection"}},"urlObject":{"path":["query","expiproduct"],"host":["{{baseURL}}"],"query":[{"disabled":true,"description":{"content":"<p>Reduces response to given variable(s) and uniqueID</p>\n","type":"text/plain"},"key":"uniqueID","value":""}],"variable":[]}},"response":[{"id":"2f246243-6240-44d1-a1a5-7ccaa5002a70","name":"Normal","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"uniqueID\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/query?action=expiproduct","host":["{{baseURL}}"],"path":["query"],"query":[{"key":"action","value":"expiproduct"},{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"message\": \"Product deleted\"\n}"},{"id":"5f1148d6-65ba-4eec-916d-92aba6e922e9","name":"Fail Condition","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"uniqueID\": \"-1\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseURL}}/query?action=expiproduct","host":["{{baseURL}}"],"path":["query"],"query":[{"key":"action","value":"expiproduct"},{"key":"modifiers","value":null,"type":"text","disabled":true}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"failed\",\n    \"message\": \"Product not found\"\n}"}],"_postman_id":"8b93d1fe-a544-419b-8a96-bd28ba8afc90"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"7820ebae-a090-4231-936b-d0aff261a8eb","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"1cad05c4-0b49-4dc7-8860-60368157daa5","type":"text/javascript","packages":{},"requests":{},"exec":["pm.test(\"Check for 401 Unauthorized\", function () {","    pm.expect(pm.response.code).to.not.eql(401, \"Unauthorized: Please use query/login to continue.\");","});"]}}],"variable":[{"key":"productID","value":""}]}