{"info":{"_postman_id":"1becf0e1-4364-4e16-9bdd-e954d95f62f9","name":"Magento 2 Affiliate Standard Rest API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10589000","collectionId":"1becf0e1-4364-4e16-9bdd-e954d95f62f9","publishedId":"U16nLjgH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-14T10:17:49.000Z"},"item":[{"name":"Account","item":[{"name":"Customer get account info","id":"356c2bea-7d05-42a8-8d5b-4c5039fad34e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/?storeId=","urlObject":{"path":["rest","V1","mpAffiliate","mine","accounts",""],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":""}],"variable":[]}},"response":[{"id":"d2f67aca-f0cf-470e-be36-65c3998d3c46","name":"Customer get account info Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:11:14 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:11:14 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"321"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2211304"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"account_id\": 2,\n    \"customer_id\": 1,\n    \"code\": \"mag123456\",\n    \"group_id\": 5,\n    \"balance\": 2.9,\n    \"holding_balance\": 0,\n    \"total_commission\": 4.9,\n    \"total_paid\": 2,\n    \"status\": 1,\n    \"email_notification\": 1,\n    \"parent\": 1,\n    \"tree\": \"1/2\",\n    \"withdraw_method\": null,\n    \"withdraw_information\": null,\n    \"created_at\": \"2021-08-12 06:42:20\",\n    \"parent_email\": \"quynhdtt@mageplaza.com\"\n}"}],"_postman_id":"356c2bea-7d05-42a8-8d5b-4c5039fad34e"},{"name":"Customer subscribe","id":"ba6a85c6-fb9e-424f-9cf0-0230ce6442e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"isSubscribe","value":"true","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/subscribe?storeId","urlObject":{"path":["rest","V1","mpAffiliate","mine","accounts","subscribe"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":null}],"variable":[]}},"response":[{"id":"ab420a69-65ed-4c70-8e32-1add1ad2ad4b","name":"Customer subscribe Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"isSubscribe","value":"true","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/subscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:15:10 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:15:12 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1802173"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"ba6a85c6-fb9e-424f-9cf0-0230ce6442e3"},{"name":"Customer sign up","id":"5f7517f9-2180-441d-8562-e4f29cea9733","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/signup?storeId","urlObject":{"path":["rest","V1","mpAffiliate","signup"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":null}],"variable":[]}},"response":[{"id":"f5b4fc15-90ab-4e49-9a1c-67027f7b6262","name":"Customer sign up Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{magento_base_url}}/rest/V1/mpAffiliate/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:15:20 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:15:20 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"33"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"1802176"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"status\": 1,\n        \"affiliate_id\": \"2\"\n    }\n]"}],"_postman_id":"5f7517f9-2180-441d-8562-e4f29cea9733"},{"name":"Customer invite","id":"c1341a90-85ea-4007-b868-a0bcd6ddb0d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"contacts","value":"quynhdtt@mageplaza.com","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/invite?storeId=2","urlObject":{"path":["rest","V1","mpAffiliate","mine","accounts","invite"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":"2"}],"variable":[]}},"response":[{"id":"62f351df-a47a-4331-a6fd-c90fdc5231c0","name":"Customer invite Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"contacts","value":"quynhdtt@mageplaza.com","type":"text"}]},"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/invite?storeId=2","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","mine","accounts","invite"],"query":[{"key":"storeId","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:16:44 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:16:45 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"56"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2268762"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"\"{\\\"success\\\":[\\\"quynhdtt@mageplaza.com\\\"],\\\"fail\\\":[]}\""}],"_postman_id":"c1341a90-85ea-4007-b868-a0bcd6ddb0d3"},{"name":"Customer create refer link","id":"06ac0086-80e6-493c-a912-0c4e4664e6ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"url","value":"http://dev.mageplaza.vn:8080/quynh/ce237a/affiliate/account/refer","type":"text"}]},"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/create-refer-link?storeId","urlObject":{"path":["rest","V1","mpAffiliate","mine","accounts","create-refer-link"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":null}],"variable":[]}},"response":[{"id":"869b1413-40b1-45e3-af35-426b60115986","name":"Customer create refer link Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"url","value":"http://dev.mageplaza.vn:8080/ce237a/affiliate","type":"text"}]},"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/accounts/create-refer-link?storeId=0","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","mine","accounts","create-refer-link"],"query":[{"key":"storeId","value":"0","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:17:11 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:17:12 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"77"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2463408"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"\"http://dev.mageplaza.vn:8080/ce237a/affiliate#u2\""}],"_postman_id":"06ac0086-80e6-493c-a912-0c4e4664e6ee"}],"id":"f8ed5d33-bd90-491f-87aa-e5bca2c647de","_postman_id":"f8ed5d33-bd90-491f-87aa-e5bca2c647de","description":""},{"name":"Transactions","item":[{"name":"Customer get transaction","id":"364e31fc-19af-4ed6-b0cb-c53f34b1e1ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/transactions/?searchCriteria&storeId=","urlObject":{"path":["rest","V1","mpAffiliate","mine","transactions",""],"host":["{{magento_base_url}}"],"query":[{"key":"searchCriteria","value":null},{"key":"storeId","value":""}],"variable":[]}},"response":[{"id":"cdb728ee-dec9-401d-ab6f-61a37ac45504","name":"Customer get transaction Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/transactions/?searchCriteria&storeId=","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","mine","transactions",""],"query":[{"key":"searchCriteria","value":null},{"key":"storeId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Sep 2021 02:56:18 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=9id5avb9ohjutq8i63csjv41s7; expires=Wed, 22-Sep-2021 03:56:18 GMT; Max-Age=3600; path=/quynh/ce237a; domain=192.168.1.200; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"3257"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"592307"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"transaction_id\": 1,\n            \"account_id\": 7,\n            \"amount\": 20,\n            \"title\": \"Changed by Admin\",\n            \"holding_to\": null,\n            \"customer_id\": 1,\n            \"action\": \"admin\",\n            \"type\": 3,\n            \"amount_used\": null,\n            \"current_balance\": 240,\n            \"status\": 3,\n            \"order_id\": null,\n            \"order_increment_id\": null,\n            \"store_id\": 2,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-09 09:12:03\",\n            \"updated_at\": \"2021-09-09 09:12:03\",\n            \"extra_content\": \"{\\\"admin_id\\\":\\\"1\\\"}\"\n        },\n        {\n            \"transaction_id\": 4,\n            \"account_id\": 7,\n            \"amount\": -10,\n            \"title\": \"Subtract balance for withdraw request\",\n            \"holding_to\": null,\n            \"customer_id\": 1,\n            \"action\": \"withdraw/create\",\n            \"type\": 2,\n            \"amount_used\": null,\n            \"current_balance\": 260,\n            \"status\": 3,\n            \"order_id\": null,\n            \"order_increment_id\": null,\n            \"store_id\": 3,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-13 01:20:48\",\n            \"updated_at\": \"2021-09-13 01:20:48\",\n            \"extra_content\": \"[]\"\n        },\n        {\n            \"transaction_id\": 5,\n            \"account_id\": 7,\n            \"amount\": -20,\n            \"title\": \"Subtract balance for withdraw request\",\n            \"holding_to\": null,\n            \"customer_id\": 1,\n            \"action\": \"withdraw/create\",\n            \"type\": 2,\n            \"amount_used\": null,\n            \"current_balance\": 250,\n            \"status\": 3,\n            \"order_id\": null,\n            \"order_increment_id\": null,\n            \"store_id\": 3,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-13 01:21:39\",\n            \"updated_at\": \"2021-09-13 01:21:39\",\n            \"extra_content\": \"[]\"\n        },\n        {\n            \"transaction_id\": 6,\n            \"account_id\": 7,\n            \"amount\": -10,\n            \"title\": \"Subtract balance for withdraw request\",\n            \"holding_to\": null,\n            \"customer_id\": 1,\n            \"action\": \"withdraw/create\",\n            \"type\": 2,\n            \"amount_used\": null,\n            \"current_balance\": 230,\n            \"status\": 3,\n            \"order_id\": null,\n            \"order_increment_id\": null,\n            \"store_id\": 3,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-13 01:22:53\",\n            \"updated_at\": \"2021-09-13 01:22:53\",\n            \"extra_content\": \"[]\"\n        },\n        {\n            \"transaction_id\": 7,\n            \"account_id\": 7,\n            \"amount\": -10,\n            \"title\": \"Subtract balance for withdraw request\",\n            \"holding_to\": null,\n            \"customer_id\": 1,\n            \"action\": \"withdraw/create\",\n            \"type\": 2,\n            \"amount_used\": null,\n            \"current_balance\": 220,\n            \"status\": 3,\n            \"order_id\": null,\n            \"order_increment_id\": null,\n            \"store_id\": 3,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-13 01:23:48\",\n            \"updated_at\": \"2021-09-13 01:23:48\",\n            \"extra_content\": \"[]\"\n        },\n        {\n            \"transaction_id\": 8,\n            \"account_id\": 7,\n            \"amount\": -30,\n            \"title\": \"Subtract balance for withdraw request\",\n            \"holding_to\": null,\n            \"customer_id\": 1,\n            \"action\": \"withdraw/create\",\n            \"type\": 2,\n            \"amount_used\": null,\n            \"current_balance\": 210,\n            \"status\": 3,\n            \"order_id\": null,\n            \"order_increment_id\": null,\n            \"store_id\": 3,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-13 02:31:01\",\n            \"updated_at\": \"2021-09-13 02:31:01\",\n            \"extra_content\": \"[]\"\n        },\n        {\n            \"transaction_id\": 9,\n            \"account_id\": 7,\n            \"amount\": 4.09,\n            \"title\": \"Get commission for order #2000000018\",\n            \"holding_to\": \"2021-10-14 09:04:53\",\n            \"customer_id\": 1,\n            \"action\": \"order/invoice\",\n            \"type\": 1,\n            \"amount_used\": null,\n            \"current_balance\": 180,\n            \"status\": 2,\n            \"order_id\": \"154\",\n            \"order_increment_id\": \"2000000018\",\n            \"store_id\": 2,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-14 09:04:53\",\n            \"updated_at\": \"2021-09-14 09:04:53\",\n            \"extra_content\": \"{\\\"invoice_increment_id\\\":\\\"2000000012\\\"}\"\n        },\n        {\n            \"transaction_id\": 10,\n            \"account_id\": 7,\n            \"amount\": 4.5,\n            \"title\": \"Get commission for order #2000000019\",\n            \"holding_to\": \"2021-10-14 09:09:55\",\n            \"customer_id\": 1,\n            \"action\": \"order/invoice\",\n            \"type\": 1,\n            \"amount_used\": null,\n            \"current_balance\": 180,\n            \"status\": 2,\n            \"order_id\": \"155\",\n            \"order_increment_id\": \"2000000019\",\n            \"store_id\": 2,\n            \"campaign_id\": null,\n            \"created_at\": \"2021-09-14 09:09:55\",\n            \"updated_at\": \"2021-09-14 09:09:55\",\n            \"extra_content\": \"{\\\"invoice_increment_id\\\":\\\"2000000013\\\"}\"\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": []\n    },\n    \"total_count\": 8\n}"}],"_postman_id":"364e31fc-19af-4ed6-b0cb-c53f34b1e1ce"}],"id":"0a783c80-ace1-426f-a78e-fa6c58a4ce0e","_postman_id":"0a783c80-ace1-426f-a78e-fa6c58a4ce0e","description":""},{"name":"Withdraw","item":[{"name":"Customer get history withdraws","id":"aea2d017-b1d8-44bb-a065-56f4c0a6a80b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/withdraws-history?searchCriteria&storeId=2","urlObject":{"path":["rest","V1","mpAffiliate","mine","withdraws-history"],"host":["{{magento_base_url}}"],"query":[{"key":"searchCriteria","value":null},{"key":"storeId","value":"2"}],"variable":[]}},"response":[{"id":"0985e1a0-76bf-4985-ae82-0e843140209e","name":"Customer get history withdraws Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/withdraws-history?searchCriteria&storeId=2","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","mine","withdraws-history"],"query":[{"key":"searchCriteria","value":null},{"key":"storeId","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Sep 2021 03:00:50 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=9id5avb9ohjutq8i63csjv41s7; expires=Wed, 22-Sep-2021 04:00:50 GMT; Max-Age=3600; path=/quynh/ce237a; domain=192.168.1.200; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1548"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"820520"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"withdraw_id\": 2,\n            \"account_id\": 7,\n            \"customer_id\": 1,\n            \"transaction_id\": 4,\n            \"amount\": 10,\n            \"fee\": 1,\n            \"transfer_amount\": 9,\n            \"status\": 1,\n            \"payment_method\": \"offline\",\n            \"payment_details\": \"{\\\"offline_address\\\":\\\"abc\\\"}\",\n            \"resolved_at\": null,\n            \"created_at\": \"2021-09-13 01:20:53\",\n            \"withdraw_description\": \"test123\"\n        },\n        {\n            \"withdraw_id\": 3,\n            \"account_id\": 7,\n            \"customer_id\": 1,\n            \"transaction_id\": 5,\n            \"amount\": 20,\n            \"fee\": 2,\n            \"transfer_amount\": 18,\n            \"status\": 1,\n            \"payment_method\": \"paypal\",\n            \"payment_details\": \"{\\\"paypal_email\\\":\\\"d@gmail.com\\\",\\\"paypal_transaction_id\\\":null}\",\n            \"resolved_at\": null,\n            \"created_at\": \"2021-09-13 01:21:43\",\n            \"withdraw_description\": null\n        },\n        {\n            \"withdraw_id\": 4,\n            \"account_id\": 7,\n            \"customer_id\": 1,\n            \"transaction_id\": 6,\n            \"amount\": 10,\n            \"fee\": 0,\n            \"transfer_amount\": 10,\n            \"status\": 1,\n            \"payment_method\": \"banktranfer\",\n            \"payment_details\": \"{\\\"banktranfer\\\":\\\"\\\"}\",\n            \"resolved_at\": null,\n            \"created_at\": \"2021-09-13 01:22:56\",\n            \"withdraw_description\": null\n        },\n        {\n            \"withdraw_id\": 5,\n            \"account_id\": 7,\n            \"customer_id\": 1,\n            \"transaction_id\": 7,\n            \"amount\": 10,\n            \"fee\": 0,\n            \"transfer_amount\": 10,\n            \"status\": 1,\n            \"payment_method\": \"banktranfer\",\n            \"payment_details\": \"{\\\"banktranfer\\\":\\\"abc\\\"}\",\n            \"resolved_at\": null,\n            \"created_at\": \"2021-09-13 01:23:52\",\n            \"withdraw_description\": \"test123\"\n        },\n        {\n            \"withdraw_id\": 6,\n            \"account_id\": 7,\n            \"customer_id\": 1,\n            \"transaction_id\": 8,\n            \"amount\": 30,\n            \"fee\": 2,\n            \"transfer_amount\": 28,\n            \"status\": 1,\n            \"payment_method\": \"paypal\",\n            \"payment_details\": \"{\\\"paypal_email\\\":\\\"example@gamil.com\\\",\\\"paypal_transaction_id\\\":null}\",\n            \"resolved_at\": null,\n            \"created_at\": \"2021-09-13 02:31:06\",\n            \"withdraw_description\": \"test123\"\n        }\n    ],\n    \"search_criteria\": {\n        \"filter_groups\": []\n    },\n    \"total_count\": 5\n}"}],"_postman_id":"aea2d017-b1d8-44bb-a065-56f4c0a6a80b"},{"name":"Customer create withdraw","id":"37264934-fcec-4450-88b8-4d5e7838c41b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"amount\": 10,\r\n        \"fee\": 1,\r\n        \"withdraw_description\": \"abc\",\r\n        \"payment_method\": \"paypal\",\r\n        \"paypal_email\": \"a@abc.com\",\r\n        \"paypal_transaction_id\":\"1234\"\r\n    }\r\n}"},"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/withdraw?storeId=0","description":"<ul>\n<li>\"payment_method\": \"banktranfer\",\n  \"banktranfer\": \"Bank Tranfer Infomation\"</li>\n<li>\"payment_method\": \"offline\"\n \"offline_address\":\"address\"</li>\n<li>\"payment_method\": \"paypal\"\n \"paypal_email\": \"email\",\n  \"paypal_transaction_id\":\"transaction_id\"</li>\n</ul>\n","urlObject":{"path":["rest","V1","mpAffiliate","mine","withdraw"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":"0"}],"variable":[]}},"response":[{"id":"9b998d67-2c4e-4629-b432-2f0722832fc4","name":"Customer create withdraw Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"amount\": 10,\r\n        \"fee\": 1,\r\n        \"withdraw_description\": \"abc\",\r\n        \"payment_method\": \"paypal\",\r\n        \"paypal_email\": \"a@abc.com\",\r\n        \"paypal_transaction_id\":\"1234\"\r\n    }\r\n}"},"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/withdraw?storeId=0","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","mine","withdraw"],"query":[{"key":"storeId","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Sep 2021 03:02:07 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=9id5avb9ohjutq8i63csjv41s7; expires=Wed, 22-Sep-2021 04:02:07 GMT; Max-Age=3600; path=/quynh/ce237a; domain=192.168.1.200; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"3"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"820570"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"\"8\""}],"_postman_id":"37264934-fcec-4450-88b8-4d5e7838c41b"}],"id":"f61b1267-1a36-41d5-8955-77563865497a","_postman_id":"f61b1267-1a36-41d5-8955-77563865497a","description":""},{"name":"Campaign","item":[{"name":"Customer get campaign","id":"591f3eda-22c8-4264-980b-ff42b4c71fb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/campaigns?storeId=","urlObject":{"path":["rest","V1","mpAffiliate","mine","campaigns"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":""}],"variable":[]}},"response":[{"id":"42f7843a-084e-4614-8a64-ba3f4494a607","name":"Customer get campaign Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/mine/campaigns?storeId=","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","mine","campaigns"],"query":[{"key":"storeId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Sep 2021 02:59:12 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=9id5avb9ohjutq8i63csjv41s7; expires=Wed, 22-Sep-2021 03:59:13 GMT; Max-Age=3600; path=/quynh/ce237a; domain=192.168.1.200; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1160"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"395372"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"campaign_id\": 1,\n            \"name\": \"Default Campaign\",\n            \"description\": \"This is a sample campaign\",\n            \"status\": 1,\n            \"website_ids\": \"1\",\n            \"affiliate_group_ids\": \"1,2,3,4,5\",\n            \"from_date\": \"2021-09-01 00:00:00\",\n            \"to_date\": \"2021-09-30 00:00:00\",\n            \"display\": 1,\n            \"sort_order\": 0,\n            \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n            \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":true,\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n            \"commission\": \"{\\\"tier_1\\\":{\\\"type\\\":\\\"1\\\",\\\"value\\\":\\\"10\\\",\\\"type_second\\\":\\\"1\\\",\\\"value_second\\\":\\\"5\\\",\\\"name\\\":\\\"Tier 1\\\"}}\",\n            \"discount_action\": \"by_percent\",\n            \"discount_amount\": 0,\n            \"discount_qty\": 0,\n            \"discount_step\": 0,\n            \"discount_description\": \"test 123\",\n            \"free_shipping\": null,\n            \"apply_to_shipping\": 1,\n            \"created_at\": \"2021-06-21 09:57:27\",\n            \"updated_at\": \"2021-09-14 09:08:08\",\n            \"apply_discount_on_tax\": 1,\n            \"code_length\": 3,\n            \"code_format\": \"alphanum\",\n            \"coupon_code\": \"K3R\"\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 1\n}"}],"_postman_id":"591f3eda-22c8-4264-980b-ff42b4c71fb9"},{"name":"Guest get campaign","id":"6be09181-96e4-4ae9-9cdc-9bcbd8664c1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/guest/campaigns?storeId=0","urlObject":{"path":["rest","V1","mpAffiliate","guest","campaigns"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":"0"}],"variable":[]}},"response":[{"id":"45673407-9939-4ff2-8545-fec2f0b77884","name":"Guest get campaign Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/guest/campaigns?storeId=0","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","guest","campaigns"],"query":[{"key":"storeId","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Sep 2021 03:03:03 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=9id5avb9ohjutq8i63csjv41s7; expires=Wed, 22-Sep-2021 04:03:03 GMT; Max-Age=3600; path=/quynh/ce237a; domain=192.168.1.200; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1160"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"592474"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"campaign_id\": 1,\n            \"name\": \"Default Campaign\",\n            \"description\": \"This is a sample campaign\",\n            \"status\": 1,\n            \"website_ids\": \"1\",\n            \"affiliate_group_ids\": \"1,2,3,4,5\",\n            \"from_date\": \"2021-09-01 00:00:00\",\n            \"to_date\": \"2021-09-30 00:00:00\",\n            \"display\": 1,\n            \"sort_order\": 0,\n            \"conditions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":\\\"1\\\",\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n            \"actions_serialized\": \"{\\\"type\\\":\\\"Magento\\\\\\\\SalesRule\\\\\\\\Model\\\\\\\\Rule\\\\\\\\Condition\\\\\\\\Product\\\\\\\\Combine\\\",\\\"attribute\\\":null,\\\"operator\\\":null,\\\"value\\\":true,\\\"is_value_processed\\\":null,\\\"aggregator\\\":\\\"all\\\"}\",\n            \"commission\": \"{\\\"tier_1\\\":{\\\"type\\\":\\\"1\\\",\\\"value\\\":\\\"10\\\",\\\"type_second\\\":\\\"1\\\",\\\"value_second\\\":\\\"5\\\",\\\"name\\\":\\\"Tier 1\\\"}}\",\n            \"discount_action\": \"by_percent\",\n            \"discount_amount\": 0,\n            \"discount_qty\": 0,\n            \"discount_step\": 0,\n            \"discount_description\": \"test 123\",\n            \"free_shipping\": null,\n            \"apply_to_shipping\": 1,\n            \"created_at\": \"2021-06-21 09:57:27\",\n            \"updated_at\": \"2021-09-14 09:08:08\",\n            \"apply_discount_on_tax\": 1,\n            \"code_length\": 3,\n            \"code_format\": \"alphanum\",\n            \"coupon_code\": \"K3R\"\n        }\n    ],\n    \"search_criteria\": null,\n    \"total_count\": 1\n}"}],"_postman_id":"6be09181-96e4-4ae9-9cdc-9bcbd8664c1d"}],"id":"7cc24fc6-7ee4-44c4-9fd4-a7c6f199ce37","_postman_id":"7cc24fc6-7ee4-44c4-9fd4-a7c6f199ce37","description":""},{"name":"Customer apply Aff Coupon Code","id":"0b648cd1-2372-43bf-9353-a7bfeb863ffc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/carts/mine/mpaffiliatecoupons/:affiliateCouponCode?cartId=46","urlObject":{"path":["rest","V1","carts","mine","mpaffiliatecoupons",":affiliateCouponCode"],"host":["{{magento_base_url}}"],"query":[{"key":"cartId","value":"46"}],"variable":[{"type":"any","value":"MAG123456-S7BB","key":"affiliateCouponCode"}]}},"response":[{"id":"8f3d8727-9db0-442a-b1e7-017ada6d8609","name":"Customer apply Aff Coupon Code Example","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"url":{"raw":"{{magento_base_url}}/rest/V1/carts/mine/mpaffiliatecoupons/:affiliateCouponCode?cartId=46","host":["{{magento_base_url}}"],"path":["rest","V1","carts","mine","mpaffiliatecoupons",":affiliateCouponCode"],"query":[{"key":"cartId","value":"46"}],"variable":[{"key":"affiliateCouponCode","value":"MAG123456-S7BB"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 01:58:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 02:58:19 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_key=MAG123456-S7BB; expires=Thu, 18-Aug-2022 01:58:19 GMT; Max-Age=31536000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_source=coupon; expires=Thu, 18-Aug-2022 01:58:19 GMT; Max-Age=31536000; path=/; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2561467"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"0b648cd1-2372-43bf-9353-a7bfeb863ffc"},{"name":"Customer cancel Aff Coupon Code","id":"4340f20c-bf57-4b36-ab80-c23f1b12df16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/carts/mine/mpaffiliatecoupons","urlObject":{"path":["rest","V1","carts","mine","mpaffiliatecoupons"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"bcb191d6-1cf0-49f0-9f5d-a715c6831029","name":"Customer cancel Aff Coupon Code Example","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{magento_base_url}}/rest/V1/carts/mine/mpaffiliatecoupons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:00:20 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:00:20 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_key=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_source=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2518696"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"4340f20c-bf57-4b36-ab80-c23f1b12df16"},{"name":"Guest apply Aff Coupon Code","id":"b27dcdb9-91a1-4633-a1bd-a7b454e93d77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/guest-carts/:cartId/mpaffiliatecoupons/:affiliateCouponCode","urlObject":{"path":["rest","V1","guest-carts",":cartId","mpaffiliatecoupons",":affiliateCouponCode"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"any","value":"8L9mhIB5fxNOFQybA05uFJ4hhRPQAXt3","key":"cartId"},{"type":"any","value":"MAG123456-S7BB","key":"affiliateCouponCode"}]}},"response":[{"id":"66112de6-5f4a-4af1-8af4-74c0e9286982","name":"Guest apply Aff Coupon Code Example","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"url":{"raw":"{{magento_base_url}}/rest/V1/guest-carts/:cartId/mpaffiliatecoupons/:affiliateCouponCode","host":["{{magento_base_url}}"],"path":["rest","V1","guest-carts",":cartId","mpaffiliatecoupons",":affiliateCouponCode"],"variable":[{"key":"cartId","value":"8L9mhIB5fxNOFQybA05uFJ4hhRPQAXt3"},{"key":"affiliateCouponCode","value":"MAG123456-S7BB"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:01:31 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:01:32 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_key=MAG123456-S7BB; expires=Thu, 18-Aug-2022 02:01:32 GMT; Max-Age=31536000; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_source=coupon; expires=Thu, 18-Aug-2022 02:01:32 GMT; Max-Age=31536000; path=/; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2518707"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"b27dcdb9-91a1-4633-a1bd-a7b454e93d77"},{"name":"Guest cancel affiliate coupon","id":"b95b1e53-4150-4990-8aec-df8fc1df5923","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/guest-carts/:cartId/mpaffiliatecoupons","urlObject":{"path":["rest","V1","guest-carts",":cartId","mpaffiliatecoupons"],"host":["{{magento_base_url}}"],"query":[],"variable":[{"type":"any","value":"8L9mhIB5fxNOFQybA05uFJ4hhRPQAXt3","key":"cartId"}]}},"response":[{"id":"3272fd43-7971-4e1f-b8af-854692400437","name":"Guest cancel affiliate coupon example","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{customer_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"url":{"raw":"{{magento_base_url}}/rest/V1/guest-carts/:cartId/mpaffiliatecoupons","host":["{{magento_base_url}}"],"path":["rest","V1","guest-carts",":cartId","mpaffiliatecoupons"],"variable":[{"key":"cartId","value":"8L9mhIB5fxNOFQybA05uFJ4hhRPQAXt3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Aug 2021 02:01:46 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=sg801vr7rr8b5oqrt3jju5nrro; expires=Wed, 18-Aug-2021 03:01:47 GMT; Max-Age=3600; path=/quynh/ce243/pub; domain=dev.mageplaza.vn; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_key=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"affiliate_source=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"4"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"2518710"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"b95b1e53-4150-4990-8aec-df8fc1df5923"},{"name":"Get Config Info","id":"16d60885-9e56-4919-8db7-fd0260482a0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":"{{magento_base_url}}/rest/V1/mpAffiliate/configs?storeId=0","urlObject":{"path":["rest","V1","mpAffiliate","configs"],"host":["{{magento_base_url}}"],"query":[{"key":"storeId","value":"0"}],"variable":[]}},"response":[{"id":"1d7d3b58-adc4-429c-8c1d-5410a1eb4ff3","name":"Get Config Info Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{admin_token}}","type":"text"}],"url":{"raw":"{{magento_base_url}}/rest/V1/mpAffiliate/configs?storeId=0","host":["{{magento_base_url}}"],"path":["rest","V1","mpAffiliate","configs"],"query":[{"key":"storeId","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Sep 2021 02:40:55 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=9id5avb9ohjutq8i63csjv41s7; expires=Wed, 22-Sep-2021 03:40:55 GMT; Max-Age=3600; path=/quynh/ce237a; domain=192.168.1.200; HttpOnly; SameSite=Lax"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"2144"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"X-Varnish","value":"530460"},{"key":"Age","value":"0"},{"key":"Via","value":"1.1 varnish (Varnish/5.2)"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"general\": {\n        \"enabled\": false,\n        \"enable_banner\": true,\n        \"expired_time\": 365,\n        \"overwrite_cookies\": true,\n        \"use_code_as_coupon\": true,\n        \"show_link\": \",footer_link,top_link\",\n        \"page_welcome\": \"women-left-menu-block\",\n        \"url_type\": \"hash\",\n        \"url_prefix\": \"u\",\n        \"url_param\": \"code\",\n        \"url_code_length\": 10\n    },\n    \"account\": {\n        \"sign_up_default_group\": 1,\n        \"sign_up_admin_approved\": 1,\n        \"sign_up_default_email_notification\": 0,\n        \"term_conditions_enable\": true,\n        \"term_conditions_checkbox_text\": \"I agree to the terms and conditions\",\n        \"term_conditions_title\": \"Terms and Conditions\",\n        \"term_conditions_html\": \"affiliate-referfriend-description\",\n        \"term_conditions_default_checkbox\": true,\n        \"balance_limit\": 100,\n        \"balance_negative\": false\n    },\n    \"commission\": {\n        \"by_tax\": true,\n        \"shipping\": true,\n        \"process\": {\n            \"earn_commission_invoice\": true,\n            \"holding_days\": 2,\n            \"refund\": true\n        }\n    },\n    \"withdraw\": {\n        \"allow_request\": true,\n        \"payment_method\": \"{\\\"offline\\\":{\\\"label\\\":\\\"Offline payment\\\",\\\"fee\\\":\\\"1\\\",\\\"active\\\":\\\"1\\\"},\\\"banktranfer\\\":{\\\"label\\\":\\\"Bank Tranfer\\\",\\\"fee\\\":\\\"0\\\",\\\"active\\\":\\\"1\\\"},\\\"paypal\\\":{\\\"label\\\":\\\"Paypal payment\\\",\\\"fee\\\":\\\"2\\\",\\\"active\\\":\\\"1\\\"},\\\"__empty\\\":\\\"\\\"}\",\n        \"minimum_balance\": 0,\n        \"minimum\": 0,\n        \"maximum\": 0\n    },\n    \"email\": {\n        \"sender\": \"general\",\n        \"admin\": {\n            \"emails_to\": \"quynhdtt@mageplaza.com\",\n            \"enable_sign_up\": true,\n            \"sign_up_template\": \"affiliate_email_admin_sign_up_template\",\n            \"enable_withdraw_request\": true,\n            \"withdraw_request_template\": \"affiliate_email_admin_withdraw_request_template\"\n        },\n        \"account\": {\n            \"enable\": false,\n            \"welcome\": \"affiliate_email_account_welcome\",\n            \"approve\": \"affiliate_email_account_approve\",\n            \"enable_rejection\": false,\n            \"rejection_template\": \"affiliate_email_account_rejection_template\",\n            \"enable_status\": false,\n            \"status_template\": \"affiliate_email_account_status_template\",\n            \"enable_withdraw_cancel\": false\n        },\n        \"transaction\": {\n            \"enable\": true,\n            \"update_balance\": \"affiliate_email_transaction_update_balance\"\n        },\n        \"withdraw\": {\n            \"enable\": true,\n            \"complete\": \"affiliate_email_withdraw_complete\"\n        }\n    },\n    \"refer\": {\n        \"enable\": true,\n        \"account_sharing\": \"2\",\n        \"default_link\": null,\n        \"sharing_content\": {\n            \"subject\": \"Good product and services\",\n            \"email_content\": \"I've been shopping at {{store_name}} and feel really happy. They provide good customer service and reasonable prices.\"\n        }\n    }\n}"}],"_postman_id":"16d60885-9e56-4919-8db7-fd0260482a0d"}]}