POST
/
merchant
/
credit
/
edit_promo_config
curl --request POST \
  --url https://api.unibee.top/merchant/credit/edit_promo_config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "<string>",
  "description": "<string>",
  "discountCodeExclusive": 123,
  "exchangeRate": 123,
  "logo": "<string>",
  "logoUrl": "<string>",
  "metaData": {},
  "name": "<string>",
  "payoutEnable": 123,
  "previewDefaultUsed": 123,
  "rechargeEnable": 123,
  "recurring": 123
}'
{
  "code": 123,
  "data": {
    "creditConfig": {
      "createTime": 123,
      "currency": "<string>",
      "description": "<string>",
      "discountCodeExclusive": 123,
      "exchangeRate": 123,
      "id": 123,
      "logo": "<string>",
      "logoUrl": "<string>",
      "merchantId": 123,
      "metaData": {},
      "name": "<string>",
      "payoutEnable": 123,
      "previewDefaultUsed": 123,
      "rechargeEnable": 123,
      "recurring": 123,
      "totalDecrementAmount": 123,
      "totalIncrementAmount": 123,
      "type": 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
currency
string
required

currency

description
string

description

discountCodeExclusive
integer

discount code exclusive when purchase, default no, 0-no, 1-yes

exchangeRate
integer

keep two decimal places,scale = 100, 1 currency = 1 credit * (exchange_rate/100), main account fixed rate to 100

logo image base64, show when user purchase

logoUrl
string

logo url, show when user purchase

metaData
object

meta_data(json)

name
string

name

payoutEnable
integer

credit account can payout or not, default no, 0-no, 1-yes

previewDefaultUsed
integer

is default used when in purchase preview, default no, 0-no, 1-yes

rechargeEnable
integer

credit account can be recharged or not, 0-no, 1-yes

recurring
integer

apply to recurring, default no, 0-no,1-yes

Response

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