POST Public/api/DiscountCreate/Get
The entry point for creating links to discount groups
Request Information
URI Parameters
None.
Body Parameters
DiscountCreateRequest| Name | Description | Type | Additional 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": "03654fa4-aa7c-4b62-85ae-d34f3fddff7d",
"group": {
"uid": "3aa45651-4968-49e9-aae8-3e0d9f96b2bc"
},
"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>03654fa4-aa7c-4b62-85ae-d34f3fddff7d</AuthToken>
<Group>
<UID>3aa45651-4968-49e9-aae8-3e0d9f96b2bc</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| Name | Description | Type | Additional 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": "1e66bc8b-dda6-408b-a8b8-0b2d889e037d",
"group": {
"uid": "4ede212c-b907-469e-8af6-d95e7e86fa6b"
},
"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>1e66bc8b-dda6-408b-a8b8-0b2d889e037d</AuthToken>
<Group>
<UID>4ede212c-b907-469e-8af6-d95e7e86fa6b</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>