POST Marketing/Coupon

GetCoupons with same parentID

Request Information

URI Parameters

None.

Body Parameters

GetCouponRequest
NameDescriptionTypeAdditional information
ID

integer

None.

Lang

string

None.

StoreID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Lang": "sample string 2",
  "StoreID": 3
}

application/xml, text/xml

Sample:
<GetCouponRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.View.Marketing">
  <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 2</Lang>
  <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">3</StoreID>
  <ID>1</ID>
</GetCouponRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Coupon
NameDescriptionTypeAdditional information
ID

integer

None.

Disabled

date

None.

Name

string

None.

Code

string

Required

String length: inclusive between 0 and 50

Amount

decimal number

None.

DiscountPercent

decimal number

Range: inclusive between 0 and 1

UsageLimit

integer

None.

MinimumOrderAmount

The minimum required order amount of CouponableEntity to apply this coupon

decimal number

None.

UsagePerCustomerLimit

integer

None.

ValidFrom

date

None.

Expiration

date

None.

CouponableTypeID

integer

None.

CouponableEntityID

ID of Entity of Type defined by CouponableType

integer

None.

CustomerID

string

None.

CustomerTypeID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Disabled": "2025-12-06T05:42:04.1858811+01:00",
  "Name": "sample string 2",
  "Code": "sample string 3",
  "Amount": 1.0,
  "DiscountPercent": 1.0,
  "UsageLimit": 4,
  "MinimumOrderAmount": 5.0,
  "UsagePerCustomerLimit": 6,
  "ValidFrom": "2025-12-06T05:42:04.1858811+01:00",
  "Expiration": "2025-12-06T05:42:04.1858811+01:00",
  "CouponableTypeID": 8,
  "CouponableEntityID": 9,
  "CustomerID": "sample string 10",
  "CustomerTypeID": 1
}

application/xml, text/xml

Sample:
<Coupon xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.View.Marketing">
  <Amount>1</Amount>
  <Code>sample string 3</Code>
  <CouponableEntityID>9</CouponableEntityID>
  <CouponableTypeID>8</CouponableTypeID>
  <CustomerID>sample string 10</CustomerID>
  <CustomerTypeID>1</CustomerTypeID>
  <Disabled>2025-12-06T05:42:04.1858811+01:00</Disabled>
  <DiscountPercent>1</DiscountPercent>
  <Expiration>2025-12-06T05:42:04.1858811+01:00</Expiration>
  <ID>1</ID>
  <MinimumOrderAmount>5</MinimumOrderAmount>
  <Name>sample string 2</Name>
  <UsageLimit>4</UsageLimit>
  <UsagePerCustomerLimit>6</UsagePerCustomerLimit>
  <ValidFrom>2025-12-06T05:42:04.1858811+01:00</ValidFrom>
</Coupon>