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.

Important: To use the Sync Match Disconnect service, you must send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' field.

PhysicalAPI Address

The header information to be sent to the service is as follows:

Parameter
Type
Compulsory
Description

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"
}
Parameter
Type
Compulsory
Length
Description
TerminalTagCode

string

Yes

25

The tag code assigned to your terminal.

The response returned by the service:

Parameter
Type
Description

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
}
Parameter
Type
Description
TerminalPairId

Guid

It is not mandatory to store. It is the matching ID of the device.

Last updated