6. Disconnect the connection.

You can use this service to deactivate/disconnect your physical POS connection.

PUT {{Base Address}}/api/connection/disconnect

It will be enough 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: In order to use the Disconnect Connection service, you must send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' field.

PhysicalAPI Address

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

Parameter
Type
Compulsory
Description

apikeyprivate

string

Yes

The Private Key obtained from the member merchant panel.

apiclientprivate

string

Yes

The Private Client obtained from the member merchant panel.

The body information that needs to be sent to the service is as follows:

{
    "Id": "70b2190b-e47b-455f-b05e-8c132a055300"
}
Parameter
Type
Compulsory
Length
Description
Id

Guid

Yes

-

The ID information related to your connection.

The response returned from the service:

Parameter
Type
Description

Result

object

It returns the details of the service.

ErrorCode

int

Error code. If the transaction is successful, it returns a value of '0'.

Succeeded

bool

It returns a true or false value. If the transaction is successful, it returns the value 'true'.

Failed

bool

It returns a true or false value. If the transaction is unsuccessful, it returns the value 'true'.

Message

string

If the transaction is faulty, this is the error message specified, which provides language support according to the locale parameter.

ClientMessage

string

It returns the fixed values of paywall error codes. You can map them.

{
    "result": {
        "status": true
    },
    "failed": false,
    "message": null,
    "clientMessage": null,
    "succeeded": true
}

Last updated