--- swagger: "2.0" info: x-ibm-name: sibs-blik-payment-stb-api title: Blik Payment (Sandbox) version: 1.0.0 description: "" schemes: - https basePath: /sibs/spg/v1 consumes: - application/json produces: - application/json security: [] x-ibm-configuration: testable: true enforced: true phase: realized paths: /payments/{id}/blik/payment-redirect: 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: blikPayment tags: - Get Payment Redirect 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 - name: authorization type: string required: true in: header definitions: HttpParametersArray: type: array description: Array of HTTP Parameters items: description: HTTP Parameter. additionalProperties: false type: object properties: httpParameter: $ref: '#/definitions/HttpParameter' HttpParameter: description: HTTP Parameter. type: object properties: identification: description: HTTP Parameter Identification. type: string value: description: HTTP Parameter Value. type: string required: - identification - value additionalProperties: false 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 customer device information. customerInfo: type: array items: $ref: '#/definitions/ExtendedInfo' description: Key Value tuple array. additionalProperties: false description: Object that defines the transaction additional information Merchant: type: object properties: merchantURL: type: string description: Merchant Shop URL for redirect. description: Merchant required: - merchantURL RequestPayment: properties: info: $ref: '#/definitions/Info' merchant: $ref: '#/definitions/Merchant' required: - info - merchant additionalProperties: false description: Object that defines the payment operation request fields ResponsePayment: properties: transactionID: type: string description: Backend unique identify of the transaction. example: 42f59038f3f14e618d091da8bf3b717e9999 execution: description: Object that encapsulates technical execution information. $ref: '#/definitions/Execution' transactionStatus: description: Transaction Status. Possible values are "ACTC-Accepted Technical Validation" and "RJCT-Rejected". $ref: '#/definitions/TransactionStatusType' paymentStatus: type: string description: Payment Status. Possible values ("PENDING"). enum: - PENDING payload: type: string description: Payload for redirect request. Only Present in success responses. endpoint: type: string description: Redirect endpoint. Only Present in success responses. httpParameters: description: Content Type. Only Present in success responses. $ref: '#/definitions/HttpParametersArray' returnStatus: description: Object that defines the Status of the transaction. Check the ReturnStatus definition. $ref: '#/definitions/ReturnStatus' required: - transactionID - execution - transactionStatus - paymentStatus - returnStatus 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: Object that defines the status of the processed transaction. TransactionStatusType: description: Transaction Status. Possible values are "ACTC-Accepted Technical Validation" and "RJCT-Rejected". type: string enum: - ACTC - RJCT default: RJCT additionalProperties: false 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: [] 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 ...