Paycose Docs
E2ECreate Promotion Codes
POST/promotion_codes

SUMMER25 — compound (THB)

Compound restrictions.

Request

Example

curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/promotion_codes/' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -H 'X-Test-Mode: {{x_test_mode}}' \
  -d '{
  "coupon": "{{e2e_coupon_summer25}}",
  "code": "SUMMER25",
  "active": true,
  "quota_limit": 500,
  "expires_at": "2026-08-31T23:59:59Z",
  "first_time_transaction": false,
  "customer": "",
  "minimum_amount": 200000,
  "minimum_amount_currency": "THB",
  "metadata": {
    "variant": "quota+expiry+min-amount"
  },
  "labels": [
    "<string>"
  ]
}'

Headers

NameValueDescription
X-Session-Token{{session_token}}
X-Country{{country}}
X-Test-Mode{{x_test_mode}}true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request.

Body

NameTypeValue
couponstring{{e2e_coupon_summer25}}
codestringSUMMER25
activebooleantrue
quota_limitnumber500
expires_atstring2026-08-31T23:59:59Z
first_time_transactionbooleanfalse
customerstring
minimum_amountnumber200000
minimum_amount_currencystringTHB
metadataobject{…}
labelsarray[1]
{
  "coupon": "{{e2e_coupon_summer25}}",
  "code": "SUMMER25",
  "active": true,
  "quota_limit": 500,
  "expires_at": "2026-08-31T23:59:59Z",
  "first_time_transaction": false,
  "customer": "",
  "minimum_amount": 200000,
  "minimum_amount_currency": "THB",
  "metadata": {
    "variant": "quota+expiry+min-amount"
  },
  "labels": [
    "<string>"
  ]
}

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "id": "<string>",
  "object": "<string>",
  "resource": "<string>",
  "created_at": "<RFC3339 timestamp>",
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ],
  "next_action": [
    {
      "type": "<string>",
      "title": "<string>",
      "description": "<string>",
      "i18n_key": "<string>",
      "url": "<string>",
      "client_secret": "<string>",
      "payment_method": "<string>",
      "qr_data": "<string>"
    }
  ]
}
400400 Bad Request

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page