curl --request POST \
--url https://api.unibee.dev/merchant/credit/promo_credit_increment \
--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>"
}Increase user promo credit amount
curl --request POST \
--url https://api.unibee.dev/merchant/credit/promo_credit_increment \
--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.
Increase user promo credit amount
Show child attributes
Show child attributes
credit amount, in cent if type is main
create utc time
currency
currency amount, in cent
keep two decimal places,multiply by 100 saved, 1 currency = 1 credit * (exchange_rate/100), main account fixed rate to 100
Id
0-no, 1-yes
0-no, 1-yes
the total decrement amount
the total increment amount
type of credit account, 1-main account, 2-gift account
user_id