2. Pair/Request/Approve
You can use this service to send a request to establish an async connection to your terminals.
PUT
{{Base Address}}/api/pair/async/confirm
It will be sufficient to send a request to the address provided above. You can use the 'Base Address' as you wish for both the test environment and the production environment.
The header information that needs to be sent to the service is as follows:
apikeyprivate
string
Yes
The Private Key obtained from the merchant panel.
apiclientprivate
string
Yes
The Private Client obtained from the merchant panel.
The body information that needs to be sent to the service is as follows:
Guid
Yes
-
Matching request ID
Response from the service:
Result
object
It returns the details of the service.
ErrorCode
int
Error code. If the operation is successful, it returns the value '0'.
Succeeded
bool
It returns a true or false value. If the operation is successful, it returns the value 'true'.
Failed
bool
It returns a true or false value. If the operation is unsuccessful, it returns the value 'true'.
Message
string
If the operation is faulty, this is the message related to the error, and it provides language support according to the locale parameter.
ClientMessage
string
It returns the fixed values of Paywall error codes. You can perform mapping.
Guid
It is not mandatory to store. It is the device's matching identity information.
Last updated