{"openapi":"3.0.1","info":{"title":"AMS-UAT","version":"1.0.0"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/jist/abc01/1.0.0"},{"url":"/"}],"security":[{"default":[]}],"paths":{"/openapi/ams/login":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Basic e11c7916-967b-11eb-a8b3-0242ac130003"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loginBody"}}},"required":true},"responses":{"200":{"description":"Success. OTP True.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/loginResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/getAgentOffer":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getAgentOfferBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/getAgentOfferResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/createAgent":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"openHours":{"type":"array","items":{"type":"object","properties":{"openHours":{"type":"object","properties":{"timeFrom":{"type":"string"},"timeTo":{"type":"string"}}},"day":{"type":"string"},"status":{"type":"boolean"}}}},"country":{"type":"string"},"note":{"type":"string"},"bankLinkageForm":{"type":"array","items":{"type":"string"}},"gender":{"type":"string"},"phone2":{"type":"string"},"ownerInfo":{"type":"object","properties":{"country":{"type":"string"},"fatherName":{"type":"string"},"address":{"type":"string"},"province":{"type":"string"},"district":{"type":"string"},"motherName":{"type":"string"},"township":{"type":"string"}}},"mcc":{"type":"string"},"openHoursType":{"type":"string"},"long":{"type":"string"},"agreementContract":{"type":"array","items":{"type":"string"}},"offer":{"type":"string"},"passport":{"type":"object","properties":{}},"ownerName":{"type":"string"},"province":{"type":"string"},"contactNumber":{"type":"string"},"email":{"type":"string"},"lat":{"type":"string"},"businessDocuments":{"type":"array","items":{"type":"string"}},"kycType":{"type":"string"},"locationInputType":{"type":"string"},"introducerDetail":{"type":"object","properties":{"type":{"type":"string"}}},"oldNric":{"type":"string"},"passportInfo":{"type":"object","properties":{}},"nricBack":{"type":"string"},"address":{"type":"string"},"bankAccountOpenForm":{"type":"array","items":{"type":"string"}},"shopImages":{"type":"array","items":{"type":"string"}},"birth":{"type":"string"},"avatar":{"type":"string"},"nric":{"type":"object","properties":{"number":{"type":"string"},"code":{"type":"integer"},"name":{"type":"string"},"type":{"type":"string"}}},"nricFront":{"type":"string"},"nationality":{"type":"string"},"phone":{"type":"string"},"district":{"type":"string"},"name":{"type":"string"},"maritalStatus":{"type":"string"},"township":{"type":"string"}}},"examples":{"0":{"value":"{\r\n  \"shopImages\": [\r\n    \"Uploads/agent/1fb5ca17-6e48-4385-b020-4a13ce26fd60.png\"\r\n  ],\r\n  \"ownerInfo\": {\r\n    \"country\": \"606bc29b5be128bfe08307ba\",\r\n    \"motherName\": \"Mother Name\",\r\n    \"fatherName\": \"Father Name\",\r\n    \"province\": \"611744dd7573db66d3557fdb\",\r\n    \"district\": \"611744f57573db66d3557ff5\",\r\n    \"township\": \"6117451c7573db66d3558056\",\r\n    \"address\": \"hanoi\"\r\n  },\r\n  \"introducerDetail\": {\r\n    \"type\": \"self\"\r\n  },\r\n  \"gender\": \"Male\",\r\n  \"maritalStatus\": \"single\",\r\n  \"nric\": {\r\n    \"code\": 2,\r\n    \"name\": \"DaMaHsa\",\r\n    \"type\": \"P\",\r\n    \"number\": \"456789\"\r\n  },\r\n  \"passport\": {},\r\n  \"oldNric\": \"\",\r\n  \"bankLinkageForm\": [\r\n    \"Uploads/agent/a0fc6a89-4e3b-4d93-82b0-f98f9a9889e1.png\"\r\n  ],\r\n  \"bankAccountOpenForm\": [\r\n    \"Uploads/agent/55b4d5fb-de04-491a-ab7f-c93176c6fce7.png\"\r\n  ],\r\n  \"openHoursType\": \"customHour\",\r\n  \"openHours\": [\r\n    {\r\n      \"day\": \"Monday\",\r\n      \"status\": true,\r\n      \"openHours\": {\r\n        \"timeFrom\": \"09:00 AM\",\r\n        \"timeTo\": \"09:00 PM\"\r\n      }\r\n    },\r\n    {\r\n      \"day\": \"Tuesday\",\r\n      \"status\": true,\r\n      \"openHours\": {\r\n        \"timeFrom\": \"09:00 AM\",\r\n        \"timeTo\": \"09:00 PM\"\r\n      }\r\n    },\r\n    {\r\n      \"day\": \"Wednesday\",\r\n      \"status\": true,\r\n      \"openHours\": {\r\n        \"timeFrom\": \"09:00 AM\",\r\n        \"timeTo\": \"09:00 PM\"\r\n      }\r\n    },\r\n    {\r\n      \"day\": \"Thursday\",\r\n      \"status\": true,\r\n      \"openHours\": {\r\n        \"timeFrom\": \"09:00 AM\",\r\n        \"timeTo\": \"09:00 PM\"\r\n      }\r\n    },\r\n    {\r\n      \"day\": \"Friday\",\r\n      \"status\": true,\r\n      \"openHours\": {\r\n        \"timeFrom\": \"09:00 AM\",\r\n        \"timeTo\": \"09:00 PM\"\r\n      }\r\n    },\r\n    {\r\n      \"day\": \"Saturday\",\r\n      \"status\": false,\r\n      \"openHours\": {\r\n        \"timeFrom\": \"-\",\r\n        \"timeTo\": \"-\"\r\n      }\r\n    },\r\n    {\r\n      \"day\": \"Sunday\",\r\n      \"status\": false,\r\n      \"openHours\": {\r\n        \"timeFrom\": \"-\",\r\n        \"timeTo\": \"-\"\r\n      }\r\n    }\r\n  ],\r\n  \"kycType\": \"newNric\",\r\n  \"locationInputType\": \"byInput\",\r\n  \"country\": \"606bc29b5be128bfe08307ba\",\r\n  \"phone\": \"0987654698\",\r\n  \"ownerName\": \"Ownertest\",\r\n  \"birth\": \"2000-10-18T00:00:00.000Z\",\r\n  \"nationality\": \"Nationality\",\r\n  \"phone2\": \"0987654321\",\r\n  \"passportInfo\": {},\r\n  \"name\": \"TestAgentBusiness\",\r\n  \"mcc\": \"611748797573db66d35583b9\",\r\n  \"offer\": \"606e7213a7ee7364996f1e04\",\r\n  \"email\": \"testemail@gmail.com\",\r\n  \"contactNumber\": \"0987654321\",\r\n  \"province\": \"611744dd7573db66d3557fdb\",\r\n  \"district\": \"611744f57573db66d3557ff5\",\r\n  \"township\": \"6117451c7573db66d3558056\",\r\n  \"address\": \"hanoi\",\r\n  \"lat\": \"45\",\r\n  \"long\": \"89\",\r\n  \"note\": \"note abcde\",\r\n  \"avatar\": \"Uploads/agent/a88c5f36-5ec0-4969-bcab-a6437e7fafa2.png\",\r\n  \"nricFront\": \"Uploads/agent/673a5a30-9479-4adc-87b2-9dea1366477e.png\",\r\n  \"nricBack\": \"Uploads/agent/caa909fa-f00c-4879-8bd5-63269625bb5c.png\",\r\n  \"agreementContract\": [\r\n    \"Uploads/agent/6704447f-e92e-49b4-b84c-264220f94813.png\"\r\n  ],\r\n  \"businessDocuments\": [\r\n    \"Uploads/agent/8ab66145-e7c1-4fd4-919f-71b1d7607323.png\"\r\n  ]\r\n}"}}}}},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/createAgentResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/updateAgent":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/updateAgentBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/updateAgentResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/getBusinessOffer":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getBusinessOfferBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/getBusinessOfferResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/createBusinessAccount":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/createBusinessAccountBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/createBusinessAccountResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/updateBusinessAccount":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/updateBusinessAccountBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/updateBusinessAccountResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/getMerchantOffer":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getMerchantOfferBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/getMerchantOfferResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/createMerchant":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/createMerchantBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/createMerchantResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}},"/openapi/ams/updateMerchant":{"post":{"tags":["Login"],"summary":"Login","parameters":[{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer f4892203-6b1f-4ac8-9506-1a3b9bac2691"}}],"requestBody":{"description":"Raw Body Data Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/updateMerchantBody"}}},"required":true},"responses":{"200":{"description":"Success.","content":{"*/*":{"schema":{"$ref":"#/components/schemas/updateMerchantResult"}}}}},"security":[{"default":[]}],"x-auth-type":"Application & Application User","x-throttling-tier":"Unlimited","x-wso2-application-security":{"security-types":["oauth2"],"optional":false}}}},"components":{"schemas":{"loginBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"loginResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"getAgentOfferBody":{"required":["code","phone"],"type":"object"},"getAgentOfferResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"createAgentBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"createAgentResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"updateAgentBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"updateAgentResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"getBusinessOfferBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"getBusinessOfferResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"createBusinessAccountBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"createBusinessAccountResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"updateBusinessAccountBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"updateBusinessAccountResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"getMerchantOfferBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"getMerchantOfferResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"createMerchantBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"createMerchantResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}},"updateMerchantBody":{"required":["code","phone"],"type":"object","properties":{"code":{"type":"string","example":"ducle"},"phone":{"type":"string","example":"09406569888"}}},"updateMerchantResult":{"type":"object","properties":{"err":{"type":"integer","format":"int32","example":200},"message":{"type":"string","format":"int32","example":"Success"},"data":{"type":"object","properties":{"token":{"type":"string","example":"f4892203-6b1f-4ac8-9506-1a3b9bac2691"},"expiredAt":{"type":"string","example":"2021-01-06T17:30:00.000+0000"}}}}}},"parameters":{"basicTokenSubscriber":{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Basic hQCOKs75uoYxakySqIA7qrjzdj2Z9PYn"}},"bearerTokenTemp":{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer 680e8760-7edd-4105-9f6b-7d2bbde181fc"}},"bearerToken":{"name":"Authorization","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"Bearer 7f92dab7-c5e4-445e-9ba4-603b5030c7be"}},"Accept-Language":{"name":"Accept-Language","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"en"}},"Content-Type":{"name":"Content-Type","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/json"}},"Content-Type-form-data":{"name":"Content-Type","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"multipart/form-data"}},"Content-Type-xwwwf":{"name":"Content-Type","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/x-www-form-urlencoded"}}},"securitySchemes":{"default":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://test.com","scopes":{}}}}}},"x-wso2-auth-header":"Token","x-wso2-cors":{"corsConfigurationEnabled":false,"accessControlAllowOrigins":["*"],"accessControlAllowCredentials":false,"accessControlAllowHeaders":["authorization","Access-Control-Allow-Origin","Content-Type","SOAPAction","apikey","Internal-Key"],"accessControlAllowMethods":["GET","PUT","POST","DELETE","PATCH","OPTIONS"]},"x-wso2-production-endpoints":{"urls":["https://uatv1-api-internal.momoney.com.mm"],"type":"http"},"x-wso2-sandbox-endpoints":{"urls":["https://uatv1-api-internal.momoney.com.mm"],"type":"http"},"x-wso2-basePath":"/uat/1.0.0","x-wso2-transports":["http","https"],"x-wso2-response-cache":{"enabled":false,"cacheTimeoutInSeconds":300}}