getAllOrdersForProfile
get
/ccstore/v1/orders
Get All Orders For Profile. Retrieves all orders associated with the logged in user. Also if the user is approver, orders of other users of the organziation which are requiring approval will be sent, Optionally takes the x-ccasset-language headers to get translated content in another language. Also it can have optional X-CCOrganization header which is a JSON field to specify current Organization context of logged in user.
Request
Supported Media Types
- application/json
Query Parameters
- countOnly
-
Type:
booleanOnly return the count of orders for the current profile.- limit
Type:integerSpecifies 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
Type:integerStarting index.- q
Type:stringThis field specifies the query used to limit the orders returns. Defaults to RQL. To use SCIM use the queryFormat parameter- sort
Type:stringThis field specifies the sort order of the list to be fetched.Header Parameters- X-CCOrganization
-
Type:
stringCurrent organization context of the logged in user
Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : getAllOrdersForProfile_response- items
-
Type:
objectitemsAdditional Properties Allowed:List of all the orders from the profile.
Nested Schema : itemsType:objectList of all the orders from the profile.- creationDate
-
Type:
stringOrder creation date. - currencyCode
-
Type:
stringCurrency code for this order. - lastModifiedDate
-
Type:
stringlast modified date for this order. - orderId
-
Type:
stringId for this order. - priceListGroup
-
Type:
objectpriceListGroupAdditional Properties Allowed:The price list group object. - scheduledOrderId
-
Type:
stringScheduled order id if exists. - scheduledOrderName
-
Type:
stringScheduled order name if exists. - state
-
Type:
stringstate of the current order. - status
-
Type:
stringstatus of the current order. - submittedDate
-
Type:
stringOrder submitted date. - total
-
Type:
numbertotal price of the order.
Nested Schema : priceListGroupType:objectThe price list group object.- active
-
Type:
booleanActive status of the price list group. - currency
-
Type:
objectcurrencyAdditional Properties Allowed:The currency object. - deleted
-
Type:
booleanProperty to determine existence of the price list grou.p - displayName
-
Type:
stringDisplay name of the price list group. - id
-
Type:
stringID of the price list group. - listPriceList
-
Type:
objectlistPriceListAdditional Properties Allowed:List Pricelist object. - locale
-
Type:
stringLocale of the price list group. - repositoryId
-
Type:
stringRepository ID of the price list group. - salePriceList
-
Type:
objectsalePriceListAdditional Properties Allowed:Sale Price List object. - shippingSurchargePriceList
-
Type:
objectshippingSurchargePriceListAdditional Properties Allowed:Shipping Surcharge PriceList object.
Nested Schema : currencyType:objectThe currency object.- currencyCode
-
Type:
stringThe currency code. - displayName
-
Type:
stringDisplay name of the currency. - fractionalDigits
-
Type:
integerNumber of fractional digits for the currency. - numericCode
-
Type:
stringNumeric code of the currency. - repositoryId
-
Type:
stringRepository ID of the currency. - symbol
-
Type:
stringThe currency symbol.
Nested Schema : listPriceListType:objectList Pricelist object.- repositoryId
-
Type:
stringRepository ID of the list price list.
Nested Schema : salePriceListType:objectSale Price List object.- repositoryId
-
Type:
stringRepository ID of the sale price list.
Nested Schema : shippingSurchargePriceListType:objectShipping Surcharge PriceList object.- repositoryId
-
Type:
stringRepository ID of the shipping surcharge price list.
Example 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, "subTotal":699, "creationDate":"2015-12-02T11:56:34.000Z", "submittedDate":"2015-12-02T11:57:47.090Z", "totalWithoutTax":705.5, "total":705.5, "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, "subTotal":98, "creationDate":"2015-12-02T11:53:46.000Z", "submittedDate":"2015-12-02T11:55:18.000Z", "totalWithoutTax":104.5, "total":104.5, "state":"SUBMITTED", "currencyCode":"EUR", "stateDetailsAsUser":"Submitted to fulfillment", "status":"Submitted to fulfillment" } ] } ]Default ResponseThe error responseBodyRoot Schema : errorModelType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errorsNested Schema : itemsType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
[{ "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, "subTotal": 699, "creationDate": "2015-12-02T11:56:34.000Z", "submittedDate": "2015-12-02T11:57:47.090Z", "totalWithoutTax": 705.5, "total": 705.5, "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, "subTotal": 98, "creationDate": "2015-12-02T11:53:46.000Z", "submittedDate": "2015-12-02T11:55:18.000Z", "totalWithoutTax": 104.5, "total": 104.5, "state": "SUBMITTED", "currencyCode": "EUR", "stateDetailsAsUser": "Submitted to fulfillment", "status": "Submitted to fulfillment" } ] }]