POST api/promo/conformpromos
Request Information
URI Parameters
None.
Body Parameters
PromoInput| Name | Description | Type | Additional information |
|---|---|---|---|
| PromoCode | string |
None. |
|
| SuperAgent | integer |
None. |
|
| Country | integer |
None. |
|
| Currency | integer |
None. |
|
| RequestFrom | integer |
None. |
|
| Agent | integer |
None. |
|
| UserID | integer |
None. |
|
| Device | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"PromoCode": "sample string 1",
"SuperAgent": 2,
"Country": 3,
"Currency": 4,
"RequestFrom": 5,
"Agent": 6,
"UserID": 7,
"Device": 8
}
application/xml, text/xml
Sample:
<PromoInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromoAPI.Models"> <Agent>6</Agent> <Country>3</Country> <Currency>4</Currency> <Device>8</Device> <PromoCode>sample string 1</PromoCode> <RequestFrom>5</RequestFrom> <SuperAgent>2</SuperAgent> <UserID>7</UserID> </PromoInput>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Promoresponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | string |
None. |
|
| Type | string |
None. |
|
| Margin | decimal number |
None. |
|
| Message | string |
None. |
|
| promocodeid | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": "sample string 1",
"Type": "sample string 2",
"Margin": 3.1,
"Message": "sample string 4",
"promocodeid": 5
}
application/xml, text/xml
Sample:
<Promoresponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromoAPI.Models"> <Margin>3.1</Margin> <Message>sample string 4</Message> <Status>sample string 1</Status> <Type>sample string 2</Type> <promocodeid>5</promocodeid> </Promoresponse>