Webhook

If you want to install a webhook, you can use the following endpoint: https://api.swapple.org/api/v3/webhook/create and specify your url where the callback will be sent to you.

Setting your WebHook the easy way

POST https://api.swapple.org/api/v3/webhook/create

It iis an endpoint that allows you to set links to the callbacks you want to receive.

Each request will overwrite the previous one.

In response to successful callback processing, status 200 is expected.

If there is no response to the callback or there is a non-200 response, then we will repeat sending this callback.

* Each time we increase the interval between sending the callback. The initial interval is 60 secs, but no longer than 24 hours (if you do not accept a callback within a day, it stops being sent).

Headers

Name
Type
Description

public-key*

Your public key.Authorization

timestamp*

String

Current timestamp that was used to generate the signature in milliseconds

signature*

String

HMAC SHA512 key/value signature

Request Body

Name
Type
Description

url*

String

the callback url

{
    "status": "SUCCESS"
}

The callback body the same as Orders response and header contain a signature.

Last updated