Sales transactions

Sales Transactions in the Digital River API provide a detailed record of costed sales, allowing you to track and manage individual or multiple transactions effectively. This resource offers robust tools for retrieving sales data, which is essential for financial analysis and reporting. By leveraging these transactions, businesses can gain insights into their sales performance and optimize their revenue streams.

Returns a list of sales transactions

get

Get all sales transactions.

Query parameters
createdTimestring · date-timeOptional

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:

  • gt–return values where the createdTime field is after this timestamp
  • gte–return values where the createdTime field is after or equal to this timestamp
  • lt–return values where the createdTime field is before this timestamp
  • lte–return values where the createdTime field is before or equal to this timestamp
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.

saleTimestring · date-timeOptional

A filter on the list based on the sales transaction saleTime field. The value can be a string with an ISO-601 UTC format datetime or it can be a dictionary with the following options:

  • gt - return values where the saleTime field is after this timestamp
  • gte - return values where the saleTime field is after or equal to this timestamp
  • lt - return values where the saleTime field is before this timestamp
  • lte - return values where the saleTime field is before or equal to this timestamp
salesSummaryIdstringOptional

Only return sales transactions with this sales summary identifier

typestring · enumOptional

Only return sales transactions of this type

Possible values:
currencystringOptional

Only return sales transactions in this currency

orderIdstringOptional

Only return sales transactions with this order identifier

skuIdstringOptional

Only return sales transactions with this sku identifier

quantitystringOptional

A filter on the list based on the sales transaction quantity field. The value can be a string or it can be a dictionary with the following options:

  • gt - return values where the quantity field is greater than this amount
  • gte - return values where the quantity field is greater than or equal to this amount
  • lt - return values where the quantity field is less than this amount
  • lte - return values where the quantity field is less than or equal to this amount
amountstringOptional

A filter on the list based on the sales transaction amount field. The value can be a string or it can be a dictionary with the following options:

  • 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
digitalRiverSharestringOptional

A filter on the list based on the sales transaction Digital River share field. The value can be a string or it can be a dictionary with the following options:

  • gt - return values where the Digital River share field is greater than this amount
  • gte - return values where the Digital River share field is greater than or equal to this amount
  • lt - return values where the Digital River share field is less than this amount
  • lte - return values where the Digital River share field is less than or equal to this amount
payoutAmountstringOptional

A filter on the list based on the sales transaction payoutAmount field. The value can be a string or it can be a dictionary with the following options:

  • gt - return values where the payoutAmount field is greater than this amount
  • gte - return values where the payoutAmount field is greater than or equal to this amount
  • lt - return values where the payoutAmount field is less than this amount
  • lte - return values where the payoutAmount field is less than or equal to this amount
Responses
200
200 OK
application/json
get
GET /sales-transactions HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
  "hasMore": true,
  "data": [
    {
      "id": "0206802584_000010_3700005504",
      "createdTime": "2025-07-01T00:16:26.090Z",
      "saleTime": "2025-07-01T00:16:26.090Z",
      "salesSummaryId": "8100000400_1410_2019",
      "currency": "GBP",
      "amount": 443.08,
      "type": "sale",
      "orderId": "37031462099",
      "skuId": "945-0198",
      "quantity": 1,
      "payoutAmounts": {
        "currency": "USD",
        "exchangeRate": 1.24535,
        "amount": 551.79,
        "tax": -91.97,
        "shipping": -14.36,
        "regulatoryFees": 0,
        "landedCost": 0,
        "productPrice": 445.46,
        "digitalRiverShare": -41.38,
        "distributorShare": -375.61,
        "transactionFees": 0,
        "shippingDiscount": 0,
        "regulatoryFeeDiscount": 0,
        "remitShipping": 0,
        "payoutAmount": 28.47
      },
      "payerId": "1410",
      "payerName": "DR globalTech, Inc.",
      "payeeId": "0013900100",
      "payeeName": "ACME, Inc.",
      "liveMode": true
    }
  ]
}

Gets a sales transaction by ID

get

Retrieves the details of a sales transaction. Supply the unique identifier of the sales transaction.

Path parameters
idstringRequired

Sales transaction ID

Responses
200
OK.
application/json
get
GET /sales-transactions/{id} HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
  "id": "0206802584_000010_3700005504",
  "createdTime": "2025-07-01T00:16:26.090Z",
  "saleTime": "2025-07-01T00:16:26.090Z",
  "salesSummaryId": "8100000400_1410_2019",
  "currency": "GBP",
  "amount": 443.08,
  "type": "sale",
  "orderId": "37031462099",
  "skuId": "945-0198",
  "quantity": 1,
  "payoutAmounts": {
    "currency": "USD",
    "exchangeRate": 1.24535,
    "amount": 551.79,
    "tax": -91.97,
    "shipping": -14.36,
    "regulatoryFees": 0,
    "landedCost": 0,
    "productPrice": 445.46,
    "digitalRiverShare": -41.38,
    "distributorShare": -375.61,
    "transactionFees": 0,
    "shippingDiscount": 0,
    "regulatoryFeeDiscount": 0,
    "remitShipping": 0,
    "payoutAmount": 28.47
  },
  "payerId": "1410",
  "payerName": "DR globalTech, Inc.",
  "payeeId": "0013900100",
  "payeeName": "ACME, Inc.",
  "liveMode": true
}

Last updated