POST api/DiscountCreate
The entry point for creating links to discount groups
Request Information
URI Parameters
None.
Body Parameters
DiscountCreateRequestName | 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": "4e18f9cc-ffc8-48e5-9ba3-a34da2733569", "group": { "uid": "bf3d68f5-e9ec-4d71-ba3d-f327e22e9def" }, "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>4e18f9cc-ffc8-48e5-9ba3-a34da2733569</AuthToken> <Group> <UID>bf3d68f5-e9ec-4d71-ba3d-f327e22e9def</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
DiscountCreateResponseName | 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": "bfd62c0b-3254-4b59-a5a0-8a393b9b192d", "group": { "uid": "0889d876-fa45-4258-8691-ccc0ec36fb5d" }, "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>bfd62c0b-3254-4b59-a5a0-8a393b9b192d</AuthToken> <Group> <UID>0889d876-fa45-4258-8691-ccc0ec36fb5d</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>