POST v1/Coupons
Request Information
URI Parameters
None.
Body Parameters
Common.Dto.Post.CouponConfiguration| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Description | string |
None. |
|
| ApplyToAllPlans | boolean |
None. |
|
| couponCodes | Collection of Common.Dto.Post.CouponCode |
None. |
|
| Discounts | Collection of Object |
None. |
|
| plans | Collection of Common.Dto.Post.CouponPlanConfiguration |
None. |
|
| eligibilities | Collection of Common.Dto.Post.CouponEligibility |
None. |
|
| oneTimeUse | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"description": "sample string 2",
"applyToAllPlans": true,
"couponCodes": [
{
"code": "sample string 1",
"remainingUsages": 1
},
{
"code": "sample string 1",
"remainingUsages": 1
}
],
"discounts": [
{},
{}
],
"plans": [
{
"id": 1,
"applyToAllProducts": true,
"planProducts": [
1,
2
]
},
{
"id": 1,
"applyToAllProducts": true,
"planProducts": [
1,
2
]
}
],
"eligibilities": [
{
"startDate": "2025-11-03T19:48:03.4578683+00:00",
"endDate": "2025-11-03T19:48:03.4578683+00:00",
"discounts": [
1,
2
]
},
{
"startDate": "2025-11-03T19:48:03.4578683+00:00",
"endDate": "2025-11-03T19:48:03.4578683+00:00",
"discounts": [
1,
2
]
}
],
"oneTimeUse": true
}
Response Information
Resource Description
Common.Dto.Get.CouponConfiguration| Name | Description | Type | Additional information |
|---|---|---|---|
| discounts | Collection of Common.Dto.Get.BaseDto |
None. |
|
| eligibilities | Collection of Common.Dto.Get.CouponEligibility |
None. |
|
| plans | Collection of Common.Dto.Get.CouponPlanConfiguration |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| eligibilityStartDate | date |
None. |
|
| eligibilityEndDate | date |
None. |
|
| status | string |
None. |
|
| applyToAllPlans | boolean |
None. |
|
| oneTimeUse | boolean |
None. |
|
| couponCodes | Collection of Common.Dto.Get.CouponCode |
None. |
|
| id | integer |
None. |
|
| uri | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"discounts": [
{
"id": 1,
"uri": "sample string 2"
},
{
"id": 1,
"uri": "sample string 2"
}
],
"eligibilities": [
{
"startDate": "2025-11-03T19:48:03.4740504+00:00",
"endDate": "2025-11-03T19:48:03.4740504+00:00",
"discounts": [
{
"id": 1,
"uri": "sample string 2"
},
{
"id": 1,
"uri": "sample string 2"
}
]
},
{
"startDate": "2025-11-03T19:48:03.4740504+00:00",
"endDate": "2025-11-03T19:48:03.4740504+00:00",
"discounts": [
{
"id": 1,
"uri": "sample string 2"
},
{
"id": 1,
"uri": "sample string 2"
}
]
}
],
"plans": [
{
"planName": "sample string 1",
"applyToAllProducts": true,
"planProducts": [
{
"planProductId": 1,
"planProductName": "sample string 2",
"id": 3,
"uri": "sample string 4"
},
{
"planProductId": 1,
"planProductName": "sample string 2",
"id": 3,
"uri": "sample string 4"
}
],
"id": 3,
"uri": "sample string 4"
},
{
"planName": "sample string 1",
"applyToAllProducts": true,
"planProducts": [
{
"planProductId": 1,
"planProductName": "sample string 2",
"id": 3,
"uri": "sample string 4"
},
{
"planProductId": 1,
"planProductName": "sample string 2",
"id": 3,
"uri": "sample string 4"
}
],
"id": 3,
"uri": "sample string 4"
}
],
"name": "sample string 1",
"description": "sample string 2",
"eligibilityStartDate": "2025-11-03T19:48:03.4740504+00:00",
"eligibilityEndDate": "2025-11-03T19:48:03.4740504+00:00",
"status": "sample string 3",
"applyToAllPlans": true,
"oneTimeUse": true,
"couponCodes": [
{
"id": 1,
"code": "sample string 2",
"timesUsed": 3,
"remainingUsages": 1
},
{
"id": 1,
"code": "sample string 2",
"timesUsed": 3,
"remainingUsages": 1
}
],
"id": 6,
"uri": "sample string 7"
}