Get all orders for profile
get
                    /ccstore/v1/orders
Retrieves all submitted orders associated with the profile in the currently authenticated session. If the profile is not logged in or is anonymous then the endpoint will fail. This endpoint is typically used to retrieve order history. 
                Note: Access to orders can be role based i.e. if the user is an approver, orders of other users within the organization, which are requiring approval, will be sent. This is primarily for B2B use cases.
Prerequisite: The user must be logged in. See REST API Authentication.
This endpoint supports SCIM filtering. See REST API query parameters.
Request
Supported Media Types
                - application/json
 
Query Parameters
                - 
                        countOnly(optional): boolean
                        
                        Only return the count of orders for the current profile.Default Value:
false - 
                        expand(optional): string
                        
                        Specify
profileto include shopper profile information in the response. - 
                        incompleteOnly(optional): boolean
                        
                        Only return the list of incomplete orders for the current profile.Default Value:
false - 
                        limit(optional): integer
                        
                        Specifies the number of orders to be retrieved starting from offset. In case this is not present, the complete list of orders for the profile is returned.
 - 
                        offset(optional): integer
                        
                        Starting index when paging through orders.
 - 
                        q(optional): string
                        
                        This field specifies the query used to limit the orders returns.
 - 
                        sort(optional): string
                        
                        This field specifies the sort order of the list to be fetched.Default Value:
submittedDate:desc 
Header Parameters
                - 
                        X-CCAsset-Language(optional): string
                        
                        Instructs the endpoint to use the specified locale code for content returned in the response. The locale supplied in the header must be supported by your store.
 - 
                        X-CCOrganization(optional): string
                        
                        Current organization context of the logged in user
 
Response
Supported Media Types
                - application/json
 
200 Response
Returned when the operation succeeds.
                
                
                    Root Schema : getAllOrdersForProfile_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            items(optional): 
            object  items
            
            List of all the orders from the profile.
 
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectList of all the orders from the profile.
    
    
    
    
        Show Source
        - 
            cartName(optional): 
            string
            Cart name for this order.
 - 
            creationDate(optional): 
            string
            Order creation date.
 - 
            currencyCode(optional): 
            string
            Currency code for this order.
 - 
            lastModifiedDate(optional): 
            string
            last modified date for this order.
 - 
            orderId(optional): 
            string
            ID for this order.
 - 
            priceListGroup(optional): 
            object  priceListGroup
            
            The price list group object.
 - 
            scheduledOrderId(optional): 
            string
            Scheduled order ID if exists.
 - 
            scheduledOrderName(optional): 
            string
            Scheduled order name if exists.
 - 
            siteId(optional): 
            string
            The ID of the site on which the order was placed.
 - 
            state(optional): 
            string
            State of the current order.
 - 
            stateDetailsAsUser(optional): 
            string
            Order State description for this order. Incorporates changes made by merchant from admin UI, if any.
 - 
            status(optional): 
            string
            Status of the current order.
 - 
            submittedDate(optional): 
            string
            Order submitted date.
 - 
            total(optional): 
            number
            total price of the order.
 
Nested Schema : priceListGroup
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe price list group object.
    
    
    
    
        Show Source
        - 
            active(optional): 
            boolean
            Active status of the price list group.
 - 
            currency(optional): 
            object  currency
            
            The currency object.
 - 
            deleted(optional): 
            boolean
            Property to determine existence of the price list grou.p
 - 
            displayName(optional): 
            string
            Display name of the price list group.
 - 
            id(optional): 
            string
            ID of the price list group.
 - 
            listPriceList(optional): 
            object  listPriceList
            
            List Pricelist object.
 - 
            locale(optional): 
            string
            Locale of the price list group.
 - 
            repositoryId(optional): 
            string
            Repository ID of the price list group.
 - 
            salePriceList(optional): 
            object  salePriceList
            
            Sale Price List object.
 - 
            shippingSurchargePriceList(optional): 
            object  shippingSurchargePriceList
            
            Shipping Surcharge PriceList object.
 
