{"info":{"_postman_id":"5604b5e6-8c40-4fb7-9cd2-e7d95d0c956e","name":"Plumrocket Store Credit API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14725063","collectionId":"5604b5e6-8c40-4fb7-9cd2-e7d95d0c956e","publishedId":"Tzz4PdtT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-10-18T12:40:48.000Z"},"item":[{"name":"/V1/carts/mine/prcredit/apply/:amoun","event":[{"listen":"prerequest","script":{"id":"8fa3474b-883c-41c8-9dad-b3eae35bb2a4","exec":["const tokenUrl = 'https://magento2.plumserver.com/dev10/index.php/rest/V1/integration/customer/token';","","","const getTokenRequest = {","  method: 'POST',","  url: tokenUrl,","  body: {","    mode: 'raw',","    raw: JSON.stringify({","        username: 'roni_cost@example.com',","        password: 'roni_cost3@example.com'","    }),","    options: {","        raw: {","            language: 'json'","        }","    }","}","};"," console.log('Saving the token and expiry date');","pm.sendRequest(getTokenRequest, (err, response) => {","  const jsonResponse = response.json();","  const newAccessToken = jsonResponse.access_token;","","  pm.variables.set('access_token', jsonResponse);","});"],"type":"text/javascript"}}],"id":"ead6c112-3bd6-469d-b879-a656a8f19368","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{magento_domain}}/rest/default/V1/carts/mine/prcredit/apply/:amoun","urlObject":{"path":["rest","default","V1","carts","mine","prcredit","apply",":amoun"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"bd809587-48ef-4a50-98d1-7c4b3930f85e","type":"any","value":"int","key":"amoun"}]}},"response":[],"_postman_id":"ead6c112-3bd6-469d-b879-a656a8f19368"},{"name":"/V1/pr-credit/balance","id":"3c856300-3461-4ff6-9e39-a0bf8bbd61b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance?searchCriteria=[]","description":"<p>Get a list of balances</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","balance"],"host":["{{magento_domain}}"],"query":[{"key":"searchCriteria","value":"[]"}],"variable":[]}},"response":[{"id":"dbfc780d-b515-46bc-a8d7-798b61436505","name":"/V1/pr-credit/balance","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance?searchCriteria=[]","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance"],"query":[{"key":"searchCriteria","value":"[]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"identifier\": int,\n            \"customer_id\": int,\n            \"website_id\": int,\n            \"email_subscription_status\": bool,\n            \"base_amount\": int,\n            \"base_amount_earned\": int,\n            \"base_amount_spent\": int,\n            \"base_amount_currency_code\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        }\n    ]\n}"}],"_postman_id":"3c856300-3461-4ff6-9e39-a0bf8bbd61b7"},{"name":"/V1/pr-credit/balance/customer/:id","id":"dd94c82d-3c6c-4e06-bc31-4266ceb4424e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id","description":"<p>Create a new balance by customer ID (single store mode only)</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","balance","customer",":id"],"host":["{{magento_domain}}"],"query":[],"variable":[{"description":{"content":"<p>Customer identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"f3b2c7b1-2607-4d5a-921c-bf9a377ac559","name":"/V1/pr-credit/balance/customer/:id","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance","customer",":id"],"variable":[{"key":"id","value":"int"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"identifier\": int,\n    \"customer_id\": int,\n    \"website_id\": int,\n    \"email_subscription_status\": bool,\n    \"base_amount\": int,\n    \"base_amount_earned\": int,\n    \"base_amount_spent\": int,\n    \"base_amount_currency_code\": string,\n    \"created_at\": string,\n    \"updated_at\": string\n}"}],"_postman_id":"dd94c82d-3c6c-4e06-bc31-4266ceb4424e"},{"name":"/V1/pr-credit/balance/customer/:id/website/:websiteId","id":"b6ffcc9c-71a1-45d1-bfb8-7982f4ae8cff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id/website/:websiteId","description":"<p>Create a new balance by customer and website ID</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","balance","customer",":id","website",":websiteId"],"host":["{{magento_domain}}"],"query":[],"variable":[{"description":{"content":"<p>Customer identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"},{"description":{"content":"<p>Website identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"websiteId"}]}},"response":[{"id":"a58bc5a3-277c-4c6d-8e97-36b9b5a9f62a","name":"/V1/pr-credit/balance/create/customer/:customerId/website/:websiteId","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id/website/:websiteId","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance","customer",":id","website",":websiteId"],"variable":[{"key":"id","value":"int"},{"key":"websiteId","value":"int"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"identifier\": int,\n    \"customer_id\": int,\n    \"website_id\": int,\n    \"email_subscription_status\": bool,\n    \"base_amount\": int,\n    \"base_amount_earned\": int,\n    \"base_amount_spent\": int,\n    \"base_amount_currency_code\": string,\n    \"created_at\": string,\n    \"updated_at\": string\n}"}],"_postman_id":"b6ffcc9c-71a1-45d1-bfb8-7982f4ae8cff"},{"name":"/V1/pr-credit/balance/:id","id":"1162414e-6014-4bb7-8c38-86d0ef5bdc74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance/:id","description":"<p>Get a balance by ID</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","balance",":id"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"6cfa907a-49a7-49c1-8ee0-ecc8ef6822df","description":{"content":"<p>Balance identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"f5a5d96f-aa17-446a-8bb0-490e7ae1193e","name":"/V1/pr-credit/balance/:id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance/:id","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"identifier\": int,\n    \"customer_id\": int,\n    \"website_id\": int,\n    \"email_subscription_status\": bool,\n    \"base_amount\": int,\n    \"base_amount_earned\": int,\n    \"base_amount_spent\": int,\n    \"base_amount_currency_code\": string,\n    \"created_at\": string,\n    \"updated_at\": string\n}"}],"_postman_id":"1162414e-6014-4bb7-8c38-86d0ef5bdc74"},{"name":"/V1/pr-credit/balance/customer/:id","id":"e2e226d8-a0ea-47ba-9c20-74e881dd84ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id","description":"<p>Get balances by customer ID</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","balance","customer",":id"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"477b41a6-817f-4b7c-91fb-572cf1c5a922","description":{"content":"<p>Customer identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"ea563838-f910-4481-8636-de37ed80c86f","name":"/V1/pr-credit/balance/customer/:id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance","customer",":id"],"variable":[{"key":"id","value":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"identifier\": int,\n            \"customer_id\": int,\n            \"website_id\": int,\n            \"email_subscription_status\": bool,\n            \"base_amount\": int,\n            \"base_amount_earned\": int,\n            \"base_amount_spent\": int,\n            \"base_amount_currency_code\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        },\n        {\n            \"identifier\": int,\n            \"customer_id\": int,\n            \"website_id\": int,\n            \"email_subscription_status\": bool,\n            \"base_amount\": int,\n            \"base_amount_earned\": int,\n            \"base_amount_spent\": int,\n            \"base_amount_currency_code\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        }\n    ]\n}"}],"_postman_id":"e2e226d8-a0ea-47ba-9c20-74e881dd84ab"},{"name":"/V1/pr-credit/balance/customer/:id/website/:websiteId","id":"4aa9a39e-1588-4161-82cb-4e935d9c9db4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id/website/:websiteId","description":"<p>Get balances by customer and website IDs</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","balance","customer",":id","website",":websiteId"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"06012f8b-c587-4bea-b636-72fc826861ae","description":{"content":"<p>Customer identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"},{"id":"739ec9d8-edb0-4704-9fac-4703027c4245","description":{"content":"<p>Website identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"websiteId"}]}},"response":[{"id":"530e06c7-c732-4c3b-ac6a-321957817904","name":"/V1/pr-credit/balance/customer/:id/website/:websiteId","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance/customer/:id/website/:websiteId","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance","customer",":id","website",":websiteId"],"variable":[{"key":"id","value":"int"},{"key":"websiteId","value":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"identifier\": int,\n            \"customer_id\": int,\n            \"website_id\": int,\n            \"email_subscription_status\": bool,\n            \"base_amount\": int,\n            \"base_amount_earned\": int,\n            \"base_amount_spent\": int,\n            \"base_amount_currency_code\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        }\n    ]\n}"}],"_postman_id":"4aa9a39e-1588-4161-82cb-4e935d9c9db4"},{"name":"/V1/pr-credit/transaction","id":"a536a005-353e-410d-8135-25d971b03440","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/transaction?searchCriteria=[]","description":"<p>Get a list of transactions</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","transaction"],"host":["{{magento_domain}}"],"query":[{"key":"searchCriteria","value":"[]"}],"variable":[]}},"response":[{"id":"183fad8d-ab6e-4bc5-a4e6-68de4d0e9a45","name":"/V1/pr-credit/transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/transaction?searchCriteria=[]","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","transaction"],"query":[{"key":"searchCriteria","value":"[]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        },\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        }\n    ]\n}"}],"_postman_id":"a536a005-353e-410d-8135-25d971b03440"},{"name":"/V1/pr-credit/transaction/:id","id":"0612711c-ae33-4775-be4b-72a489c33eb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/:id","description":"<p>Get a transaction by ID</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","transaction",":id"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"cb7aed9a-0b18-4b9c-b3d4-ad3bb2ede711","description":{"content":"<p>Transaction identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"f01c53e2-bf87-470c-b0a7-32cd59261f3f","name":"/V1/pr-credit/transaction/:id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/:id","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","transaction",":id"],"variable":[{"key":"id","value":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"identifier\": int,\n    \"balance_id\": int,\n    \"amount\": int,\n    \"balance_base_amount\": int,\n    \"amount_currency_code\": string,\n    \"base_amount_currency_code\": string,\n    \"type\": string,\n    \"description\": string,\n    \"created_at\": string,\n    \"updated_at\": string\n}"}],"_postman_id":"0612711c-ae33-4775-be4b-72a489c33eb2"},{"name":"/V1/pr-credit/transaction/balance/:id","id":"8de6e627-a473-40bb-821e-b16681a5cca2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/balance/:id","description":"<p>Get transactions by balance ID</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","transaction","balance",":id"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"c58dcfa5-a168-4f78-b450-ce9cf78ac919","description":{"content":"<p>Balance identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"12b406f6-d767-41e3-ba0b-aa1d05df24e0","name":"/V1/pr-credit/transaction/balance/:id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/balance/:id","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","transaction","balance",":id"],"variable":[{"key":"id","value":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        },\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        }\n    ]\n}"}],"_postman_id":"8de6e627-a473-40bb-821e-b16681a5cca2"},{"name":"/V1/pr-credit/transaction/customer/:id","id":"a95773dc-c604-4223-9e6b-477f75acfa3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/customer/:id","description":"<p>Get transactions by customer ID</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","transaction","customer",":id"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"0031a1a8-d087-4f41-ba80-22e6f2a76c33","description":{"content":"<p>Customer identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"fbd59800-6525-47d5-b8f7-0e51ebc5a7dd","name":"/V1/pr-credit/transaction/customer/:id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/customer/:id","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","transaction","customer",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        },\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        }\n    ]\n}"}],"_postman_id":"a95773dc-c604-4223-9e6b-477f75acfa3b"},{"name":"/V1/pr-credit/transaction/customer/:id/website/:websiteId","id":"e7b3a5a4-7c15-40e2-b8f8-2e37e1d573f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/customer/:id/website/:websiteId","description":"<p>Get transactions by customer and website IDs</p>\n","urlObject":{"path":["rest","default","V1","pr-credit","transaction","customer",":id","website",":websiteId"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"2005a172-63f1-402c-8135-2020afd799de","description":{"content":"<p>Customer identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"},{"id":"add23762-819a-4bb9-8c12-8d8c37a8a4ff","description":{"content":"<p>Website identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"websiteId"}]}},"response":[{"id":"e25291c1-39e6-4470-90a1-62e5c862bd7d","name":"/V1/pr-credit/transaction/customer/:id/website/:websiteId","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/transaction/customer/:id/website/:websiteId","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","transaction","customer",":id","website",":websiteId"],"variable":[{"key":"id","value":"int"},{"key":"websiteId","value":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        },\n        {\n            \"identifier\": int,\n            \"balance_id\": int,\n            \"amount\": int,\n            \"balance_base_amount\": int,\n            \"amount_currency_code\": string,\n            \"base_amount_currency_code\": string,\n            \"type\": string,\n            \"description\": string,\n            \"created_at\": string,\n            \"updated_at\": string\n        }\n    ]\n}"}],"_postman_id":"e7b3a5a4-7c15-40e2-b8f8-2e37e1d573f6"},{"name":"/V1/pr-credit/balance/:id/add","id":"f4e6a25b-f4bf-4569-9220-346ad4c210e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": int|float,\n    \"description\": string,\n    \"force_notify\": bool\n}","options":{"raw":{"language":"json"}}},"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance/:id/add","urlObject":{"path":["rest","default","V1","pr-credit","balance",":id","add"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"75e320ab-ad20-4bd2-9446-cd3a18173e0e","description":{"content":"<p>Balance identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"0ed4814d-8a5d-431b-a120-6a2fec55b0de","name":"/V1/pr-credit/balance/:id/add","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": int|float,\n    \"description\": string,\n    \"force_notify\": bool\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance/:id/add","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance",":id","add"],"variable":[{"key":"id","value":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"identifier\": int,\n    \"customer_id\": int,\n    \"website_id\": int,\n    \"email_subscription_status\": bool,\n    \"base_amount\": int,\n    \"base_amount_earned\": int,\n    \"base_amount_spent\": int,\n    \"base_amount_currency_code\": string,\n    \"created_at\": string,\n    \"updated_at\": string\n}"}],"_postman_id":"f4e6a25b-f4bf-4569-9220-346ad4c210e8"},{"name":"/V1/pr-credit/balance/:id/subtract","id":"b50e271a-7d3d-49a0-9113-cd7ddda4c35a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": int|float,\n    \"description\": string,\n    \"force_notify\": bool\n}","options":{"raw":{"language":"json"}}},"url":"{{magento_domain}}/rest/default/V1/pr-credit/balance/:id/subtract","urlObject":{"path":["rest","default","V1","pr-credit","balance",":id","subtract"],"host":["{{magento_domain}}"],"query":[],"variable":[{"id":"42634e16-af7b-4400-9b0c-2569e4142b17","description":{"content":"<p>Balance identifier</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[{"id":"70e8a09b-0c1f-4778-ba02-43c47516928c","name":"/V1/pr-credit/balance/:id/subtract","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": int|float,\n    \"description\": string,\n    \"force_notify\": bool\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{magento_domain}}/rest/default/V1/pr-credit/balance/:id/subtract","host":["{{magento_domain}}"],"path":["rest","default","V1","pr-credit","balance",":id","subtract"],"variable":[{"key":"id","value":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"identifier\": int,\n    \"customer_id\": int,\n    \"website_id\": int,\n    \"email_subscription_status\": bool,\n    \"base_amount\": int,\n    \"base_amount_earned\": int,\n    \"base_amount_spent\": int,\n    \"base_amount_currency_code\": string,\n    \"created_at\": string,\n    \"updated_at\": string\n}"}],"_postman_id":"b50e271a-7d3d-49a0-9113-cd7ddda4c35a"}],"event":[{"listen":"prerequest","script":{"id":"1881f406-2f35-46ca-96c4-21cb41b4f244","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0551ec8a-7194-4c0d-b3b7-d15e3089563e","type":"text/javascript","exec":[""]}}],"variable":[{"key":"magento_domain","value":"{{magento_domain}}"},{"key":"token","value":"{{token}}"}]}