Main
/Discount Payment
/Set discount to payment method
Copy page
| Name | Definition |
|---|---|
| currency* | Currency code |
| network * | Blockchain network code |
| discount_percent* | Discount percent |
* - mandatory parameter
Positive Numbers (>0). Gives buyers a discount for paying with a coin. Good promotional tool if you want to give extra support to a particular coin.
Negative Numbers (<0). Adds a certain percentage (padding) for paying with a coin. This could be used to cover your crypto/fiat conversion costs, make adjustments to match your local exchange, etc.
curl https://api.heleket.com/v1/payment/discount/set \
-X POST \
-H 'merchant: YOUR_MERCHANT_UUID' \
-H 'sign: YOUR_SIGNATURE' \
-H 'Content-Type: application/json' \
-d '{
"network": "bsc",
"currency": "BUSD",
"discount_percent": -20
}'
Copy| Name | Definition |
|---|---|
| currency | Currency code |
| network | Blockchain network code |
| discount_percent | Discount percent |
1{
2 "state": 0,
3 "result": {
4 "currency": "BUSD",
5 "network": "bsc",
6 "discount": "-10"
7 }
8}
9
10Copy
1{
2 "message": "The service BUSD bsc was not found",
3 "state": 1
4}
5Copy