POST api/v1/MarketingOption
Retrieve the list of marketing options.
Multiple options can be set against each contact
Request Information
URI Parameters
None.
Body Parameters
ParamsName | Description | Type | Additional information |
---|---|---|---|
apiKey |
Please contact Caliq support to get your key |
string |
Required Max length: 30 |
Request Formats
application/json, text/json
Sample:
{ "apiKey": "sample string 1" }
application/xml, text/xml
Sample:
<Params xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <apiKey>sample string 1</apiKey> </Params>
Response Information
Resource Description
Returns:
200 OK Returns a list of supported marketing options methods as XML or JSON
400 Bad Request - parameters supplied cannot be properly interpreted
401 Not Authorised if supplied api key is not valid
204 No Content if there are no matching records in Caliq
503 Service Unavailable
Name | Description | Type | Additional information |
---|---|---|---|
MarketingOptions | Collection of MarketingOption |
None. |
Response Formats
application/json, text/json
Sample:
{ "MarketingOptions": [ { "ID": 1, "Description": "sample string 2", "OptDate": "sample string 3", "OptSource": "sample string 4", "OptMeta1": "sample string 5", "OptMeta2": "sample string 6" }, { "ID": 1, "Description": "sample string 2", "OptDate": "sample string 3", "OptSource": "sample string 4", "OptMeta1": "sample string 5", "OptMeta2": "sample string 6" } ] }
application/xml, text/xml
Sample:
<MarketingOptions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <MarketingOption> <ID>1</ID> <Description>sample string 2</Description> <OptDate>sample string 3</OptDate> <OptSource>sample string 4</OptSource> <OptMeta1>sample string 5</OptMeta1> <OptMeta2>sample string 6</OptMeta2> </MarketingOption> <MarketingOption> <ID>1</ID> <Description>sample string 2</Description> <OptDate>sample string 3</OptDate> <OptSource>sample string 4</OptSource> <OptMeta1>sample string 5</OptMeta1> <OptMeta2>sample string 6</OptMeta2> </MarketingOption> </MarketingOptions>