curl --request POST \
--url https://api.unibee.dev/merchant/credit/promo_credit_decrement \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"currency": "<string>",
"userId": 123,
"description": "<string>",
"name": "<string>"
}
'{
"code": 123,
"data": {
"UserPromoCreditAccount": {
"amount": 123,
"createTime": 123,
"currency": "<string>",
"currencyAmount": 123,
"exchangeRate": 123,
"id": 123,
"payoutEnable": 123,
"rechargeEnable": 123,
"totalDecrementAmount": 123,
"totalIncrementAmount": 123,
"type": 123,
"userId": 123
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Decrease user promo credit amount, the amount after decreased should greater than 0
curl --request POST \
--url https://api.unibee.dev/merchant/credit/promo_credit_decrement \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"currency": "<string>",
"userId": 123,
"description": "<string>",
"name": "<string>"
}
'{
"code": 123,
"data": {
"UserPromoCreditAccount": {
"amount": 123,
"createTime": 123,
"currency": "<string>",
"currencyAmount": 123,
"exchangeRate": 123,
"id": 123,
"payoutEnable": 123,
"rechargeEnable": 123,
"totalDecrementAmount": 123,
"totalIncrementAmount": 123,
"type": 123,
"userId": 123
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Decrease user promo credit amount, the amount after decreased should greater than 0