swagger: '2.0' info: title: Mastercard Bill Payment Validator Account Opening Widgets API description: This service is provided on behalf of the Mastercard Remote Payment and Presentment (RPPS) Bill Payment Processing Network, which supports consumer to business "push" bill payments (i.e. those which are not funded by debit/credit card transactions) in the U.S. version: '1.0' x-artifactId: billpay-api contact: name: Bill Pay Development Support email: Bill_Pay_Development_Support@mastercard.com host: sandbox.api.mastercard.com basePath: /billpayAPI/v1 schemes: - https consumes: - application/json produces: - application/json tags: - name: Widgets paths: /widgets/access-tokens: get: tags: - Widgets description: Generate a new access token for the vendor site. summary: Generate Access Token operationId: generateBenefitsAccessToken responses: '200': $ref: '#/components/responses/AccessToken' '401': $ref: '#/components/responses/UnauthorizedError' components: responses: UnauthorizedError: description: Unauthorized - Access Not Granted content: application/json: schema: $ref: '#/components/schemas/ErrorWrapper' examples: UnauthorizedExample: $ref: '#/components/examples/UnauthorizedExample' AccessToken: description: Returns Token for cardholder content: application/json: schema: $ref: '#/components/schemas/BenefitsAccessToken' schemas: Errors: description: Object that contains the list of errors type: object required: - Error properties: Error: $ref: '#/components/schemas/ErrorList' ErrorWrapper: description: A top level object for errors type: object required: - Errors properties: Errors: $ref: '#/components/schemas/Errors' ErrorList: description: The list of errors type: array minItems: 1 items: $ref: '#/components/schemas/Error' BenefitsAccessToken: type: object properties: accessToken: description: The String (text) representation of Benefits Access Token type: string example: hereeyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyMDIzMTIxMjA5MjMzNC1zdGFnZS1iZW5lZml0cy1hY2Nlc3MtbWFzdGVyY2FyZC1jb20iLCJ0ZXN0IjoidGVzdCIsImV4cCI6MTcwNTkxNjUzNiwiaWF0IjoxNzA1OTEyOTM2fQ.6NGFRgiy_7TayB366Eupz-xmro6Sb9kpwLY35IHoQDs Error: description: A single error type: object properties: Source: type: string minLength: 0 maxLength: 200 description: Information about where the error happened example: ELIGIBILITY_BENEFITS_API ReasonCode: type: string minLength: 0 maxLength: 200 description: An error code example: BAD_REQUEST Description: type: string minLength: 0 maxLength: 10000 description: A description of the error example: We couldn't handle your request Recoverable: type: boolean description: Indicates if the request can be presented again for processing example: false Details: type: string minLength: 0 maxLength: 10000 description: More details about the error example: Invalid JSON payload examples: UnauthorizedExample: value: Errors: Error: - Source: Gateway ReasonCode: DECLINED Description: Unauthorized - Access Not Granted Recoverable: false Details: null