{"openapi":"3.0.0","info":{"title":"API Documentation","version":"1.0.0","description":"Receive Simah Feedback for SME"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/emkanfinance/SimahFeedbackStatus/1.0.0"},{"url":"https://ng.emkanfinance.com.sa/edmsservice/webapi/bpm/"},{"url":"https://ng.emkanfinance.com.sa/wbssmecc/webapi/bpm/"}],"paths":{"/ReceiveSimahIndFeedback":{"post":{"summary":"Getting feedback to check if customer is rejected for CC","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveSimahIndFeedbackRequest"}}}},"responses":{"200":{"description":"Successfully processed the data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest400"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse500"}}}}}}},"/SimahCommFeedback":{"post":{"summary":"Getting feedback of callback for POS/Ecom/VAT","operationId":"SimahCommFeedbackUsingPOST","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveSimahIndFeedbackRequest"}}}},"responses":{"200":{"description":"Successfully processed the data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest400"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest400"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse500"}}}}}}},"/SimahIndFeedback":{"post":{"summary":"Getting feedback of callback for POS/Ecom/VAT","operationId":"SimahIndFeedbackUsingPOST","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveSimahIndFeedbackRequest"}}}},"responses":{"200":{"description":"Successfully processed the data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest400"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest400"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse500"}}}}}}}},"components":{"schemas":{"SuccessResponse":{"type":"object","required":["applicationNo","resultCode"],"properties":{"applicationNo":{"type":"string","example":"WF-000000003272-SMECC"},"resultCode":{"type":"string","example":"0"}}},"BadRequest400":{"type":"object","properties":{"description":{"type":"string","example":"string"},"resultCode":{"type":"string","example":"string"}}},"ErrorResponse500":{"type":"object","properties":{"description":{"type":"string","example":"string"},"resultCode":{"type":"string","example":"String"}}},"ReceiveSimahIndFeedbackRequest":{"type":"object","required":["applicationNo","feedbackStatus"],"properties":{"applicationNo":{"type":"string"},"feedbackStatus":{"type":"string","enum":[0,1],"example":"0","description":"Feedback status code:\n0 - User rejects the application\n1 - User accepts and proceeds to upload documents (Newgen flow)"}}}}}}