Get Details About an Order

Here’s an example of a GET request using the Order resource to query details about an order and its order products and custom object records.

Example usage 

1/services/data/v30.0/commerce/sale/order/801D0000000FzsM

Example request body 

None

Example JSON response body 

1{
2  "totalSize" : 1,
3  "done" : true,
4  "records" : [ {
5    "attributes" : {
6      "type" : "Order",
7      "url" : "/services/data/v30.0/sobjects/Order/801D0000000FzsMIAS"
8    },
9    "Id" : "801D0000000FzsMIAS",
10    "OrderItems" : {
11      "totalSize" : 2,
12      "done" : true,
13      "records" : [ {
14        "attributes" : {
15          "type" : "OrderItem",
16          "url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CKIHIA4"
17        },
18        "Id" : "802D0000000CKIHIA4"
19      }, {
20        "attributes" : {
21          "type" : "OrderItem",
22          "url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CKIGIA4"
23        },
24        "Id" : "802D0000000CKIGIA4"
25      } ]
26    },
27    "Custom_Objects__r" : null
28  } ]
29}