POST:coupons.json
Commerce APIPOST:coupons.json

POST:coupons.json

Description

Create one or multiple coupons for a given promotion.

Permission bit: "coupons.create"

Topic: Coupons

Query Parameters

promotion_id: String, required

Unique promotion identifier. See also: Unique Identifiers

Example: ?promotion_id=pr_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of CouponCreate

[
  {
    "code": "PR100-ASJD-QW15"
  }
]

Response Body

Array of Coupon

Response Body Type

Loading module