POST Create Terminal Session

http://api-cloudpay-dev.fintiv.co:8080/payment/v1/getSessionKey

Creates a session with the terminal must be used before to process a payment with a credit card.

This session will last 10 minutes and it is recomended to call Destroy Session terminal after the payment is processed

Headers

api-key {api-key}

Key Provided to use this platform

Content-Type application/json

Body

raw (application/json)

    {
      "merchantId": "100000000101",
      "hsn": "123456789012345",
      "serviceType": 0
    }
                    

The data to be submitted to the API is composed of the following fields:

field Note Example Required
merchantId Identifier of the company 100000000101 true
hsn Identifier of the card terminal 123456789012345 true
serviceType Unique identifier of the service to use 0 true
Example RequestCreate Terminal Session

    var settings = {
    "url": "http://api-cloudpay-dev.fintiv.co:8080/payment/v1/getSessionKey",
    "method": "POST",
    "timeout": 0,
    "headers": {
        "api-key": "{api-key}",
        "Content-Type": "application/json"
      },
      "data": "{
        "merchantId": "100000000101",
        "hsn": "123456789012345",
        "serviceType": 0
      }",
    };