POST Public/api/DiscountCreate

The entry point for creating links to discount groups

Request Information

URI Parameters

None.

Body Parameters

DiscountCreateRequest
NameDescriptionTypeAdditional information
AuthToken

Your unique partner identification token

globally unique identifier

Required

Group

The group you wish to add the link to

Group

Required

Link

The link you wish to add

Link

Required

Request Formats

application/json, text/json

Sample:
{
  "authToken": "c9dc2282-2988-42da-81ca-e0005bad0e7f",
  "group": {
    "uid": "24f12140-603d-4324-8e21-4d76d8505078"
  },
  "link": {
    "name": "sample string 1",
    "external_UID": "sample string 2",
    "use_Time_Left": 1
  }
}

application/xml, text/xml

Sample:
<DiscountCreateController.DiscountCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HuurayV3.Controllers">
  <AuthToken>c9dc2282-2988-42da-81ca-e0005bad0e7f</AuthToken>
  <Group>
    <UID>24f12140-603d-4324-8e21-4d76d8505078</UID>
  </Group>
  <Link>
    <External_UID>sample string 2</External_UID>
    <Name>sample string 1</Name>
    <Use_Time_Left>1</Use_Time_Left>
  </Link>
</DiscountCreateController.DiscountCreateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object containing the URI of the created link, along with information the partner and group

DiscountCreateResponse
NameDescriptionTypeAdditional information
URI

The URI to activate the newly created link

URI
AuthToken

Your unique partner identification token

globally unique identifier

Required

Group

The group you wish to add the link to

Group

Required

Link

The link you wish to add

Link

Required

Response Formats

application/json, text/json

Sample:
{
  "uri": {
    "scheme": "sample string 1",
    "host": "sample string 2",
    "path": "sample string 3",
    "queryString": "sample string 4",
    "fullPath": "sample string 5"
  },
  "authToken": "69ea9c27-c4ef-4e38-a4b6-1ed733bd221b",
  "group": {
    "uid": "c6319612-348a-44ad-8250-4a70e201093a"
  },
  "link": {
    "name": "sample string 1",
    "external_UID": "sample string 2",
    "use_Time_Left": 1
  }
}

application/xml, text/xml

Sample:
<DiscountCreateController.DiscountCreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HuurayV3.Controllers">
  <AuthToken>69ea9c27-c4ef-4e38-a4b6-1ed733bd221b</AuthToken>
  <Group>
    <UID>c6319612-348a-44ad-8250-4a70e201093a</UID>
  </Group>
  <Link>
    <External_UID>sample string 2</External_UID>
    <Name>sample string 1</Name>
    <Use_Time_Left>1</Use_Time_Left>
  </Link>
  <URI>
    <FullPath>sample string 5</FullPath>
    <Host>sample string 2</Host>
    <Path>sample string 3</Path>
    <QueryString>sample string 4</QueryString>
    <Scheme>sample string 1</Scheme>
  </URI>
</DiscountCreateController.DiscountCreateResponse>