{"info":{"name":"Quick Qr 2.0.0","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"baseUrl","value":"https://quickqr.qpay.mn"},{"key":"apiKey","value":""}],"item":[{"name":"Token авах","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/auth/token","host":["{{baseUrl}}"],"path":["v2","auth","token"]},"body":{"mode":"raw","raw":"{\n  \"terminal_id\": \"95000059\"\n}"}}},{"name":"Token сунгах","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v2/auth/refresh","host":["{{baseUrl}}"],"path":["v2","auth","refresh"]}}},{"name":"Хот аймгийн жагсаалт авах","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v2/aimaghot","host":["{{baseUrl}}"],"path":["v2","aimaghot"]}}},{"name":"Сум дүүргийн жагсаалт авах","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v2/sumduureg/{city_code}","host":["{{baseUrl}}"],"path":["v2","sumduureg","{city_code}"]}}},{"name":"Байгууллагаар мерчант үүсгэх","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/merchant/company","host":["{{baseUrl}}"],"path":["v2","merchant","company"]},"body":{"mode":"raw","raw":"{\n  \"register_number\": \"6691374\",\n  \"company_name\": \"TEST LLC\",\n  \"name\": \"Мерчант12\",\n  \"mcc_code\": \"5311\",\n  \"city\": \"11000\",\n  \"district\": \"13000\",\n  \"address\": \"6 хороо 14-10\",\n  \"phone\": \"99112210\",\n  \"email\": \"admin@gmail.com\"\n}"}}},{"name":"Байгууллагын мерчант мэдээлэл шинэчлэх","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/merchant/company/{merchant_id}","host":["{{baseUrl}}"],"path":["v2","merchant","company","{merchant_id}"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"object\",\n  \"required\": [\n    \"register_number\",\n    \"company_name\",\n    \"name\",\n    \"mcc_code\",\n    \"city\",\n    \"district\",\n    \"address\",\n    \"phone\",\n    \"email\"\n  ],\n  \"properties\": {\n    \"owner_first_name\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Эзэмшигчийн нэр\"\n    },\n    \"owner_last_name\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Эзэмшигчийн овог\"\n    },\n    \"owner_register_no\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Эзэмшигчийн регистрийн дугаар\",\n      \"example\": \"УЗ96021105\"\n    },\n    \"register_number\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Байгууллагын регистрийн дугаар\",\n      \"example\": \"6691374\"\n    },\n    \"company_name\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Байгууллагын нэр\",\n      \"example\": \"TEST LLC\"\n    },\n    \"name\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Бизнесийн нэр (монголоор)\",\n      \"example\": \"Мерчант12\"\n    },\n    \"name_eng\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Бизнесийн нэр (англиар)\",\n      \"example\": \"MERCHANT12\"\n    },\n    \"mcc_code\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"MCC код. Боломжит кодуудыг `mcc_code` sheet-ээс харна уу.\",\n      \"example\": \"5311\"\n    },\n    \"city\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Хот/аймгийн код. `/v2/aimaghot`-аас авна.\",\n      \"example\": \"11000\"\n    },\n    \"district\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Сум/дүүргийн код. `/v2/sumduureg/:city_code`-аас авна.\",\n      \"example\": \"13000\"\n    },\n    \"address\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Дэлгэрэнгүй хаяг\",\n      \"example\": \"6 хороо 14-10\"\n    },\n    \"phone\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Утасны дугаар\",\n      \"example\": \"99112210\"\n    },\n    \"email\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"И-мэйл хаяг\",\n      \"example\": \"admin@gmail.com\"\n    },\n    \"location_lat\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"GPS байршлын өргөрөг\"\n    },\n    \"location_lng\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"GPS байршлын уртраг\"\n    },\n    \"max_qr_account_count\": {\n      \"type\": \"number\",\n      \"description\": \"Нэг мерчантад зөвшөөрөгдөх QR дансны дээд тоо\"\n    }\n  }\n}"}}},{"name":"Хувь хүнээр мерчант үүсгэх","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/merchant/person","host":["{{baseUrl}}"],"path":["v2","merchant","person"]},"body":{"mode":"raw","raw":"{\n  \"register_number\": \"УЗ96021105\",\n  \"first_name\": \"Ганзул\",\n  \"last_name\": \"Гантулга\",\n  \"business_name\": \"Мерчант12\",\n  \"mcc_code\": \"5311\",\n  \"city\": \"11000\",\n  \"district\": \"13000\",\n  \"address\": \"6 хороо 14-10\",\n  \"phone\": \"99112210\",\n  \"email\": \"admin@gmail.com\"\n}"}}},{"name":"Хувь хүний мерчант мэдээлэл шинэчлэх","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/merchant/person/{merchant_id}","host":["{{baseUrl}}"],"path":["v2","merchant","person","{merchant_id}"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"object\",\n  \"required\": [\n    \"register_number\",\n    \"first_name\",\n    \"last_name\",\n    \"business_name\",\n    \"mcc_code\",\n    \"city\",\n    \"district\",\n    \"address\",\n    \"phone\",\n    \"email\"\n  ],\n  \"properties\": {\n    \"register_number\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Иргэний регистрийн дугаар\",\n      \"example\": \"УЗ96021105\"\n    },\n    \"first_name\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Нэр\",\n      \"example\": \"Ганзул\"\n    },\n    \"last_name\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Овог\",\n      \"example\": \"Гантулга\"\n    },\n    \"business_name\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Бизнесийн нэр (монголоор)\",\n      \"example\": \"Мерчант12\"\n    },\n    \"business_name_eng\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Бизнесийн нэр (англиар)\",\n      \"example\": \"MERCHANT12\"\n    },\n    \"mcc_code\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"MCC код\",\n      \"example\": \"5311\"\n    },\n    \"city\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Хот/аймгийн код. `/v2/aimaghot`-аас авна.\",\n      \"example\": \"11000\"\n    },\n    \"district\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Сум/дүүргийн код. `/v2/sumduureg/:city_code`-аас авна.\",\n      \"example\": \"13000\"\n    },\n    \"address\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Дэлгэрэнгүй хаяг\",\n      \"example\": \"6 хороо 14-10\"\n    },\n    \"phone\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"Утасны дугаар\",\n      \"example\": \"99112210\"\n    },\n    \"email\": {\n      \"type\": \"string\",\n      \"maxLength\": 255,\n      \"description\": \"И-мэйл хаяг\",\n      \"example\": \"admin@gmail.com\"\n    },\n    \"max_qr_account_count\": {\n      \"type\": \"number\",\n      \"description\": \"Нэг мерчантад зөвшөөрөгдөх QR дансны дээд тоо\"\n    }\n  }\n}"}}},{"name":"Мерчант мэдээлэл авах","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v2/merchant/{merchant_id}","host":["{{baseUrl}}"],"path":["v2","merchant","{merchant_id}"]}}},{"name":"Мерчант устгах","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v2/merchant/{merchant_id}","host":["{{baseUrl}}"],"path":["v2","merchant","{merchant_id}"]}}},{"name":"Мерчантын жагсаалт авах","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/merchant/list","host":["{{baseUrl}}"],"path":["v2","merchant","list"]},"body":{"mode":"raw","raw":"{\n  \"offset\": {\n    \"page_number\": 1,\n    \"page_limit\": 10\n  }\n}"}}},{"name":"Нэхэмжлэх үүсгэх","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/invoice","host":["{{baseUrl}}"],"path":["v2","invoice"]},"body":{"mode":"raw","raw":"{\n  \"merchant_id\": \"465d3e33-4f95-461a-ac1b-c24ab095af0a\",\n  \"amount\": 100,\n  \"currency\": \"MNT\",\n  \"description\": \"Бараааний төлбөр\",\n  \"mcc_code\": \"5812\",\n  \"callback_url\": \"https://notify.example.mn/payment\",\n  \"bank_accounts\": [\n    {\n      \"account_bank_code\": \"050000\",\n      \"account_number\": \"5016271526\",\n      \"account_name\": \"Тест ХХК\",\n      \"is_default\": true\n    }\n  ]\n}"}}},{"name":"Нэхэмжлэх харах","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v2/invoice/{invoice_id}","host":["{{baseUrl}}"],"path":["v2","invoice","{invoice_id}"]}}},{"name":"Нэхэмжлэх цуцлах","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v2/invoice/{invoice_id}","host":["{{baseUrl}}"],"path":["v2","invoice","{invoice_id}"]}}},{"name":"Төлбөр шалгах","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v2/payment/check","host":["{{baseUrl}}"],"path":["v2","payment","check"]},"body":{"mode":"raw","raw":"{\n  \"invoice_id\": \"d50f49f2-9032-4a74-8929-530531f28f63\"\n}"}}}]}