POST
/
merchant
/
credit
/
promo_credit_decrement
curl --request POST \
  --url https://api.unibee.top/merchant/credit/promo_credit_decrement \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "currency": "<string>",
  "description": "<string>",
  "name": "<string>",
  "userId": 123
}'
{
  "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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Decrease user promo credit amount, the amount after decreased should greater than 0

amount
integer
required

The Amount to decrease, should greater than 0

currency
string
required

currency of recharge

userId
integer
required

filter id of user

description
string

description of increase action

name
string

name of increase action

Response

200 - application/json
code
integer
data
object
message
string
redirect
string
requestId
string