Awards
Distribute awards
Changed onEvenly distribute the purchased crypto among the specified customers.
post/awards/distribute
Request
- Base URLhttps://api.cert.zerohash.com
- AuthAPI key in header X-SCX-API-KEY and API key in header X-SCX-PASSPHRASE
Headers
X-SCX-SIGNEDstring required
HMAC-SHA256 signature of the request, base64-encoded. See the Authentication guide for the exact signing formula.
X-SCX-TIMESTAMPstring required
Example:1678901234
Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.
Request body
Example request
{
"asset": "BTC",
"quantity": "1.00",
"participant_codes": [
"CUST01",
"CUST02"
],
"quoted_currency": "USD"
}Response
Successfully distributed awards. Returns a confirmation per participant containing the booked trade_id.
Example response
{
"message": {
"request_id": "14f8ebb8-7530-4aa4-bef9-9d73d56313f3",
"confirms": [
{
"participant_code": "CUST01",
"trade_id": "ce819fe8-b1d7-43bb-961c-e09ede0988d3"
},
{
"participant_code": "CUST02",
"trade_id": "ba97133e-ab15-4c86-86c1-86671b8420bc"
}
]
}
}Changes
- info
added the new
USDC.ETHenum value to the request property
- info