Orders
Last updated
Last updated
handle the purchases of end customers. You can create, retrieve, update, and list all orders.
Get all orders.
/orders
A filter on the list based on the createdTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the updatedTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.
A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.
A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.
Only return objects with these IDs.
Only return objects with these upstreamIds.
A filter on the list based on the totalAmount field. The value can be a string or it can be a dictionary with the following options: - eq-return values where the amount field equals to this amount - gt-return values where the amount field is greater than this amount - gte-return values where the amount field is greater than or equal to this amount - lt-return values where the amount field is less than this amount - lte-return values where the amount field is less than or equal to this amount
Only return objects in the given state
Only return orders for the given customer
Only return orders for the given application
Only return orders with the given email
Only return orders in the given currency
Only return orders containing this sku
A filter on the list based on the order stateTransitions in_review field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order stateTransitions pending_payment field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order stateTransitions accepted field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order stateTransitions blocked field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order stateTransitions cancelled field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order stateTransitions fulfilled field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order stateTransitions complete field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order stateTransitions returned field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
Only return orders in the given fraudState
A filter on the list based on the order fraudStateTransitions blocked field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order fraudStateTransitions review_opened field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
A filter on the list based on the order fraudStateTransitions passed field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
Only return checkouts with this browser IP
Only return orders with this charge type
Only return orders with this subscription identifier
Only return orders with this refunded amount
Only return checkouts with this locale
Only return checkouts with this customer type
Creates a new order.
/orders
The unique identifier of a checkout.
5823594809
The identifier of the Customer associated with the Checkout.
5774321009
The unique identifier of a Source.
src_a78cfeae-f7ae-4719-8e1c-d05ec04e4d37
A three-letter ISO 4217 currency code.
USD
The customer's email address.
jsmith@digitalriver.com
A designator that combines the two-letter ISO 639-1 language code with the ISO 3166-1 alpha-2 country code.
en-US
An arbitrary string identifier that can be used to track the application type.
68f72e0c-cb7d-48e1-93c8-998668ad0ff4
The IP address of the browser used by the customer when placing the order.
111.111.111.111
Represents the total amount of credit you are extending to the customer.
10
The address from which a physical product is shipped.
The ship to addresss of the customer.
Represents the shipping amount, description, taxes, and service level.
The applied discount.
The applied discount.
If <code>true</code>, indicates that the prices supplied are tax inclusive.
true
Represents the charge type.
merchant_initiated
customer_initiated
, merchant_initiated
, moto
The type of customer.
individual
business
, individual
Key-value pairs used to store additional data. Value can be string, boolean or integer types.
{"coupon":"iOS"}
Used to create a tax estimate for the customer.
The user checkout identifier if it is different from the Digital River checkout identifier.
7765374748
[{"skuId":"5823594809","price":9.99,"discount":{"quantity 1":null,"amountOff":10}},{"skuId":"5823594809","price":9.99,"quantity":2,"discount":{"quantity 2":null,"amountOff":10}},{"skuId":"9234276173","price":9.99,"quantity":2}]
Retrieves the details of an order. Supply the unique identifier of the order you would like to retrieve.
/orders/{id}
Order ID
Updates an existing order.
/orders/{id}
Order ID
If <code>true</code>, indicates the user who placed the order has requested this order be forgotten.
true
Key-value pairs used to store additional data. Value can be string, boolean or integer types.
{"coupon":"iOS"}