{"info":{"_postman_id":"90194131-1fd8-4406-8f49-eaf03daec358","name":"Pharmapoint.ua Promotion API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"19419386","collectionId":"90194131-1fd8-4406-8f49-eaf03daec358","publishedId":"2s93RWPBY8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-03T13:32:23.000Z"},"item":[{"name":"Analyze","item":[{"name":"Analyze document before sell","id":"5f1dd966-43bd-4157-a5d5-f4a37cd99afb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"969\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist_id\": \"000001\",\n  \"customer\": {\n        \"phone\": \"380997654321\",\n        \"card_number\": \"969000000013\",\n        \"confirmation_code\": \"199928\",\n        \"amount_of_bonuses_to_write_off\": 8\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"1234\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-03-30 11:20\",\n    \"document.amount_of_cash\": 205,\n    \"document.amount_of_change_to_bonus\": 0.5,\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-before-sell","urlObject":{"path":["analyze-before-sell"],"host":["https://pharmapoint.ua/api/v1/promotion"],"query":[],"variable":[]}},"response":[{"id":"1b5eeecd-928d-40ec-83c4-eb0bc4aedd0f","name":"Analyze document before sell (success)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380999808034\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-03-28 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-before-sell"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"document\": {\n            \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n            \"number\": \"22\",\n            \"date\": \"2023-03-30 11:20\",\n            \"total\": 123.75,\n            \"total_initial\": 123.75,\n            \"bonus_to_write_off\": 0,\n            \"bonus_to_accrue\": 4.5,\n            \"bonus_to_accrue_from_change\": 0.5,\n            \"amount_of_cash\": 205,\n            \"amount_of_change\": 0,\n            \"content\": [\n                {\n                    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n                    \"goods_id\": \"1057426\",\n                    \"price_buy\": 22.5,\n                    \"price_retail\": 22.5,\n                    \"price_new\": null,\n                    \"quantity\": 5.5,\n                    \"discount\": null,\n                    \"bonus\": 4.5,\n                    \"quantity_part\": null,\n                    \"action\": \"update\"\n                }\n            ]\n        },\n        \"pharmacist_id\": \"000001\",\n        \"promotion\": [\n            {\n            \"name\": \"Test for analyze 2\",\n            \"date_from\": \"2023-03-26\",\n            \"date_to\": \"2023-04-01\",\n            \"type\": {\n                \"name\": \"Бонус у відсотках\",\n                \"description\": \"Нарахувати бонус при купівлі SKU, у відсотку від роздрібної ціни в торговій точці\"\n            },\n            \"parameters\": {\n                \"bonus_percent\": {\n                    \"name\": \"bonus_percent\",\n                    \"description\": \"Розмір бонусу у % від роздрібної ціни\",\n                    \"value\": 20\n                }\n            }\n        },\n         {\n            \"name\": \"Test for analyze 2\",\n            \"date_from\": \"2023-03-26\",\n            \"date_to\": \"2023-04-01\",\n            \"type\": {\n                \"name\": \"Бонус у відсотках\",\n                \"description\": \"Нарахувати бонус при купівлі SKU, у відсотку від роздрібної ціни в торговій точці\"\n            },\n            \"parameters\": {\n                \"bonus_percent\": {\n                    \"name\": \"bonus_percent\",\n                    \"description\": \"Розмір бонусу у % від роздрібної ціни\",\n                    \"value\": 20\n                }\n            }\n        }\n        ],\n        \"customer\": {\n            \"first_name\": \"Anna\",\n            \"last_name\": \"Anna\",\n            \"middle_name\": \"Anna\",\n            \"email\": \"customer@gmail.com\",\n            \"city\": \"Полтава\",\n            \"phone\": \"380997654321\",\n            \"card_number\": \"969000000013\",\n            \"birthday\": \"08.08.1993\",\n            \"bonuses\": 9910.5\n        }\n    }\n}"},{"id":"899f2ae2-336c-4af4-9921-78ff98875f02","name":"Analyze document before sell (succes with confirmation code)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380990000000\",\n      \"card_number\": \"6758595050\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-02-10 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-before-sell"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"document\": {\n            \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n            \"number\": \"22\",\n            \"date\": \"2023-03-30 11:20\",\n            \"total\": 118.75,\n            \"total_initial\": 123.75,\n            \"bonus_to_write_off\": 5,\n            \"bonus_to_accrue\": 4.5,\n            \"bonus_to_accrue_from_change\": 0.5,\n            \"amount_of_cash\": 205,\n            \"amount_of_change\": 0,\n            \"content\": [\n                {\n                    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n                    \"goods_id\": \"1057426\",\n                    \"price_buy\": 22.5,\n                    \"price_retail\": 22.5,\n                    \"price_new\": null,\n                    \"quantity\": 5.5,\n                    \"discount\": null,\n                    \"bonus\": 4.5,\n                    \"quantity_part\": null\n                }\n            ]\n        },\n        \"pharmacist_id\": \"000001\",\n        \"promotion\": {\n            \"name\": \"Test for analyze 2\",\n            \"date_from\": \"2023-03-26\",\n            \"date_to\": \"2023-04-01\",\n            \"type\": {\n                \"name\": \"Бонус у відсотках\",\n                \"description\": \"Нарахувати бонус при купівлі SKU, у відсотку від роздрібної ціни в торговій точці\"\n            },\n            \"parameters\": {\n                \"bonus_percent\": {\n                    \"name\": \"bonus_percent\",\n                    \"description\": \"Розмір бонусу у % від роздрібної ціни\",\n                    \"value\": 20\n                }\n            }\n        },\n        \"customer\": {\n            \"first_name\": \"Anna\",\n            \"last_name\": \"Anna\",\n            \"middle_name\": \"Anna\",\n            \"email\": \"customer@gmail.com\",\n            \"city\": \"Полтава\",\n            \"phone\": \"380997654321\",\n            \"card_number\": \"969000000013\",\n            \"birthday\": \"08.08.1993\",\n            \"bonuses\": 9910.5\n        }\n    }\n}"},{"id":"4d4f2f76-c3ae-479c-a5bb-25cbe2a2cda0","name":"Analyze document before sell (not enough bonuses)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380990000000\",\n      \"card_number\": \"6758595050\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-02-10 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-before-sell"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer does not have declared amount of bonus\"\n}"},{"id":"cb77c1de-3953-43f7-b848-a4f33bb538d2","name":"Analyze document before sell (not found)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380990000000\",\n      \"card_number\": \"6758595050\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-02-10 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-before-sell"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are any promotion for this document\"\n}"},{"id":"69c755ed-7e5b-4bfb-bd83-0b91b99ad18d","name":"Analyze document before sell (error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380990000000\",\n      \"card_number\": \"6758595050\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-02-10 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-before-sell"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Server error\"\n}"}],"_postman_id":"5f1dd966-43bd-4157-a5d5-f4a37cd99afb"},{"name":"Analyze document after sell","id":"6271e6c0-944b-4331-b989-71ef5c4f8c79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"969\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist_id\": \"000001\",\n  \"customer\": {\n      \"phone\": \"380999808034\",\n      \"card_number\": \"969000000013\",\n       \"confirmation_code\": \"199928\",\n       \"amount_of_bonuses_to_write_off\": 8\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"1234\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-03-30 11:20\",\n    \"document.amount_of_cash\": 205,\n    \"document.amount_of_change_to_bonus\": 0.5,\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-after-sell","urlObject":{"path":["analyze-after-sell"],"host":["https://pharmapoint.ua/api/v1/promotion"],"query":[],"variable":[]}},"response":[{"id":"c72e59a8-bd4c-470f-86e0-f58f97da747b","name":"Analyze document after sell (success)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380999808034\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-03-28 11:20\",\n    \"document.amount_of_cash\": 205,\n    \"document.amount_of_change_to_bonus\": 0.5,\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-after-sell"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"document\": {\n            \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n            \"number\": \"223223\",\n            \"date\": \"2023-03-28 11:20\",\n            \"total\": 118.75,\n            \"total_initial\": 123.75,\n            \"bonus_to_write_off\": 5,\n            \"bonus_to_accrue\": 4.5,\n            \"bonus_to_accrue_from_change\": 0.5,\n            \"amount_of_cash\": 205,\n            \"amount_of_change\": 0,\n            \"content\": [\n                {\n                    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n                    \"goods_id\": \"1057426\",\n                    \"price_buy\": 22.5,\n                    \"price_retail\": 22.5,\n                    \"price_new\": null,\n                    \"discount\": null,\n                    \"bonus\": 4.5,\n                    \"quantity_part\": null\n                }\n            ]\n        },\n        \"promotion\": {\n            \"name\": \"Test for analyze 2\",\n            \"date_from\": \"2023-03-26\",\n            \"date_to\": \"2023-04-01\",\n            \"type\": {\n                \"name\": \"Бонус у відсотках\",\n                \"description\": \"Нарахувати бонус при купівлі SKU, у відсотку від роздрібної ціни в торговій точці\"\n            },\n            \"parameters\": {\n                \"bonus_percent\": {\n                    \"name\": \"bonus_percent\",\n                    \"description\": \"Розмір бонусу у % від роздрібної ціни\",\n                    \"value\": 20\n                }\n            }\n        },\n        \"pharmacist_id\": \"000001\",\n        \"customer\": {\n            \"first_name\": \"Anna\",\n            \"last_name\": \"Anna\",\n            \"middle_name\": \"Anna\",\n            \"email\": \"customer@gmail.com\",\n            \"city\": \"Полтава\",\n            \"phone\": \"380997654321\",\n            \"card_number\": \"969000000013\",\n            \"birthday\": \"08.08.1993\",\n            \"bonuses\": 20.77\n        },\n        \"message\": \"Re-attemt to acrrue bonuses. Bonuses already have accrued for this document.\",\n        \"code\": 400\n    }\n}"},{"id":"1131ba9c-cf35-4e65-8232-aaf46e5b6ec6","name":"Analyze document after sell (not found)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380990000000\",\n      \"card_number\": \"6758595050\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-02-10 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-after-sell"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"There are any promotion for this document\"\n}"},{"id":"618fcc26-0db2-4be2-88dc-f257a082f3ba","name":"Analyze document after sell (error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380999808034\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-03-28 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-after-sell"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Server error\"\n}"},{"id":"7b8f7aeb-def4-4233-a71e-a9d8a3d6b154","name":"Analyze document after sell (not enogh bonuses)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380999808034\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-03-28 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-after-sell"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer does not have declared amount of bonus\"\n}"},{"id":"ea83271b-a350-4698-b773-8d158998a0d7","name":"Analyze document after sell (success with conformation code)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"drugstore_id\": \"2326\",\n  \"cash_register_number\": \"7890\",\n  \"pharmacist\": {\n    \"id\": \"000001\",\n    \"full_name\": \"Test\",\n    \"email\": \"user@mail.ua\",\n    \"phone\": \"380990000000\"\n  },\n  \"customer\": {\n      \"phone\": \"380999808034\"\n  },\n  \"document\": {\n    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n    \"number\": \"223223\",\n    \"fiscal_number\": \"86960\",\n    \"date\": \"2023-03-28 11:20\",\n    \"content\": [\n      {\n        \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n        \"goods_id\": \"1057426\",\n        \"quantity\": 5.5,\n        \"price_buy\": 22.5,\n        \"price_retail\": 22.5\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/analyze-after-sell"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"document\": {\n            \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n            \"number\": \"22\",\n            \"date\": \"2023-03-30 11:20\",\n            \"total\": 118.75,\n            \"total_initial\": 123.75,\n            \"bonus_to_write_off\": 5,\n            \"bonus_to_accrue\": 4.5,\n            \"bonus_to_accrue_from_change\": 0.5,\n            \"amount_of_cash\": 205,\n            \"amount_of_change\": 0,\n            \"content\": [\n                {\n                    \"id\": \"f2a28abd-34d3-4ea1-9153-5beb50cd56ca\",\n                    \"goods_id\": \"1057426\",\n                    \"price_buy\": 22.5,\n                    \"price_retail\": 22.5,\n                    \"price_new\": null,\n                    \"quantity\": 5.5,\n                    \"discount\": null,\n                    \"bonus\": 4.5,\n                    \"quantity_part\": null\n                }\n            ]\n        },\n        \"pharmacist_id\": \"000001\",\n        \"promotion\": {\n            \"name\": \"Test for analyze 2\",\n            \"date_from\": \"2023-03-26\",\n            \"date_to\": \"2023-04-01\",\n            \"type\": {\n                \"name\": \"Бонус у відсотках\",\n                \"description\": \"Нарахувати бонус при купівлі SKU, у відсотку від роздрібної ціни в торговій точці\"\n            },\n            \"parameters\": {\n                \"bonus_percent\": {\n                    \"name\": \"bonus_percent\",\n                    \"description\": \"Розмір бонусу у % від роздрібної ціни\",\n                    \"value\": 20\n                }\n            }\n        },\n        \"customer\": {\n            \"first_name\": \"Anna\",\n            \"last_name\": \"Anna\",\n            \"middle_name\": \"Anna\",\n            \"email\": \"customer@gmail.com\",\n            \"city\": \"Полтава\",\n            \"phone\": \"380997654321\",\n            \"card_number\": \"969000000013\",\n            \"birthday\": \"08.08.1993\",\n            \"bonuses\": 9910.5\n        }\n    }\n}"}],"_postman_id":"6271e6c0-944b-4331-b989-71ef5c4f8c79"}],"id":"d62f5d86-d2e8-4b23-9cb6-693c4f19299d","_postman_id":"d62f5d86-d2e8-4b23-9cb6-693c4f19299d","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":true,"source":{"_postman_id":"90194131-1fd8-4406-8f49-eaf03daec358","id":"90194131-1fd8-4406-8f49-eaf03daec358","name":"Pharmapoint.ua Promotion API","type":"collection"}}},{"name":"WriteOffBonus","item":[{"name":"Send confirmation code to write off bonuses","id":"526f514a-e7f0-4a0f-8d81-980fe5ad1d7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"drugstore_id\": \"969\",\n    \"document\": {\n        \"number\": \"2525256\",\n        \"date\": \"2023-04-17 11:20\",\n        \"total\": 325\n    },\n    \"customer\": {\n        \"phone\": \"380997654321\",\n        \"card_number\": \"969000000013\"\n    },\n    \"bonus_to_write_off\": 5,\n    \"comments\": null,\n    \"type\": \"sms\" // can be (\"sms\", \"call\", null), or you may not use this field in the request\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/write-off-bonuses/confirmation-code","urlObject":{"path":["write-off-bonuses","confirmation-code"],"host":["https://pharmapoint.ua/api/v1/promotion"],"query":[],"variable":[]}},"response":[{"id":"e3b95040-df3c-4019-8aa8-3f1920a3a16d","name":"Send confirmation code to write off bonuses (200)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"drugstore_id\": \"969\",\n    \"document\": {\n        \"number\": \"2525256\",\n        \"date\": \"2023-04-17 11:20\",\n        \"total\": 325\n    },\n    \"customer\": {\n        \"phone\": \"380997654321\",\n        \"card_number\": \"969000000013\"\n    },\n    \"bonus_to_write_off\": 5,\n    \"comments\": null,\n    \"type\": \"sms\" // can be (\"sms\", \"call\", null), or you may not use this field in the request\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/write-off-bonuses/confirmation-code"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Confirmation code was sent\"\n}"},{"id":"ceaba834-0d6c-4842-ae18-6a027258643b","name":"Send confirmation code to write off bonuses (400)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"drugstore_id\": \"969\",\n    \"document\": {\n        \"number\": \"2525256\",\n        \"date\": \"2023-04-17 11:20\",\n        \"total\": 325\n    },\n    \"customer\": {\n        \"phone\": \"380999808034\",\n        \"card_number\": \"969000000013\"\n    },\n    \"bonus_to_write_off\": 5,\n    \"comments\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/write-off-bonuses/confirmation-code"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer does not have declared amount of bonus\"\n}"},{"id":"4d66c093-fde9-437b-a09f-7188aba5b494","name":"Send confirmation code to write off bonuses","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"drugstore_id\": \"969\",\n    \"document\": {\n        \"number\": \"2525256\",\n        \"date\": \"2023-04-17 11:20\",\n        \"total\": 325\n    },\n    \"customer\": {\n        \"phone\": \"380997654321\",\n        \"card_number\": \"969000000013\"\n    },\n    \"bonus_to_write_off\": 5,\n    \"comments\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/write-off-bonuses/confirmation-code"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bonuses will be written off without confirmation code\"\n}"}],"_postman_id":"526f514a-e7f0-4a0f-8d81-980fe5ad1d7c"}],"id":"908eeab6-c82e-4ada-841d-1202a8a1eff6","_postman_id":"908eeab6-c82e-4ada-841d-1202a8a1eff6","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":true,"source":{"_postman_id":"90194131-1fd8-4406-8f49-eaf03daec358","id":"90194131-1fd8-4406-8f49-eaf03daec358","name":"Pharmapoint.ua Promotion API","type":"collection"}}},{"name":"Customer","item":[{"name":"Search customer card (old)","id":"2e3bf969-ba35-46f6-a0f8-24b51dacccc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":false},"method":"GET","header":[],"url":"https://pharmapoint.ua/api/v1/promotion/customer/:drugstore_id/:number","urlObject":{"path":["customer",":drugstore_id",":number"],"host":["https://pharmapoint.ua/api/v1/promotion"],"query":[],"variable":[{"type":"any","value":"20045","key":"drugstore_id"},{"description":{"content":"<p>phone or card number</p>\n","type":"text/plain"},"type":"any","value":"380937876036","key":"number"}]}},"response":[{"id":"1c6009fe-36fa-4630-8701-1d93123d045e","name":"Search customer card by phone (old)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://pharmapoint.ua/api/v1/promotion/customer/:drugstore_id/:phone","host":["https://pharmapoint.ua/api/v1/promotion"],"path":["customer",":drugstore_id",":phone"],"variable":[{"key":"drugstore_id","value":"20045"},{"key":"phone","value":"380937876036"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"phone\": \"380937876036\",\n        \"last_name\": \"Литвин\",\n        \"first_name\": \"Татьяна\",\n        \"middle_name\": \"Ивановна\",\n        \"city_name\": null,\n        \"email\": null,\n        \"birthday\": \"23.10.1988\",\n        \"gender\": \"female\",\n        \"discount_card_number\": \"3809378760366\",\n        \"want_free_samples\": 0,\n        \"contact_via_phone\": 0,\n        \"contact_via_sms\": 0,\n        \"contact_via_email\": 0,\n        \"contact_via_messenger\": 0,\n        \"agree_terms_conditions\": 1,\n        \"phone_verified\": 0,\n        \"bonuses\": 0,\n        \"type\": {\n            \"id\": \"ded7f987-719c-41ac-ad53-fe26ab83490d\",\n            \"name\": \"Універсальна\"\n        },\n        \"address\": null,\n        \"address_post_code\": null,\n        \"address_flat\": null,\n        \"children\": [],\n        \"loyalty\": false,\n        \"loyalty_date\": null\n    }\n}"},{"id":"99168c10-05d1-4edf-bf3d-f73749d98756","name":"Search customer card by card number (old)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://pharmapoint.ua/api/v1/promotion/customer/:drugstore_id/:card_number","host":["https://pharmapoint.ua/api/v1/promotion"],"path":["customer",":drugstore_id",":card_number"],"variable":[{"key":"drugstore_id","value":"20045"},{"key":"card_number","value":"3809378760366"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"phone\": \"380937876036\",\n        \"last_name\": \"Литвин\",\n        \"first_name\": \"Татьяна\",\n        \"middle_name\": \"Ивановна\",\n        \"city_name\": null,\n        \"email\": null,\n        \"birthday\": \"23.10.1988\",\n        \"gender\": \"female\",\n        \"discount_card_number\": \"3809378760366\",\n        \"want_free_samples\": 0,\n        \"contact_via_phone\": 0,\n        \"contact_via_sms\": 0,\n        \"contact_via_email\": 0,\n        \"contact_via_messenger\": 0,\n        \"agree_terms_conditions\": 1,\n        \"phone_verified\": 0,\n        \"bonuses\": 0,\n        \"type\": {\n            \"id\": \"ded7f987-719c-41ac-ad53-fe26ab83490d\",\n            \"name\": \"Універсальна\"\n        },\n        \"address\": null,\n        \"address_post_code\": null,\n        \"address_flat\": null,\n        \"children\": [],\n        \"loyalty\": false,\n        \"loyalty_date\": null\n    }\n}"}],"_postman_id":"2e3bf969-ba35-46f6-a0f8-24b51dacccc2"},{"name":"Search customer card (new)","id":"33b15ef2-e3e4-4e76-88e9-1008af504920","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":false},"method":"GET","header":[],"url":"https://pharmapoint.ua/api/v1/promotion/customer/search/:number","urlObject":{"path":["customer","search",":number"],"host":["https://pharmapoint.ua/api/v1/promotion"],"query":[],"variable":[{"type":"any","value":"380937876036","key":"number"}]}},"response":[{"id":"3b53b9df-fbee-4582-b139-52b4a997064e","name":"Search customer card by phone (new)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://pharmapoint.ua/api/v1/promotion/customer/search/:number","host":["https://pharmapoint.ua/api/v1/promotion"],"path":["customer","search",":number"],"variable":[{"key":"number","value":"380937876036"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"phone\": \"380999808034\",\n        \"last_name\": \"Тест\",\n        \"first_name\": \"Анна\",\n        \"middle_name\": \"Тест\",\n        \"city_name\": \"Конотоп\",\n        \"email\": \"big.sasho@gmail.com\",\n        \"birthday\": \"16.07.1993\",\n        \"gender\": \"female\",\n        \"discount_card_number\": \"3809998080340\",\n        \"want_free_samples\": 1,\n        \"contact_via_phone\": 1,\n        \"contact_via_sms\": 1,\n        \"contact_via_email\": 1,\n        \"contact_via_messenger\": 1,\n        \"agree_terms_conditions\": 1,\n        \"phone_verified\": 1,\n        \"locked\": 1,\n        \"bonuses\": 0,\n        \"type\": {\n            \"id\": null,\n            \"name\": null\n        },\n        \"address\": null,\n        \"address_post_code\": null,\n        \"address_flat\": null,\n        \"children\": [],\n        \"loyalty\": false,\n        \"loyalty_date\": null\n    }\n}"},{"id":"9c6064bc-09d4-479a-ba4a-86d0eb928251","name":"Search customer card by card number (new)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://pharmapoint.ua/api/v1/promotion/customer/search/:number","host":["https://pharmapoint.ua/api/v1/promotion"],"path":["customer","search",":number"],"variable":[{"key":"number","value":"3809378760366"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"phone\": \"380999808034\",\n        \"last_name\": \"Тест\",\n        \"first_name\": \"Анна\",\n        \"middle_name\": \"Тест\",\n        \"city_name\": \"Конотоп\",\n        \"email\": \"big.sasho@gmail.com\",\n        \"birthday\": \"16.07.1993\",\n        \"gender\": \"female\",\n        \"discount_card_number\": \"3809998080340\",\n        \"want_free_samples\": 1,\n        \"contact_via_phone\": 1,\n        \"contact_via_sms\": 1,\n        \"contact_via_email\": 1,\n        \"contact_via_messenger\": 1,\n        \"agree_terms_conditions\": 1,\n        \"phone_verified\": 1,\n        \"locked\": 1,\n        \"bonuses\": 0,\n        \"type\": {\n            \"id\": null,\n            \"name\": null\n        },\n        \"address\": null,\n        \"address_post_code\": null,\n        \"address_flat\": null,\n        \"children\": [],\n        \"loyalty\": false,\n        \"loyalty_date\": null\n    }\n}"}],"_postman_id":"33b15ef2-e3e4-4e76-88e9-1008af504920"},{"name":"Update (create) customer card","id":"eb1f2617-8466-45a2-81b0-fa1cc3ad1986","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"phone\": \"380999808034\", //required\n        \"last_name\": \"Тест\", //required\n        \"first_name\": \"Анна\", //required\n        \"middle_name\": \"Тест\",\n        \"city_name\": \"Конотоп\",\n        \"address\": \"Test\",\n        \"address_index\": \"22066\",\n        \"address_flat\": \"12\",\n        \"email\": \"big.sasho@gmail.com\",\n        \"birthday\": \"1993-07-16\",\n        \"gender\": \"f\",\n        \"discount_card_number\": null,\n        \"want_free_samples\": true,\n        \"contact_via_phone\": true,\n        \"contact_via_sms\": true,\n        \"contact_via_email\": true,\n        \"contact_via_messenger\": true,\n        \"agree_terms_conditions\": true,\n        \"phone_verified\": false\n    }","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/customer","urlObject":{"path":["customer"],"host":["https://pharmapoint.ua/api/v1/promotion"],"query":[],"variable":[]}},"response":[{"id":"4a0d2851-8fa4-48cb-ba75-19b6e8749058","name":"Update customer card","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"phone\": \"380999808034\", //required\n        \"last_name\": \"Тест\", //required\n        \"first_name\": \"Анна\", //required\n        \"middle_name\": \"Тест\",\n        \"city_name\": \"Конотоп\",\n        \"address\": \"Test\",\n        \"address_index\": \"22066\",\n        \"address_flat\": \"12\",\n        \"email\": \"big.sasho@gmail.com\",\n        \"birthday\": \"1993-07-16\",\n        \"gender\": \"f\",\n        \"discount_card_number\": null,\n        \"want_free_samples\": true,\n        \"contact_via_phone\": true,\n        \"contact_via_sms\": true,\n        \"contact_via_email\": true,\n        \"contact_via_messenger\": true,\n        \"agree_terms_conditions\": true,\n        \"phone_verified\": false\n    }","options":{"raw":{"language":"json"}}},"url":"https://pharmapoint.ua/api/v1/promotion/customer"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"phone\": \"380999808034\",\n        \"last_name\": \"Тест\",\n        \"first_name\": \"Анна\",\n        \"middle_name\": \"Тест\",\n        \"city_name\": \"Конотоп\",\n        \"email\": \"big.sasho@gmail.com\",\n        \"birthday\": \"16.07.1993\",\n        \"gender\": \"female\",\n        \"discount_card_number\": \"3809998080340\",\n        \"want_free_samples\": 1,\n        \"contact_via_phone\": 1,\n        \"contact_via_sms\": 1,\n        \"contact_via_email\": 1,\n        \"contact_via_messenger\": 1,\n        \"agree_terms_conditions\": 1,\n        \"phone_verified\": 0,\n        \"bonuses\": 0,\n        \"type\": {\n            \"id\": null,\n            \"name\": null\n        },\n        \"address\": null,\n        \"address_post_code\": null,\n        \"address_flat\": null,\n        \"children\": [],\n        \"loyalty\": false,\n        \"loyalty_date\": null\n    }\n}"}],"_postman_id":"eb1f2617-8466-45a2-81b0-fa1cc3ad1986"},{"name":"Get verification code","id":"b5bf0f67-5b8b-4b86-8fc1-df93bbb6e3da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":false},"method":"GET","header":[],"url":"https://pharmapoint.ua/api/v1/promotion/customer/verification-code?phone=380999808034&type=sms","urlObject":{"path":["customer","verification-code"],"host":["https://pharmapoint.ua/api/v1/promotion"],"query":[{"key":"phone","value":"380999808034"},{"description":{"content":"<p>sms/call</p>\n","type":"text/plain"},"key":"type","value":"sms"}],"variable":[]}},"response":[{"id":"9d9a9030-1a65-4749-8f9a-db4a04115e6b","name":"Get verification code","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://pharmapoint.ua/api/v1/promotion/customer/verification-code?phone=380999808034&type=sms","host":["https://pharmapoint.ua/api/v1/promotion"],"path":["customer","verification-code"],"query":[{"key":"phone","value":"380999808034"},{"key":"type","value":"sms","description":"sms/call"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"sms\",\n    \"code\": \"221145\",\n    \"phone\": \"380999808034\",\n    \"expired_at\": \"2025-02-28T11:23:27.879011Z\"\n}"},{"id":"6efa4e84-f3ab-45cf-ae79-34252722e94f","name":"Get verification code (error)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://pharmapoint.ua/api/v1/promotion/customer/verification-code?phone=380999808034&type=sms","host":["https://pharmapoint.ua/api/v1/promotion"],"path":["customer","verification-code"],"query":[{"key":"phone","value":"380999808034"},{"key":"type","value":"sms","description":"sms/call"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"Lic id does not exists for client\"\n}"},{"id":"4c4c276a-e991-4fa3-81e6-f36959bf7386","name":"Get verification code (error) Copy","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://pharmapoint.ua/api/v1/promotion/customer/verification-code?phone=380999808034","host":["https://pharmapoint.ua/api/v1/promotion"],"path":["customer","verification-code"],"query":[{"key":"phone","value":"380999808034"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"Phone and type is required\"\n}"}],"_postman_id":"b5bf0f67-5b8b-4b86-8fc1-df93bbb6e3da"}],"id":"8575151d-402b-4b2d-a5c6-b32f81447b28","_postman_id":"8575151d-402b-4b2d-a5c6-b32f81447b28","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":true,"source":{"_postman_id":"90194131-1fd8-4406-8f49-eaf03daec358","id":"90194131-1fd8-4406-8f49-eaf03daec358","name":"Pharmapoint.ua Promotion API","type":"collection"}}},{"name":"Letter","item":[{"name":"Push letter sent status","id":"98bc821f-3727-4284-a33b-e6216176c3ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":true,"source":{"_postman_id":"90194131-1fd8-4406-8f49-eaf03daec358","id":"90194131-1fd8-4406-8f49-eaf03daec358","name":"Pharmapoint.ua Promotion API","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"98bc821f-3727-4284-a33b-e6216176c3ed"}],"id":"c56c5ffc-b5d4-452e-8a5d-d5bfe3d603cd","_postman_id":"c56c5ffc-b5d4-452e-8a5d-d5bfe3d603cd","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]},"isInherited":true,"source":{"_postman_id":"90194131-1fd8-4406-8f49-eaf03daec358","id":"90194131-1fd8-4406-8f49-eaf03daec358","name":"Pharmapoint.ua Promotion API","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"API-Key"},{"key":"value","value":"api_key"}]}},"event":[{"listen":"prerequest","script":{"id":"a20dbf03-32d5-4f38-8c86-2bf13459e195","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9c8bfb47-12e5-455c-b5ff-390f37e00337","type":"text/javascript","exec":[""]}}],"variable":[{"key":"endpoint","value":"https://pharmapoint.ua/api/v1/promotion","type":"string"},{"key":"api_key_header_name","value":"API-Key","type":"string"},{"key":"api_key","value":"api_key","type":"string"}]}