POST api/v2/favorites/retailers
Request Information
URI Parameters
None.
Body Parameters
RetailerFavoritesRequestName | Description | Type | Additional information |
---|---|---|---|
ApiKey | globally unique identifier |
Required |
|
ApplicationVersion | integer |
Required |
|
Udid | string |
Required |
|
UserID | globally unique identifier |
Required |
|
ZoneID | integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "ApiKey": "03506259-0be2-45ba-aaf7-5cca69a707d6", "ApplicationVersion": 2, "Udid": "sample string 3", "UserID": "8672a3ee-e6dc-48e6-93fb-259a9ab999c0", "ZoneID": 5 }
application/xml, text/xml
Sample:
<RetailerFavoritesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models.Favorites.v2"> <ApiKey xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models">03506259-0be2-45ba-aaf7-5cca69a707d6</ApiKey> <ApplicationVersion xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models">2</ApplicationVersion> <Udid xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models">sample string 3</Udid> <UserID xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models">8672a3ee-e6dc-48e6-93fb-259a9ab999c0</UserID> <ZoneID xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models">5</ZoneID> </RetailerFavoritesRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
RetailerFavoritesResultName | Description | Type | Additional information |
---|---|---|---|
LeafletRetailerIDs | Collection of globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{ "LeafletRetailerIDs": [ "2f518cf7-6b9c-4923-8ea9-77b9cd4beb29", "1bf53156-4314-4d8f-9a35-6eeefb9b323d" ] }
application/xml, text/xml
Sample:
<RetailerFavoritesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models.Favorites.v2"> <LeafletRetailerIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>2f518cf7-6b9c-4923-8ea9-77b9cd4beb29</d2p1:guid> <d2p1:guid>1bf53156-4314-4d8f-9a35-6eeefb9b323d</d2p1:guid> </LeafletRetailerIDs> </RetailerFavoritesResult>