getPurchaseList
get
                    /ccstore/v1/purchaseLists/{id}
Get Purchase List. This operation is used to get the Purchase list information of a from Oracle Commerce Cloud.
                Request
Supported Media Types
                - application/json
Path Parameters
                - 
                    id: string
                    
                    The ID of the requested Purchase list.
Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : getPurchaseList_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            accountId(optional): 
            string
            The id of the Organization.
- 
            creationDate(optional): 
            string
            The date when purchase list is created.
- 
            description(optional): 
            string
            Description for the purchase list.
- 
            dynamicProperty(optional): 
            object  dynamicProperty
            
            The value of the dynamic Property
- 
            id(optional): 
            string
            The Id of the purchase list.
- 
            items(optional): 
            array  items
            
            list of purchase list items
- 
            lastModifiedDate(optional): 
            string
            The last modified date for the purchase list.
- 
            name(optional): 
            string
            The name of the purchase list.
- 
            owner(optional): 
            object  owner
            
            The user who created this purchase list.
- 
            repositoryId(optional): 
            string
            Repository Id of the purchase list.
- sharedWithOthers(optional): boolean
- 
            siteId(optional): 
            string
            The Id of the site.
Nested Schema : dynamicProperty
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe value of the dynamic Property
    
    
    
    
    
    
    
    
    
    
Nested Schema : owner
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe user who created this purchase list.
    
    
    
    
        Show Source
        - 
            email(optional): 
            string
            The email id of the user
- 
            firstName(optional): 
            string
            The first name of the user
- 
            lastName(optional): 
            string
            The last name of the user
- 
            repositoryId(optional): 
            string
            respository Id of the user
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            catRefId(optional): 
            string
            catalog ref id
- 
            dynamicProperty(optional): 
            object  dynamicProperty
            
            The value of the dynamic Property
- 
            id(optional): 
            string
            Id of the purchase list item
- 
            productId(optional): 
            string
            The product id
- 
            quantityDesired(optional): 
            integer
            Quantity desired for the item
- 
            repositoryId(optional): 
            boolean
            repository id of purchase list item
Nested Schema : dynamicProperty
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe value of the dynamic Property
    
    
    
    
    
    
    
    
    
    
Example Response (application/json)
                    {
    "owner":{
        "lastName":"Anderson",
        "firstName":"Kim",
        "repositoryId":"se-570031",
        "id":"se-570031",
        "email":"kim@example.com"
    },
    "lastModifiedDate":"2017-09-27T09:48:22.000Z",
    "lastModifiedBy":{
        "lastName":"Anderson",
        "firstName":"Kim",
        "repositoryId":"se-570031",
        "id":"se-570031",
        "email":"kim@example.com"
    },
    "description":"Purchase List update",
    "creationDate":"2017-09-27T09:48:22.000Z",
    "dynamicProperty":"dynamicProperty value",
    "accountId":null,
    "repositoryId":"gl30074",
    "name":"Purchase List 2",
    "siteId":null,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccstoreui/v1/purchaseLists/gl30074"
        }
    ],
    "id":"gl30074",
    "items":[
        {
            "dynamicProperty":"dynamicProperty value",
            "productId":"Product_5Cx",
            "quantityDesired":30,
            "repositoryId":"gi10001",
            "id":"gi10001",
            "catRefId":"Sku_5Cxy"
        }
    ],
    "sharedWithOthers":false
}Default Response
The error response.
 The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|64102|Error while fetching the purchase list|
|64100|Invalid profile id|
|64132|Purchase list does not exist or you do not have access to it.|
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            errors(optional): 
            array  errors
            
            An optional list of errors if multiple errors were encountered
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code
- 
            type(optional): 
            string
            The URI to the HTTP state code definition
Nested Schema : errors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn optional list of errors if multiple errors were encountered
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code