2. Pair/Disconnect
You can use this service to disconnect the sync match established with your terminal.
DELETE
{{Base Address}}/api/pair/sync/unpair
It will be sufficient to send a request to the address provided above. You can use the 'Base Address' as desired for both the test environment and the production environment.
The header information 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 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.
The response returned by the service:
Result
object
Returns the details of the service.
ErrorCode
int
Error code. If the transaction is successful, it returns a value of '0'.
Succeeded
bool
Returns a true or false value. If the transaction is successful, it returns a value of 'true'.
Failed
bool
Returns a true or false value. If the transaction is unsuccessful, it returns a value of 'true'.
Message
string
If the transaction is erroneous, this is the message associated with the error. It provides language support based on the locale parameter.
ClientMessage
string
Returns the constant 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 matching ID of the device.
Last updated