The AssortmentException JSON object represents an exception when trying to add or remove an item from an assortment.  The item is represented either by the dscoItemId or by a  key (ItemKey) other than dscoItemId - such as UPC.

- Make sure you're familiar with JSON before continuing.
- The JSON objects are defined using Orderly.  Optional attrs end with a "?" all others are required.

- isodate fields use one of these ISO 8601 format: 2014-01-01T10:30:00.000+01:00, 2014-01-01T10:30:00.000+0100, 2014-01-01T10:30:00.000Z
- Dsco reserves the right to add new attributes at any time so Partners should ensure their validators won't break should this happen

Definition

    Object
{
    int dscoItemId?;      # Uniquely identifies an item using Dsco's ID
                          # if present, itemKey must not be
    ref ItemKey itemKey?; # Unqiuely identifies an item using an ID
                          # other than dscoItemId (such as UPC)
                          # if present, dscoItemId must not be
    string exceptionType[ITEM_INVALID,            # Could not find item specified
                         ITEM_ALREADY_ADDED,      # Item already added to assortment
                         ITEM_NOT_IN_ASSORTMENT]; # Item is not in the assortment
};
  

Example

    {
    "dscoItemId": 234242,
    "exceptionType": "ITEM_INVALID"
}
  
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.