--- swagger: "2.0" info: x-ibm-name: mbway-qrcode-purchase-sb title: MB Way QRCode Purchase (Sandbox) version: 2.0.0 description: "" schemes: - https basePath: /spgbusiness/v1/qrcode consumes: - application/json - text/plain produces: - application/json - text/plain securityDefinitions: api-key: type: apiKey description: Unique key generated for each client app. in: header name: X-IBM-Client-Id security: - api-key: [] x-ibm-configuration: testable: true enforced: true phase: realized paths: /generate: post: responses: 200: description: 200 OK schema: $ref: '#/definitions/OutGenerate' operationId: generate parameters: - name: input required: true in: body schema: $ref: '#/definitions/InGenerate' /inquiry: post: responses: 200: description: 200 OK schema: $ref: '#/definitions/OutInquiry' operationId: inquiry parameters: - name: input required: true in: body schema: $ref: '#/definitions/InInquiry' /payment: post: responses: 200: description: 200 OK schema: $ref: '#/definitions/OutPayment' operationId: payment parameters: - name: input required: true in: body schema: $ref: '#/definitions/InPayment' definitions: Amount: properties: value: type: number description: Amount of the transaction. example: 23.450000 format: double currency: type: string description: Currency used in the transaction. example: EUR additionalProperties: false description: Object that defines an amount. ExtendedInfo: type: object properties: key: type: string example: PhoneBrand value: type: string example: IPhone description: Key value tuple. Info: properties: extendedInfo: type: array items: $ref: '#/definitions/ExtendedInfo' description: Key Value tuple array. additionalProperties: false description: Object that defines the transaction additional information InGenerate: properties: requestGenerate: $ref: '#/definitions/RequestGenerate' description: Object that defines the QR Code generate request parameters. Check the RequestGenerate definition. additionalProperties: false InInquiry: properties: requestInquiry: description: Object that defines the QR Code inquiry request parameters. Check the RequestInquiry definition. $ref: '#/definitions/RequestInquiry' additionalProperties: false InPayment: properties: requestPayment: description: Object that defines the QR Code payment request parameters. Check the RequestPayment definition. $ref: '#/definitions/RequestPayment' additionalProperties: false Merchant: properties: terminalId: type: integer example: "21451" description: Number of the merchant pos Id. format: int32 channel: type: string description: Type of channel used by the merchant. example: web merchantTransactionId: type: string description: Unique id used by the merchant. example: 863b730df285443f9a60ca404e0085fd1234 additionalProperties: false description: Object that defines a Merchant. OutGenerate: properties: responseGenerate: description: Object that defines the QR Code generate response parameters. Check the ResponseGenerate definition. $ref: '#/definitions/ResponseGenerate' additionalProperties: false OutInquiry: properties: responseInquiry: description: Object that defines the QR Code inquiry response parameters. Check the ResponseInquiry definition. $ref: '#/definitions/ResponseInquiry' additionalProperties: false OutPayment: properties: responsePayment: description: Object that defines the QR Code payment response parameters. Check the ResponsePayment definition. $ref: '#/definitions/ResponsePayment' additionalProperties: false RequestGenerate: properties: transactionToken: type: string description: Unique id identify of the transaction. example: 42f59038f3f14e618d091da8bf3b717e9999 info: $ref: '#/definitions/Info' description: Object that defines the aditional info provided by the merchant. Check the Info definition. additionalProperties: false description: Object that defines the generate operation request fields RequestInquiry: properties: transactionToken: type: string description: Unique id identify of the transaction. example: 42f59038f3f14e618d091da8bf3b717e9999 additionalProperties: false description: Object that defines the inquiry operation request fields RequestPayment: properties: transactionToken: type: string description: Unique id identify of the transaction. example: 42f59038f3f14e618d091da8bf3b717e9999 additionalProperties: false description: Object that defines the payment operation request fields ResponseGenerate: properties: returnStatus: description: Object that defines the Status of the transaction. Check the ReturnStatus definition. $ref: '#/definitions/ReturnStatus' transactionToken: type: string description: Unique id identify of the transaction. example: 42f59038f3f14e618d091da8bf3b717e9999 qrcodeImage: type: string description: QR Code image in Base64 string example: iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAALg0lEQVR4Xu2dUXbjMAwD0/sfOnuBjSbPCB5la/aXSxIECVF22ubv/X6/X/6TARn4LwN/CsTJkIHPDCgQp0MGFgwoEMdDBhSIMyAD1xhwg1zjTa9DGFAghzTaMq8xoECu8abXIQwokEMabZnXGFAg13jT6xAGFMghjbbMawwokGu86XUIAwrkkEZb5jUGFMg13vQ6hAEFckijLfMaAwrkGm96HcJALJC/v79HU7X7r8sQ/4Sf/O/eXKqf6lMgwFBKMDUgtdOAE37yT/FN+1P9hE+BKBCakVvbFUi5fSnBZXgv2gCEn/zb+NvxqX7K7wZxg9CM3NquQMrtSwkuw3ODlA84N0iZYAXSZmAd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0wxk+WnA6QAh/wxd7u0GcYNEU0QDrkDCAYu68wPntIHk/wOIW4dQID6kR3fsraf7B+AUiAJRIAsGFIgCUSAK5PquffodfPcTkvgn/NT56fiEL62P4tffYhGA3e3UgPYAET/t/NPxqX7qD/mTXYEAQ9SA9gBhA8tvEdv1UXyqn/pD/mRXIAokesZKB1SBkEQ3t9MAUIPJPy2/nX86PvFT57f9LbdU4O52akB7gIifdv7p+FQ/9Yf8ye4VyyuWV6wFAwpEgSiQpkBoRWmXgTszEG+QOxcvdhkgBhQIMaT9aAYUyNHtt3hiQIEQQ9qPZkCBHN1+iycGFAgxpP1oBhTI0e23eGJAgRBD2o9mQIEc3X6LJwYUCDGk/WgGFMjR7bd4YkCBEEPaj2ZAgRzdfosnBhQIMaT9aAYUyNHtt3hi4B+oR7ZsMCjNYAAAAABJRU5ErkJggg== qrcodeData: type: string description: QR Code data example: CPMBV20000349370000001906121739210000100897829314200A8E1FCFA4 additionalProperties: false description: Object that defines the generate operation return fields ResponseInquiry: properties: returnStatus: description: Object that defines the Status of the transaction. Check the ReturnStatus definition. $ref: '#/definitions/ReturnStatus' transactionToken: type: string description: Unique id identify of the transaction. example: 42f59038f3f14e618d091da8bf3b717e9999 additionalProperties: false description: Object that defines the inquiry operation return fields ResponsePayment: properties: returnStatus: description: Object that defines the Status of the transaction. Check the ReturnStatus definition. $ref: '#/definitions/ReturnStatus' additionalProperties: false description: Object that defines the payment operation return fields ReturnStatus: properties: statusCode: type: string description: Identifier code of the processed transaction status. example: "000" statusMsg: type: string description: Message of the processed transaction status. example: Success statusDescription: type: string description: Description of the processed transaction status. example: Transaction processed with success. additionalProperties: false description: Object that defines the status of the processed transaction. Transaction: properties: transactionTimestamp: type: string format: date-time description: Timestamp of the transaction. example: "2019-04-07T18:13:18.572+01:00" description: type: string description: Description of the transaction. paymentType: type: string example: QRCODE description: Type of payment used by the client. amount: example: "" description: Object that defines the amount. Check the Amount definition $ref: '#/definitions/Amount' additionalProperties: false description: Object that defines a transaction. tags: [] x-ibm-endpoints: - endpointUrl: https://site1.sibsapimarket.com:8445/sibs-qly/apimarket-sb type: - production - development - endpointUrl: https://site2.sibsapimarket.com:8445/sibs-qly/apimarket-sb type: - production - development ...