3. Pair/Disconnect
You can use this service to disconnect the async matching established with your terminal.
DELETE
{{Base Address}}/api/pair/async/unpair
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:
{
"TerminalTagCode": "levent_sube_pos_1"
}
TerminalTagCode
string
Yes
25
The tag code assigned to your terminal
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 based on the locale parameter.
ClientMessage
string
It returns the fixed values of Paywall error codes. You can perform mapping.
{
"Result": {
"TerminalPairId": "616e4bc7-8661-4040-86b8-e660b936b85f"
},
"Failed": false,
"Message": null,
"ClientMessage": null,
"Succeeded": true
}
TerminalPairId
Guid
It is not mandatory to store. It is the device's matching identity information.
Last updated