The Orders resource in the Digital River API facilitates the management of end-customer purchases. It provides comprehensive functionalities to create, retrieve, update, and list orders. This resource is essential for tracking sales, processing transactions, and managing inventory. By using the Orders API, businesses can streamline their order management workflow and enhance customer experience.
Returns a list of orders
get
Get all orders.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
endingBeforestringOptional
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.
startingAfterstringOptional
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.
limitinteger · min: 1 · max: 100Optional
A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.
idsstring[]Optional
Only return objects with these IDs.
upstreamIdsstring[]Optional
Only return objects with these upstreamIds.
statestringOptional
Only return objects in the given state
customerIdstringOptional
Only return orders for the given customer
checkoutIdstringOptional
Only return orders for the given checkout
applicationIdstringOptional
Only return orders for the given application
emailstringOptional
Only return orders with the given email
currencystringOptional
Only return orders in the given currency
skuIdstringOptional
Only return orders containing this sku
fraudStatestringOptional
Only return orders in the given fraudState
browserIpstringOptional
Only return checkouts with this browser IP
chargeTypestringOptional
Only return orders with this charge type
subscriptionIdstringOptional
Only return orders with this subscription identifier
A designator that combines the two-letter ISO 639-1 language code with the ISO 3166-1 alpha-2 country code.
Example: en_IE
invoiceAttributeIdstringOptional
The unique identfier of the invoice attribute.
Example: 95f72e0c-cb7d-48e1-93c8-998668ad0ff4
applicationIdstringOptional
An arbitrary string identifier that can be used to track the application type.
Example: 68f72e0c-cb7d-48e1-93c8-998668ad0ff4
browserIpstringOptional
The IP address of the browser used by the customer when placing the order.
Example: 111.111.111.111
taxInclusivebooleanOptional
If true, indicates that the prices supplied are tax inclusive.
Example: true
chargeTypestring · enumOptional
Represents the charge type.
Example: merchant_initiatedPossible values:
customerTypestring · enumOptional
The type of customer.
Example: individualPossible values:
upstreamIdstringOptional
Any identifier that you want to associate with the resource. For tracking purposes, we recommend you provide the universally unique identifier (UUID) that identifies the corresponding order in your system. Unlike metadata, you can use this value as a query parameter in GET requests.
Example: 7765374748
Responses
201
201 Created
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
post
/orders
Gets an order by ID
get
Retrieves the details of an order. Supply the unique identifier of the order you would like to retrieve.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Order ID
Query parameters
expandbooleanOptional
Enhanced Payload
Responses
200
OK.
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
404 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
/orders/{id}
Updates an existing order
post
Updates an existing order.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Order ID
Body
requestToBeForgottenbooleanOptional
If true, indicates the user who placed the order has requested this order be forgotten.
Default: falseExample: true
upstreamIdstring | nullableOptional
The upstream identifier.
Example: 0916805858
Responses
200
200 OK
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
401 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
post
/orders/{id}
Refreshes an existing order
post
Refreshes an order so payment.session.stateand/or state can be checked.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Order ID
Responses
200
OK.
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
404 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
post
/orders/{id}/refresh
Lists an order's tax details
get
Retrieves the tax details of each line item in an order. You're required to specify the order's identifier as a path parameter.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.