Orders
Learn more about the orders resource
Orders handle customers' purchases. When you create an order, you instruct Digital River, the authorized reseller, to send an authorization request to start the collection process.
The data of an order persist, acting as a permanent record of the sale, which Digital River is required to maintain for auditing purposes.
An order maintains an enduring record of when it was placed, a charge is created and captured, a refund is processed, and other key events in the order lifecycle occur. More specifically, an order persists:
A charge containing a payment source, an amount charged to that source, and the state of the charge
The following diagram depicts the relationship between an order and other resources in the Digital River APIs.
To ensure that your integration is functioning properly, you can create test orders using the information contained in the Testing Scenarios page.
The orders resource
In the following section, you'll find information on some of an order's attributes and how you might use them in downstream requests. For a complete list, refer to the Orders API reference documentation.
Unique identifier
An order contains a unique id
. You can use this identifier when initiating physical fulfillments, cancelling shipments, capturing and cancelling payments, creating physical returns, handling third-party returns, and issuing refunds.
Ship to values
An order's shipTo
values are displayed on invoices and credit memos.
Amounts, fees, and taxes
The total amount, fees, taxes, and other costs of the order are the same as those presented to customers when they confirm the purchase. You can retrieve these values and display them on the customer's order confirmation page.
Line items
Digital River assigns each of an order's items[]
a unique id
. You need this identifier when capturing and cancelling payments, handling third-party returns, and issuing refunds.
Depending on how you send product data in checkouts, each of an order's items[]
also contains either a skuId
or a productDetails
object.
In addition, these items[]
store detailed price, tax, and quantity information that you can display to customers on order confirmation and order detail pages.
For more information on subscriptionInfo
, refer to the Subscription information page.
Tax invoices and credit memos
In most cases, Digital River populates an order's invoicePDFs
and creditMemoPDFs
with information that you can use to access and share tax invoices and credit memo files.
State and fraud state
For more information about an order's state
and fraudState
, refer to the Order lifecycle page.
Tax identifiers
Orders with applied tax identifiers contain an array of tax identifier objects.
Charges
An order's charges[]
contains one or more elements, each representing a charge created from a primary or secondary payment source. Each charge contains a unique identifier, an amount
, a state
, and the identifier of the payment source used to create the charge.
Request to be forgotten
An order's requestToBeForgotten
indicates whether an order's data is scheduled for deletion. This is the only attribute (other than metadata
) that can be modified in an update order request.
Last updated