Salesforce Placeorder Rest API
Salesforce Placeorder Rest API
Guide
Version 36.0, Spring 16
@salesforcedocs
Last updated: January 22, 2016
Copyright 20002016 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc.,
as are other names and marks. Other marks appearing herein may be trademarks of their respective owners.
CONTENTS
Place Order REST API Developer Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Requirements and Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Understanding Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Defining Connected Apps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Understanding OAuth Endpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Understanding the Web Server OAuth Authentication Flow . . . . . . . . . . . . . . . . . . . . . . 4
Understanding the User-Agent OAuth Authentication Flow . . . . . . . . . . . . . . . . . . . . . . 9
Understanding the Username-Password OAuth Authentication Flow . . . . . . . . . . . . . . . 12
Understanding the OAuth Refresh Token Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Finding Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Understanding Place Order REST API Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Add a Contract and Orders to an Existing Account . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Add an Order to an Existing Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Add Orders to an Existing Contract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Add Order Products to an Existing Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Get Details About a Contract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Get Details About an Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Filter Details About a Contract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Filter Details About an Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Place Order REST API Resource Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Create Contract-based Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Contract-based Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Create Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Understanding Authentication
Understanding Authentication
Salesforce uses the OAuth protocol to allow users of applications to securely access data without having to reveal username and password
credentials.
Before making REST API calls, you must authenticate the application user using OAuth 2.0. To do so, youll need to:
Set up your application as a connected app in the Salesforce organization.
Determine the correct Salesforce OAuth endpoint for your connected app to use.
Authenticate the connected app user via one of several different OAuth 2.0 authentication flows. An OAuth authentication flow
defines a series of steps used to coordinate the authentication process between your application and Salesforce. Supported OAuth
flows include:
Web server flow, where the server can securely protect the consumer secret.
User-agent flow, used by applications that cannot securely store the consumer secret.
Username-password flow, where the application has direct access to user credentials.
After successfully authenticating the connected app user with Salesforce, youll receive an access token which can be used to make
authenticated REST API calls.
IN THIS SECTION:
Defining Connected Apps
To authenticate using OAuth, you must create a connected app that defines your applications OAuth settings for the Salesforce
organization.
Understanding OAuth Endpoints
OAuth endpoints are the URLs you use to make OAuth authentication requests to Salesforce.
Understanding the Web Server OAuth Authentication Flow
The Web server authentication flow is used by applications that are hosted on a secure server. A critical aspect of the Web server
flow is that the server must be able to protect the consumer secret. You can also use code challenge and verifier values in the flow
to prevent authorization code interception.
If youre verifying authentication on a sandbox organization, use test.salesforce.com instead of login.salesforce.com in all the OAuth
endpoints listed above.
1. The application redirects the user to the appropriate Salesforce authorization endpoint, such as
https://login.salesforce.com/services/oauth2/authorize. The following parameters are required:
Parameter
Description
response_type
client_id
Parameter
Description
redirect_uri
Description
code_challenge
display
immediate
Parameter
Description
login_hint
nonce
prompt
scope
state
2. The user logs into Salesforce with their credentials. The user is interacting with the authorization endpoint directly, so the application
never sees the users credentials. After successfully logging in, the user is asked to authorize the application. Note that if the user has
already authorized the application, this step is skipped.
3. After Salesforce confirms that the client application is authorized, the end-users Web browser is redirected to the callback URL
specified by the redirect_uri parameter. Salesforce appends authorization information to the redirect URL with the following
values:
Parameters
Description
code
Parameters
Description
state
The state value that was passed in as part of the initial request,
if applicable.
An example callback URL with authorization information might look something like:
https://www.mysite.com/authcode_callback?code=aWekysIEeqM9PiT
hEfm0Cnr6MoLIfwWyRJcqOqHdF8f9INokharAS09ia7UNP6RiVScerfhc4w%3D%3D
4. The application extracts the authorization code and passes it in a request to Salesforce for an access token. This request is a POST
request sent to the appropriate Salesforce token request endpoint, such as
https://login.salesforce.com/services/oauth2/token. The following parameters are required:
Parameter
Description
grant_type
client_id
client_secret
redirect_uri
code
Description
client_assertion
client_assertion_type
code_verifier
Parameter
Description
base64url encoded as defined here:
https://tools.ietf.org/html/rfc4648#section-5.
format
urlencoded
json
xml
The return format can also be specified in the header of the
request using one of the following:
Accept:
application/x-www-form-urlencoded
Accept: application/json
Accept: application/xml
5. If this request is successful, the server returns a response body that contains the following:
Parameters
Description
access_token
Parameters
Description
refresh_token
Token that can be used in the future to obtain new access tokens.
Warning: This value is a secret. You should treat it like
the user's password and use appropriate measures to
protect it.
instance_url
id
Identity URL that can be used to both identify the user as well
as query for more information about the user. Can be used in an
HTTP request to get more information about the end user.
issued_at
signature
6. The application uses the provided access token and refresh token to access protected user data.
1. The application redirects the user to the appropriate Salesforce authorization endpoint, such as
https://login.salesforce.com/services/oauth2/authorize. The following parameters are required:
Parameter
Description
response_type
client_id
redirect_uri
Description
display
10
Parameter
Description
mobileMobile optimized dialog designed for
smartphones such as BlackBerry OS 5 that dont support
touch screens.
scope
state
2. The user logs into Salesforce with their credentials. The user interacts with the authorization endpoint directly, so the application
never sees the users credentials.
3. Once authorization is granted, the authorization endpoint redirects the user to the redirect URL. This URL is defined in the remote
access application created for the application. Salesforce appends access token information to the redirect URL with the following
values:
Parameters
Description
access_token
expires_in
refresh_token
Token that can be used in the future to obtain new access tokens.
Warning: This value is a secret. You should treat it like
the user's password and use appropriate measures to
protect it.
The refresh token is only returned if the redirect URI is
https://login.salesforce.com/services/oauth2/success
The state value that was passed in as part of the initial request,
if applicable.
instance_url
id
Identity URL that can be used to both identify the user as well
as query for more information about the user. Can be used in an
HTTP request to get more information about the end user.
11
Parameters
Description
issued_at
signature
An example callback URL with access information appended after the hash sign (#) might look something like:
https://www.mysite.com/user_callback.jsp#access_token=00Dx0000000BV7z%21AR8
AQBM8J_xr9kLqmZIRyQxZgLcM4HVi41aGtW0qW3JCzf5xdTGGGSoVim8FfJkZEqxbjaFbberKGk
8v8AnYrvChG4qJbQo8&refresh_token=5Aep8614iLM.Dq661ePDmPEgaAW9Oh_L3JKkDpB4xR
eb54_pZfVti1dPEk8aimw4Hr9ne7VXXVSIQ%3D%3D&expires_in=7200&state=mystate
4. The application uses the provided access token and refresh token to access protected user data.
Keep the following considerations in mind when using the user-agent OAuth flow:
Because the access token is encoded into the redirection URI, it might be exposed to the end-user and other applications residing
on the computer or device. If youre authenticating using JavaScript, call window.location.replace(); to remove the
callback from the browsers history.
12
1. The application uses the users username and password to request an access token. This is done via an out-of-band POST request
to the appropriate Salesforce token request endpoint, such as
https://login.salesforce.com/services/oauth2/token. The following request fields are required:
Parameter
Description
grant_type
client_id
client_secret
username
End-users username.
password
End-users password.
Note: You must append the users security token to their
password A security token is an automatically-generated
key from Salesforce. For example, if a user's password is
mypassword, and their security token is XXXXXXXXXX,
then the value provided for this parmeter must be
mypasswordXXXXXXXXXX. For more information on
security tokens see Reset Your Security Token in the
online help.
13
2. Salesforce verifies the user credentials, and if successful, sends a response to the application with the access token. This response
contains the following values:
Parameters
Description
access_token
instance_url
id
Identity URL that can be used to both identify the user as well
as query for more information about the user. Can be used in an
HTTP request to get more information about the end user.
issued_at
signature
3. The application uses the provided access token to access protected user data.
Keep the following considerations in mind when using the user-agent OAuth flow:
Since the user is never redirected to login at Salesforce in this flow, the user cant directly authorize the application, so no refresh
tokens can be used. If your application requires refresh tokens, you should consider using the Web server or user-agent OAuth flow.
14
The client application obtains a new access token by sending a POST request to the token request endpoint with the following request
parameters:
Parameters
Description
grant_type
refresh_token
client_id
client_secret
format
Accept: application/json
Accept: application/xml
This parameter is optional.
Once Salesforce verifies the refresh token request, it sends a response to the application with the following response body parameters:
Parameters
Description
access_token
Access token that acts as a session ID that the application uses for
making requests. This token should be protected as though it were
user credentials.
instance_url
id
Identity URL that can be used to both identify the user as well as
query for more information about the user. Can be used in an HTTP
request to get more information about the end user.
issued_at
15
Parameters
Description
signature
Keep in mind the following considerations when using the refresh token OAuth process:
The session timeout for an access token can be configured in Salesforce from Setup by entering Session Settings in the
Quick Find box, then selecting Session Settings.
If the application uses the username-password OAuth authentication flow, no refresh token is issued, as the user cannot authorize
the application in this flow. If the access token expires, the application using username-password OAuth flow must re-authenticate
the user.
16
17
"quantity": "1",
"UnitPrice": "10"
}
]
}
}
]
}
}
]
}
18
}
} ]
}
19
"records" : [ {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CKp8IAG"
},
"Id" : "802D0000000CKp8IAG"
} ]
}
} ]
}
20
"PricebookEntryId": "01uD0000001cAkMIAU",
"quantity": "2",
"UnitPrice": "20"
}
]
}
},
{
"attributes": {
"type": "Order"
},
"EffectiveDate": "2013-10-11",
"Status": "Draft",
"billingCity": "SFO-Inside-OrderEntity-1",
"contractId": "800D0000000PFL8IAO",
"pricebook2Id": "01sD0000000G2JbIAK",
"OrderItems": {
"records": [
{
"attributes": {
"type": "OrderItem"
},
"PricebookEntryId": "01uD0000001cAkRIAU",
"quantity": "11",
"UnitPrice": "10"
},
{
"attributes": {
"type": "OrderItem"
},
"PricebookEntryId": "01uD0000001cAkWIAU",
"quantity": "2",
"UnitPrice": "20"
},
{
"attributes": {
"type": "OrderItem"
},
"PricebookEntryId": "01uD0000001cAkgIAE",
"quantity": "14",
"UnitPrice": "10"
}
]
}
}
]
}
}
]
}
21
"done" : true,
"records" : [ {
"attributes" : {
"type" : "Contract"
},
"Orders" : {
"totalSize" : 2,
"done" : true,
"records" : [ {
"attributes" : {
"type" : "Order",
"url" : "/services/data/v29.0/sobjects/Order/801D0000000G0xsIAC"
},
"Id" : "801D0000000G0xsIAC",
"OrderItems" : {
"totalSize" : 2,
"done" : true,
"records" : [ {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v29.0/sobjects/OrderItem/802D0000000CKoPIAW"
},
"Id" : "802D0000000CKoPIAW"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v29.0/sobjects/OrderItem/802D0000000CKoQIAW"
},
"Id" : "802D0000000CKoQIAW"
} ]
}
}, {
"attributes" : {
"type" : "Order",
"url" : "/services/data/v29.0/sobjects/Order/801D0000000G0xtIAC"
},
"Id" : "801D0000000G0xtIAC",
"OrderItems" : {
"totalSize" : 3,
"done" : true,
"records" : [ {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v29.0/sobjects/OrderItem/802D0000000CKoRIAW"
},
"Id" : "802D0000000CKoRIAW"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v29.0/sobjects/OrderItem/802D0000000CKoSIAW"
},
"Id" : "802D0000000CKoSIAW"
}, {
"attributes" : {
22
"type" : "OrderItem",
"url" : "/services/data/v29.0/sobjects/OrderItem/802D0000000CKoTIAW"
},
"Id" : "802D0000000CKoTIAW"
} ]
}
} ]
}
} ]
}
23
24
"records" : [ {
"attributes" : {
"type" : "Order",
"url" : "/services/data/v30.0/sobjects/Order/801D0000000FqzsIAC"
},
"Id" : "801D0000000FqzsIAC",
"OrderItems" : {
"totalSize" : 3,
"done" : true,
"records" : [ {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CJX0IAO"
},
"Id" : "802D0000000CJX0IAO"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CJYDIA4"
},
"Id" : "802D0000000CJYDIA4"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CKFCIA4"
},
"Id" : "802D0000000CKFCIA4"
} ]
},
"Custom_Objects__r" : null
}, {
"attributes" : {
"type" : "Order",
"url" : "/services/data/v30.0/sobjects/Order/801D0000000FpNEIA0"
},
"Id" : "801D0000000FpNEIA0",
"OrderItems" : {
"totalSize" : 3,
"done" : true,
"records" : [ {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CIWBIA4"
},
"Id" : "802D0000000CIWBIA4"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CIWCIA4"
},
"Id" : "802D0000000CIWCIA4"
}, {
"attributes" : {
"type" : "OrderItem",
25
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CIWDIA4"
},
"Id" : "802D0000000CIWDIA4"
} ]
},
"Custom_Objects__r" : null
}, {
"attributes" : {
"type" : "Order",
"url" : "/services/data/v30.0/sobjects/Order/801D0000000FqztIAC"
},
"Id" : "801D0000000FqztIAC",
"OrderItems" : null,
"Custom_Objects__r" : null
}, {
"attributes" : {
"type" : "Order",
"url" : "/services/data/v30.0/sobjects/Order/801D0000000FpkNIAS"
},
"Id" : "801D0000000FpkNIAS",
"OrderItems" : null,
"Custom_Objects__r" : null
} ]
},
"Test_Contract1__r" : null
} ]
}
26
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CKIHIA4"
},
"Id" : "802D0000000CKIHIA4"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CKIGIA4"
},
"Id" : "802D0000000CKIGIA4"
} ]
},
"Custom_Objects__r" : null
} ]
}
27
},
"Id" : "802D0000000CIWBIA4"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CIWCIA4"
},
"Id" : "802D0000000CIWCIA4"
}, {
"attributes" : {
"type" : "OrderItem",
"url" : "/services/data/v30.0/sobjects/OrderItem/802D0000000CIWDIA4"
},
"Id" : "802D0000000CIWDIA4"
} ]
},
"Custom_Objects__r" : null
} ]
},
"Test_Contract1__r" : null
} ]
}
28
},
"Custom_Objects__r" : null
} ]
}
Supported
Description
HTTP Method
/services/data/latest API
version/commerce/sale
POST
/services/data/latest API
version/commerce/sale/contract ID
PATCH, GET
/services/data/latest API
version/commerce/sale/order
POST
/services/data/latest API
PATCH, GET
version/commerce/sale/order/order ID
Syntax
URI
/services/data/latest API version/commerce/sale
29
Request body
Property
Type
Description
Since
Version
attributes
Attributes
30.0
AccountId
String
30.0
Status
String
30.0
Orders
Orders[]
30.0
CustomObject__r
Custom
Objects[]
30.0
Property
Type
Description
Since
Version
type
String
30.0
Attributes
Orders
Property
Type
Description
Since
Version
attributes
Attributes
30.0
Status
String
30.0
Pricebook2Id
String
30.0
OrderItems
Order Products[]
30.0
CustomObject__r
30.0
Type
Description
Since
Version
attributes
Attributes
30.0
Id
String
30.0
30
Order Products
Property
Type
Description
Since
Version
attributes
Attributes
30.0
PricebookEntryId
String
30.0
quantity
Number
30.0
UnitPrice
Currency
30.0
Request parameters
None
Response body
Property
Type
Description
totalSize
Number
done
Boolean
records
Records[]
Property
Type
Description
attributes
Attributes
Id
String
Property
Type
Description
type
String
url
String
Resource URL.
Records
Attributes
Example
See Add a Contract and Orders to an Existing Account on page 17.
Usage
You can only create one contract at a time. You cant POST new orders onto an existing contract. For that, see the Contract-based Orders
resource.
31
Contract-based Orders
Contract-based Orders
With this resource, you can add one or more new orders to an existing contract, as well as order products and custom object records
for each order, or you can retrieve data for a specific contract.
If available, GET method retrieves the contracts child orders and order products, as well as custom objects under the contract and orders.
Syntax
URI
/services/data/latest API version/commerce/sale/contractId
Description
Since
Version
contract
The object name of the record being filtered. In this resource, this is always 30.0
contract.
32
Contract-based Orders
Parameters
Description
Since
Version
orders
The relationship name of the field that the orders data will be filtered by. 30.0
In this resource, this is always orders.
field name
The field whose value to filter by. For example, if you want to only retrieve 30.0
orders with a status category, the field name is StatusCode.
value
The value to filter by. For example, if you want to only retrieve orders
with a status category of Activated, the value is Activated.
30.0
Request body
Property
Type
Description
Since
Version
attributes
Attributes
30.0
Id
String
30.0
Orders
Orders[]
30.0
Attributes
Property
Type
Description
Since
Version
type
String
30.0
Property
Type
Description
Since
Version
attributes
Attributes
30.0
Status
String
30.0
contractId
String
30.0
pricebook2Id
String
30.0
OrderItems
30.0
CustomObject__r
Custom
Objects[]
30.0
Order Records
33
Contract-based Orders
Order Products
Property
Type
Description
Since
Version
attributes
Attributes
30.0
30.0
PricebookEntryId String
quantity
Number
30.0
UnitPrice
Currency
30.0
Property
Type
Description
Since
Version
attributes
Attributes
30.0
Id
String
30.0
Custom Objects
Response body
Property
Type
Description
totalSize
Number
done
Boolean
records
Records[]
Records
Property
Type
Description
attributes
Attributes
Id
String
Property
Type
Description
type
String
url
String
Resource URL.
Attributes
34
Create Order
Examples
Add Orders to an Existing Contract on page 20
Get Details About a Contract on page 24
Filter Details About a Contract on page 27
Create Order
With this resource, you can create a new order with order products and custom objects.
If you dont want to add the order to a contract, you can add it directly to an account. You can only create one new order per call. The
request body must have either an account or a contract as its parent record, and it must have a reference to a price book.
Syntax
URI
/services/data/latest API version/commerce/sale/order
Type
Description
Since
Version
attributes
Attributes
30.0
OrderItems
30.0
CustomObject__r
30.0
Attributes
Property
Type
Description
Since
Version
type
String
30.0
url
String
Resource URL.
30.0
35
Create Order
Order Products
Property
Type
Description
Since
Version
attributes
Attributes
30.0
PricebookEntryId
String
Unique record identifier for the associated price book entry. 30.0
quantity
Number
30.0
UnitPrice
Currency
30.0
Id
String
30.0
Property
Type
Description
Since
Version
attributes
Attributes
30.0
Id
String
30.0
Custom Objects
Request parameters
None
Response body
Property
Type
Description
totalSize
Number
done
Boolean
records
Records[]
Records
Property
Type
Description
attributes
Id
String
Property
Type
Description
type
String
Attributes
36
Order
Property
Type
Description
url
String
Resource URL.
Example
See Add an Order to an Existing Account on page 19.
Order
Use this resource to add one or more new order products and custom object records to an existing order or to retrieve data for a specific
order.
You can only PATCH one order at a time.
If available, GET method retrieves the orders child order products and custom objects under the order or order products.
Syntax
URI
/services/data/latest API version/commerce/sale/order/order ID
Type
Description
Since
Version
attributes
Attributes
30.0
OrderItems
Order
Products
30.0
CustomObject__r
Custom
Object
30.0
37
Order
Attributes
Property
Type
Description
Since
Version
type
String
30.0
Property
Type
Description
Since
Version
attributes
Attributes
30.0
30.0
Order Products
PricebookEntryId String
quantity
Number
30.0
UnitPrice
Currency
30.0
orderId
String
30.0
Id
String
30.0
Property
Type
Description
Since
Version
attributes
Attributes
30.0
Id
String
30.0
Custom Objects
Request parameters
You can use parameters for all standard and custom fields on contracts, orders, order products, and any custom objects directly
related to these objects.
The parameters must be fully qualified. For example: objectname.relationshipname.fieldname=value.
Object name must be all lower-case.
Relationship name must match what is defined on the object and is case-sensitive.
Field name isnt case sensitive.
If the value is a string, it must be encased in single quotation marks. If the value is a number, it must not be encased. If the
value is a date, it should be in the YYYY-MM-DD format.
You can use multiple parameter fields, separated by "&", to make more detailed filters. For example:
/services/data/v30.0/commerce/sale/{contractId}?contract.status='Activated'
&contract.Orders.status='Draft'&contract.Orders.OrderItems.unitprice=300
38
Order
Description
order
orderItems
The relationship name of the field that the orders data will be
filtered by. In this resource, this is always orderItems.
field name
The field whose value to filter by. For example, if you want to
only retrieve order products with a certain start date, the field
name is effectivedate.
value
The value to filter by. For example, if you want to only retrieve
order products that started on January 1, 2013, the value is
20130101.
Response body
Property
Type
Description
totalSize
Number
records
Records[]
Records
Property
Type
Description
attributes
Attributes
Id
String
Property
Type
Description
type
String
url
URI
Resource URL.
Attributes
Examples
Add Order Products to an Existing Order on page 23
Get Details About an Order on page 26
Filter Details About an Order on page 28
39
INDEX
A
R
Reference 29
Requirements 1
Resource
GET data for an order 37
GET filtered data for an order 37
PATCH custom object, on existing order 37
PATCH custom object, on new order product 37
PATCH existing order 37
PATCH order products, on existing order 37
Resources
examples 16
GET data for a contract 32
GET filtered data for a contract 32
PATCH custom object, on existing contract 32
PATCH custom object, on new order 32
PATCH existing contract 32
PATCH orders and order products, on existing contract 32
POST an order 35
POST contract 29
POST custom object records, on contract-based orders 29
POST custom object records, on new contract 29
POST custom object records, on new order 35
POST custom object records, on new order products 35
POST order products, on new contract-based orders 29
POST order products, on new order 35
POST orders, on new contract 29
G
Get contract data
filtered 27
unfiltered 24
Get order data
filtered 28
unfiltered 26
I
Introduction 1
L
Limitations 1
Limits, general 1
O
OAuth
Additional resources 16
Refresh token 14
User-agent OAuth flow 9
Username-password OAuth flow 12
Web server OAuth flow 4
40