POST
/
merchant
/
discount
/
quantity_increment
curl --request POST \
  --url https://api.unibee.top/merchant/discount/quantity_increment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "id": 123
}'
{
  "code": 123,
  "data": {
    "discountCode": {
      "advance": true,
      "billingType": 123,
      "code": "<string>",
      "createTime": 123,
      "currency": "<string>",
      "cycleLimit": 123,
      "discountAmount": 123,
      "discountPercentage": 123,
      "discountType": 123,
      "endTime": 123,
      "id": 123,
      "isDeleted": 123,
      "merchantId": 123,
      "metadata": {},
      "name": "<string>",
      "planApplyType": 123,
      "planIds": [
        123
      ],
      "quantity": 123,
      "startTime": 123,
      "status": 123,
      "upgradeLongerOnly": true,
      "upgradeOnly": true,
      "userLimit": 123,
      "userScope": 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

Increase discount code quantity, if original quantity is 0, increase greater than 0 will enable quantity control

id
integer
required

The discount's Id

amount
integer

The discount quantity amount to increase, should greater than 0

Response

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