--- swagger: "2.0" info: x-ibm-name: sibs-blik-payment-stb-api title: BLIK Payment (Sandbox) version: 2.0.0 description: Perform a BLIK payment providing the client-generated BLIK code schemes: - https basePath: /sibs/spg/v1/payments consumes: - application/json produces: - application/json security: [] x-ibm-configuration: testable: true enforced: true phase: realized paths: /{id}/blik/purchase: post: responses: 200: description: 200 OK schema: $ref: '#/definitions/ResponsePayment' 400: description: Bad Request. schema: $ref: '#/definitions/ResponsePayment' 401: description: Unauthorized. schema: $ref: '#/definitions/ResponsePayment' 403: description: Forbidden. schema: $ref: '#/definitions/ResponsePayment' 404: description: Not Found. schema: $ref: '#/definitions/ResponsePayment' 405: description: Method Not Allowed. schema: $ref: '#/definitions/ResponsePayment' 406: description: Not Acceptable. schema: $ref: '#/definitions/ResponsePayment' 408: description: Request Timeout. schema: $ref: '#/definitions/ResponsePayment' 415: description: Unsupported Media Type. schema: $ref: '#/definitions/ResponsePayment' 429: description: Too Many Requests. schema: $ref: '#/definitions/ResponsePayment' 500: description: Internal Server Error. schema: $ref: '#/definitions/ResponsePayment' 503: description: Service Unavailable. schema: $ref: '#/definitions/ResponsePayment' 504: description: Gatewaty Timeout. schema: $ref: '#/definitions/ResponsePayment' operationId: blikPurchase description: Perform the client redirection to BLIK payment system in order to perform client code collection and payment confirmation. parameters: - name: input required: true in: body schema: $ref: '#/definitions/RequestPayment' - name: id type: string required: true in: path - $ref: '#/parameters/Authorization' definitions: Deviceinfo: properties: browserAcceptHeader: type: string browserJavaEnabled: type: string browserLanguage: type: string browserColorDepth: type: string browserScreenHeight: type: string browserScreenWidth: type: string browserTZ: type: string browserUserAgent: type: string systemFamily: type: string systemVersion: type: string systemArchitecture: type: string deviceManufacturer: type: string deviceModel: type: string deviceID: type: string applicationName: type: string applicationVersion: type: string geoLocalization: type: string ipAddress: type: string browserJavascriptEnabled: type: string additionalProperties: false description: Object that defines the customer device information. ExtendedInfo: type: object properties: key: type: string value: type: string description: Key value tuple. Info: properties: deviceInfo: $ref: '#/definitions/Deviceinfo' description: Object that defines the customers device predefined information. Check the DeviceInfo definition. customerInfo: type: array items: $ref: '#/definitions/ExtendedInfo' description: Key Value tuple array. additionalProperties: false description: Object that defines the transaction additional information Merchant: properties: terminalId: type: integer example: "21451" description: Merchant terminal id format: int32 channel: type: string description: Merchant channel. example: web merchantTransactionId: type: string description: Id of the transaction in merchant store. example: 863b730df285443f9a60ca404e0085fd1234 additionalProperties: false description: Object that defines a Merchant. RequestPayment: properties: info: $ref: '#/definitions/Info' description: Object that defines the aditional info provided by the merchant. Check the Info definition. merchant: type: object description: Merchant properties: merchantURL: type: string description: Merchant Shop URL for redirect. BLIKCode: type: string description: BLIK Code. With 6 digit pattern. maxLength: 6 minLength: 6 pattern: ^\d{6,6}$ default: "999999" additionalProperties: false description: Object that defines the payment operation request fields ResponsePayment: properties: returnStatus: description: 'Describes the status of the request. (Attention: it doesn''t describe the state of the transaction itself).' $ref: '#/definitions/ReturnStatus' transactionID: type: string description: Backend unique identify of the transaction. example: 42f59038f3f14e618d091da8bf3b717e9999 merchant: description: Object that defines the Merchant. Check the Merchant definition. $ref: '#/definitions/Merchant' paymentType: type: string description: Payment type used execution: description: Object that defines an Execution. See the Execution definition. $ref: '#/definitions/Execution' paymentStatus: type: string description: Payment Status. Possible values ("PENDING"). enum: - PENDING additionalProperties: false 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. additionalProperties: false description: 'Describes the status of the request. (Attention: it doesn''t describe the state of the transaction itself).' Execution: properties: startTime: type: string description: Time of the acceptance of the request by the API. format: date-time example: "2020-07-15T12:10:49.131+01:00" endTime: type: string description: Time of the response to the request by the API. format: date-time example: "2020-07-15T12:10:49.131+01:00" additionalProperties: false description: Object that encapsulates technical execution information. tags: [] parameters: Authorization: name: Authorization type: string required: true in: header x-ibm-endpoints: - endpointUrl: https://site3.sibsapimarket.com/sibs-qly/sibslabs type: - production - development - endpointUrl: https://api.qly.sibspayments.com:11501/sibs-qly/sibslabs type: - production - development - endpointUrl: https://site4.sibsapimarket.com/sibs-qly/sibslabs type: - production - development ...