Set discount to payment method

post
https://api.cryptomus.com/v1/payment/discount/set
COPY

Request

Query parameters

NameDefinition
currency*Currency code
network *Blockchain network code
discount_percent*Discount percent

Definition

Currency code

Definition

Blockchain network code

Definition

Discount percent

* - mandatory parameter

About discount percent:

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.

Request example


curl https://api.cryptomus.com/v1/payment/discount/set \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
    "network": "bsc"
    "currency": "BUSD",
    "discount_percent": -20,
}'
COPY

Response

Response parameters

NameDefinition
currencyCurrency code
networkBlockchain network code
discount_percentDiscount percent

Definition

Currency code

Definition

Blockchain network code

Definition

Discount percent

Response example


1{
2    "state": 0,
3    "result": {
4      "currency": "BUSD",
5      "network": "bsc",
6      "discount": "-10"
7    }
8}
9
10
COPY

Response example with error


1{
2  "message": "The service BUSD bsc was not found",
3  "state": 1
4}
5
COPY