5. Delete

You can use this service to delete your physical POS connection.

DELETE {{Base Address}}/api/connection

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 Connection Deletion 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 merchant portal.

apiclientprivate

string

Yes

The Private Client obtained from the merchant portal.

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

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

Guid

Yes

-

The ID information related to your connection.

Servisten dönen cevap:

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

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 erroneous, 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 the paywall error codes. You can map them.

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

Last updated