Callback Examples
Callback schedule
The callback will be attempted on the following schedule:
1, 5, 10, 15, 20, 30, 60, 90, 120, 150, 180, 210, 240 minutes.
So, please keep in mind that the number of callback attempts is limited to 13 and the retries are executed in the predefined manner.
Deposit Callbacks
To provide authentication for the callback, Citron API signs the POST your api key and secret:
X-Process-Key โ Your public key
X-Process-Signature โ POST body, signed by your secret key HMAC-SHA512
Time
2023-04-25 12:29:13
Method
POST
Status
200
Format
application/json
Data sent:
Response received:
Withdrawal Callback
Time
2023-04-25 12:27:23
Method
POST
Status
200
Format
application/json
Data sent:
Response received:
JSON parameters for the Payment Terminal
A set of parameters is included in URL that will allow to redirect a user to the Payment Terminal.
client_id
This is a unique ID thatโs generated on the side of Citron
Required
int
currency
ISO of a currency to receive funds in, example: BTC
Required
string
amount
Amount of funds to withdraw, example: "3500"
Optional
numeric
convert_to
In case you need on-the-fly exchange of all incoming funds (e.g. to EUR) specify this parameter as EUR or any other supported currency ISO, to see the list of available pairs check the method above
Optional
string
is_iframe
The parameter that allows you to get an iframe-link (false by default).
Optional
boolean
foreign_id
Unique foreign ID in your system, example: "164"
Required
string
url_back
A link that allows you to get a user back to your system
Optional
url
Last updated
Was this helpful?