Nested Schema : currency
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe currency object.
    
    
    
    
        Show Source
        - 
            currencyCode(optional): 
            string
            The currency code.
 - 
            displayName(optional): 
            string
            Display name of the currency.
 - 
            fractionalDigits(optional): 
            integer
            Number of fractional digits for the currency.
 - 
            numericCode(optional): 
            string
            Numeric code of the currency.
 - 
            repositoryId(optional): 
            string
            Repository ID of the currency.
 - 
            symbol(optional): 
            string
            The currency symbol.
 
Nested Schema : listPriceList
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectList Pricelist object.
    
    
    
    
        Show Source
        - 
            repositoryId(optional): 
            string
            Repository ID of the list price list.
 
Nested Schema : salePriceList
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectSale Price List object.
    
    
    
    
        Show Source
        - 
            repositoryId(optional): 
            string
            Repository ID of the sale price list.
 
Nested Schema : shippingSurchargePriceList
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectShipping Surcharge PriceList object.
    
    
    
    
        Show Source
        - 
            repositoryId(optional): 
            string
            Repository ID of the shipping surcharge price list.
 
Example Response (application/json)
                    [
    {
        "total":2,
        "limit":-1,
        "items":[
            {
                "cost":6.5,
                "lastModifiedDate":"2015-12-02T11:57:47.100Z",
                "orderId":"o10030",
                "shippingSurchargeValue":0,
                "priceListGroup":{
                    "deleted":false,
                    "displayName":"UsDollar",
                    "listPriceList":{
                        "repositoryId":"listPrices"
                    },
                    "repositoryId":"UsDollar",
                    "active":true,
                    "salePriceList":{
                        "repositoryId":"salePrices"
                    },
                    "currency":{
                        "symbol":"$",
                        "displayName":"US Dollar",
                        "repositoryId":"en_US",
                        "fractionalDigits":2,
                        "currencyCode":"USD",
                        "numericCode":"840"
                    },
                    "id":"UsDollar",
                    "locale":"en_US",
                    "shippingSurchargePriceList":{
                        "repositoryId":"shippingSurchargePrices"
                    }
                },
                "tax":0,
                "cartName":"Test Name",
                "subTotal":699,
                "creationDate":"2015-12-02T11:56:34.000Z",
                "submittedDate":"2015-12-02T11:57:47.090Z",
                "totalWithoutTax":705.5,
                "total":705.5,
                "siteId":"siteUS",
                "state":"SUBMITTED",
                "currencyCode":"USD",
                "stateDetailsAsUser":"Submitted to fulfillment",
                "status":"Submitted to fulfillment"
            },
            {
                "cost":6.5,
                "lastModifiedDate":"2015-12-02T11:55:18.000Z",
                "orderId":"o10021",
                "shippingSurchargeValue":0,
                "priceListGroup":{
                    "deleted":false,
                    "displayName":"Euros",
                    "listPriceList":{
                        "repositoryId":"euros_listPrices"
                    },
                    "repositoryId":"euros",
                    "active":true,
                    "salePriceList":{
                        "repositoryId":"euros_salePrices"
                    },
                    "currency":{
                        "symbol":"???",
                        "displayName":"Euro",
                        "repositoryId":"de_DE_EURO",
                        "fractionalDigits":2,
                        "currencyCode":"EUR",
                        "numericCode":"978"
                    },
                    "id":"euros",
                    "locale":"de_DE_EURO",
                    "shippingSurchargePriceList":{
                        "repositoryId":"euros_shippingSurchargePrices"
                    }
                },
                "tax":0,
                "cartName":"Euro cart",
                "subTotal":98,
                "creationDate":"2015-12-02T11:53:46.000Z",
                "submittedDate":"2015-12-02T11:55:18.000Z",
                "totalWithoutTax":104.5,
                "total":104.5,
                "siteId":"siteUS",
                "state":"SUBMITTED",
                "currencyCode":"EUR",
                "stateDetailsAsUser":"Submitted to fulfillment",
                "status":"Submitted to fulfillment"
            }
        ]
    }
]
                    
                    Default Response
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
The error response:
                
                
                    | Error Code | Description | Possible Fix | 
|---|---|---|
| 28117 | Invalid offset or limit parameters defined. | Correct the parameter values and try again. | 
| 28314 | There was an error getting the order. | The current shopper context may be invalid or there may not be a current order selected for the logged in user. | 
The error response:
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