swagger: '2.0' info: description: The madapi-mtn-bss-pin-management API is supplimental to the TMF suite of products version: '1.0' title: madapi-mtn-bss-pin-management termsOfService: urn:tos contact: {} license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0 host: api.mtn.com basePath: /tmf-api/productcatalog/v1 schemes: - https consumes: - application/json;charset=utf-8 produces: - application/json;charset=utf-8 securityDefinitions: ApiKeyAuth: type: "apiKey" name: "X-API-Key" in: "header" OAuth2: type: oauth2 flow: application tokenUrl: https://api.mtn.com/v1/oauth/access_token tags: - name: Pin-Management-controller description: User Authentication Service Controller paths: /selfReset: post: tags: - Pin-Management-controller summary: Reset credential using OTP validation description: Reset a user pin using OTP operationId: loginMyMtnUsingPOST consumes: - application/json produces: - application/json parameters: - name: x-country-code in: header description: country Code required: false type: string - name: customerId in: query description: username required: true type: string - name: otp in: header description: otp required: true type: string - name: newSecret in: header description: secret required: true type: string security: - Bearer: [] responses: '200': description: OK schema: $ref: '#/definitions/LoginDetail' '401': description: Unauthorized schema: $ref: '#/definitions/GetOtpDetail' '403': description: Forbidden schema: $ref: '#/definitions/GetOtpDetail' '404': description: Not Found schema: $ref: '#/definitions/GetOtpDetail' '500': description: Server Error schema: $ref: '#/definitions/GetOtpDetail' deprecated: false /user/otp: post: tags: - Pin-Management-controller summary: Request OTP for reset description: Get OTP for to be used in restting pin/password operationId: getOTPUsingPOST consumes: - application/json produces: - application/json parameters: - name: x-country-code in: header description: Country Code required: false type: string - name: loginAcct in: query description: Username required: true type: string security: - Bearer: [] responses: '200': description: OK schema: $ref: '#/definitions/GetOtpDetail' '401': description: Unauthorized schema: $ref: '#/definitions/GetOtpDetail' '403': description: Forbidden schema: $ref: '#/definitions/GetOtpDetail' '404': description: Not Found schema: $ref: '#/definitions/GetOtpDetail' '500': description: Server Error schema: $ref: '#/definitions/GetOtpDetail' deprecated: false definitions: GetOtpDetail: type: object properties: resultCode: type: string resultDescription: type: string statusCode: type: string title: GetOtpDetail IResponseCode: type: object title: IResponseCode Link: type: object properties: deprecation: type: string xml: name: deprecation attribute: true wrapped: false href: type: string xml: name: href attribute: true wrapped: false hreflang: type: string xml: name: hreflang attribute: true wrapped: false media: type: string xml: name: media attribute: true wrapped: false rel: type: string xml: name: rel attribute: true wrapped: false templated: type: boolean title: type: string xml: name: title attribute: true wrapped: false type: type: string xml: name: type attribute: true wrapped: false title: Link LoginDataDetail: type: object properties: id: type: string message: type: string title: LoginDataDetail LoginDetail: type: object properties: resultCode: type: string resultDescription: type: string statusCode: type: string title: LoginDetail