Loading...
Area: Episerver Service API
Applies to versions: 1 and higher

Catalog entry associations

Recommendations [hide]

This topic describes how to work with RESTful operations for catalog entry associations in the Episerver Service API.

In this topic

Example models

[Serializable]
public class NameValue
  {
    public string Name { get; set; }
    public string Value { get; set; }
  }
[Serializable]
public class ResourceLink
  {
    public string Title { get; set; }
    public string Type { get; set; }
    public string Href { get; set; }
    public List<NameValue> Properties { get; set; }
  }
[Serializable]
public class EntryAssociation
  {
    public int SortOrder { get; set; }
    public string Type { get; set; }
    public string CatalogEntryCode { get; set; }
    public ResourceLink CatalogEntry { get; set; }
  }
[Serializable]
public class Association
  {
    public int SortOrder { get; set; }
    public string Name { get; set; }
    public string CatalogEntryCode { get; set; }
    public string Description { get; set; }
    public List<EntryAssociation> EntryAssociations { get; set; }
  }

Get All Entry Associations

/episerverapi/commerce/entries/{entry code}/associations

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Get Entry Association

/episerverapi/commerce/entries/{entry code}/associations/{association name}

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Post Entry Association

/episerverapi/commerce/entries/{entry code}/associations

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Put Entry Association

/episerverapi/commerce/entries/{entry code}/associations/{association name}

Client Code Media Type JSON

Response JSON

204 No Content

Client Code Media Type XML

Response XML

204 No Content

Delete Entry Association

/episerverapi/commerce/entries/{entry code}/associations/{association name}

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Related topics

Do you find this information helpful? Please log in to provide feedback.

Last updated: Oct 20, 2016

Recommendations [hide]