https://api.unibee.dev/merchant/credit/edit_promo_config
Edit Promo Credit Config
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <your_api_key> |
Content-Type | Yes | application/json (for request body) |
| Name | Type | Required | Description |
|---|---|---|---|
currency | string | Yes | currency |
description | string | No | description |
discountCodeExclusive | integer | No | discount code exclusive when purchase, default no, 0-no, 1-yes |
exchangeRate | integer | No | keep two decimal places,scale = 100, 1 currency = 1 credit * (exchange_rate/100), main account fixed rate to 100 |
logo | string | No | logo image base64, show when user purchase |
logoUrl | string | No | logo url, show when user purchase |
metaData | object | No | meta_data(json) |
name | string | No | name |
payoutEnable | integer | No | credit account can payout or not, default no, 0-no, 1-yes |
previewDefaultUsed | integer | No | is default used when in purchase preview, default no, 0-no, 1-yes |
rechargeEnable | integer | No | credit account can be recharged or not, 0-no, 1-yes |
recurring | integer | No | apply to recurring, default no, 0-no,1-yes |
code, data, message, redirect, and requestId. code 0 indicates success.
| Field | Type | Description |
|---|---|---|
code | integer | Response code. 0 = success |
data | object | Response payload |
data.creditConfig | object | |
message | string | Human-readable message |
requestId | string | Request ID for support |
| HTTP status | Meaning |
|---|---|
| 400 | Bad request — invalid or missing parameters. Check message in the body. |
| 401 | Unauthorized — missing or invalid API key. |
| 404 | Not found — invalid path or resource. |
| 500 | Server error — retry with backoff. |
code in the response body is non-zero, check message for details. Use requestId when contacting support.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
currency
description
discount code exclusive when purchase, default no, 0-no, 1-yes
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
logo url, show when user purchase
meta_data(json)
name
credit account can payout or not, default no, 0-no, 1-yes
is default used when in purchase preview, default no, 0-no, 1-yes
credit account can be recharged or not, 0-no, 1-yes
apply to recurring, default no, 0-no,1-yes