Orders
Orders Orders handle the purchases of end customers. You can create, retrieve, update, and list all orders.
Get all 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:
- 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
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:
- gt–return values where the updatedTime field is after this timestamp
- gte–return values where the updatedTime field is after or equal to this timestamp
- lt–return values where the updatedTime field is before this timestamp
- lte–return values where the updatedTime field is before or equal to this timestamp
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: - 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:
- gt - return values where the stateTransitions in_review field is after this timestamp
- gte - return values where the stateTransitions in_review field is after or equal to this timestamp
- lt - return values where the stateTransitions in_review field is before this timestamp
- lte - return values where the stateTransitions in_review field is before or equal to this timestamp
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:
- gt - return values where the stateTransitions pending_payment field is after this timestamp
- gte - return values where the stateTransitions pending_payment field is after or equal to this timestamp
- lt - return values where the stateTransitions pending_payment field is before this timestamp
- lte - return values where the stateTransitions pending_payment field is before or equal to this timestamp
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:
- gt - return values where the stateTransitions accepted field is after this timestamp
- gte - return values where the stateTransitions accepted field is after or equal to this timestamp
- lt - return values where the stateTransitions accepted field is before this timestamp
- lte - return values where the stateTransitions accepted field is before or equal to this timestamp
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:
- gt - return values where the stateTransitions blocked field is after this timestamp
- gte - return values where the stateTransitions blocked field is after or equal to this timestamp
- lt - return values where the stateTransitions blocked field is before this timestamp
- lte - return values where the stateTransitions blocked field is before or equal to this timestamp
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:
- gt - return values where the stateTransitions cancelled field is after this timestamp
- gte - return values where the stateTransitions cancelled field is after or equal to this timestamp
- lt - return values where the stateTransitions cancelled field is before this timestamp
- lte - return values where the stateTransitions cancelled field is before or equal to this timestamp
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:
- gt - return values where the stateTransitions fulfilled field is after this timestamp
- gte - return values where the stateTransitions fulfilled field is after or equal to this timestamp
- lt - return values where the stateTransitions fulfilled field is before this timestamp
- lte - return values where the stateTransitions fulfilled field is before or equal to this timestamp
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:
- gt - return values where the stateTransitions complete field is after this timestamp
- gte - return values where the stateTransitions complete field is after or equal to this timestamp
- lt - return values where the stateTransitions complete field is before this timestamp
- lte - return values where the stateTransitions complete field is before or equal to this timestamp
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:
- gt - return values where the stateTransitions returned field is after this timestamp
- gte - return values where the stateTransitions returned field is after or equal to this timestamp
- lt - return values where the stateTransitions returned field is before this timestamp
- lte - return values where the stateTransitions returned field is before or equal to this timestamp
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:
- gt - return values where the fraudStateTransitions blocked field is after this timestamp
- gte - return values where the fraudStateTransitions blocked field is after or equal to this timestamp
- lt - return values where the fraudStateTransitions blocked field is before this timestamp
- lte - return values where the fraudStateTransitions blocked field is before or equal to this timestamp
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:
- gt - return values where the fraudStateTransitions review_opened field is after this timestamp
- gte - return values where the fraudStateTransitions review_opened field is after or equal to this timestamp
- lt - return values where the fraudStateTransitions review_opened field is before this timestamp
- lte - return values where the fraudStateTransitions review_opened field is before or equal to this timestamp
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:
- gt - return values where the fraudStateTransitions passed field is after this timestamp
- gte - return values where the fraudStateTransitions passed field is after or equal to this timestamp
- lt - return values where the fraudStateTransitions passed field is before this timestamp
- lte - return values where the fraudStateTransitions passed field is before or equal to this timestamp
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
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
GET /orders HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
"hasMore": true,
"data": [
{
"id": "ord_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"customerId": "cus_5774321009",
"currency": "usd",
"email": "[email protected]",
"locale": "en_US",
"browserIp": "111.111.111.111",
"applicationId": "68f72e0c-cb7d-48e1-93c8-998668ad0ff4",
"shipFrom": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"shipTo": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"name": "John Smith",
"phone": "952-111-1111",
"email": "[email protected]",
"organization": "Digital River",
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"subtotal": 1094.5,
"totalTax": 82.76,
"importerOfRecordTax": true,
"totalFees": 0,
"totalDuty": 0,
"totalDiscount": 0,
"totalShipping": 5.76,
"totalAmount": 1180.26,
"discount": {
"amountOff": 5.95
},
"availableToRefundAmount": 18.58,
"refundedAmount": 1,
"cancelledAmount": 1,
"capturedAmount": 1,
"items": [
[
{
"skuId": "sku_5823594809",
"amount": 18.58,
"discount": {
"percentOff": 10
}
},
{
"skuId": "sku_9234276173",
"amount": 18.58,
"quantity": 2
}
]
],
"requestToBeForgotten": true,
"shippingChoice": {
"amount": 5.95,
"taxAmount": 0.1,
"description": "USPS: Priority (1 day delivery)",
"serviceLevel": "SG"
},
"state": "created",
"stateTransitions": {
"accepted": "2025-09-15T21:04:45.282Z",
"pending_payment": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"complete": "2025-09-15T21:04:45.282Z",
"cancelled": "2025-09-15T21:04:45.282Z",
"fulfilled": "2025-09-15T21:04:45.282Z",
"blocked": "2025-09-15T21:04:45.282Z",
"returned": "2025-09-15T21:04:45.282Z"
},
"fraudState": "passed",
"fraudStateTransitions": {
"blocked": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"passed": "2025-09-15T21:04:45.282Z"
},
"cancelReason": "fraud",
"charges": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"currency": "USD",
"amount": 1180.26,
"state": "pending",
"orderId": "9986340012",
"sourceId": "9986340012",
"failureCode": "a failure code",
"failureMessage": "a failure message",
"paymentSessionId": "8cecaa32-f692-44cc-b103-4cf24dc93913",
"cancels": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captures": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captured": false,
"refunds": [
{
"id": "ref_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"orderId": "ord_6645940010",
"currency": "USD",
"type": "shipping",
"amount": 9.99,
"refundedAmount": 9.99,
"items": [
[
{
"type": "shipping",
"skuId": "sku_9234276173",
"quantity": 1,
"amount": 5.95
}
]
],
"reason": "requested_by_customer",
"failureReason": "expired_or_canceled_card",
"state": "created",
"tokenInformation": {
"token": "bb3f0f17-567a-4c87-8cbd-76d93a750709",
"expiresTime": "2025-09-15T21:04:45.282Z"
},
"expiresTime": "2025-09-15T21:04:45.282Z",
"liveMode": false,
"metadata": {
"coupon": "iOS"
}
}
],
"refunded": false,
"type": "customer_initiated",
"liveMode": true
}
],
"paymentSessionId": "ps_8cecaa32-f692-44cc-b103-4cf24dc93913",
"liveMode": true,
"metadata": {
"coupon": "iOS"
},
"sellingEntity": {
"id": "DR_IRELAND-ENTITY",
"name": "Digital River Ireland"
},
"purchaseLocation": {
"country": "US",
"state": "MN",
"postalCode": "55364"
},
"customerType": "individual",
"upstreamId": "0916805858",
"updatedTime": "2025-09-15T21:04:45.282Z"
}
]
}
Creates a new order.
201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
POST /orders HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 1435
{
"customerId": "5774321009",
"sourceId": "src_a78cfeae-f7ae-4719-8e1c-d05ec04e4d37",
"currency": "USD",
"email": "[email protected]",
"locale": "en_US",
"applicationId": "68f72e0c-cb7d-48e1-93c8-998668ad0ff4",
"browserIp": "111.111.111.111",
"shipFrom": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"shipTo": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"name": "John Smith",
"phone": "952-111-1111",
"email": "[email protected]",
"organization": "Digital River",
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"shippingChoice": {
"amount": 5.95,
"description": "USPS: Priority (1 day delivery)",
"serviceLevel": "SG"
},
"discount": {
"percentOff": 100
},
"items": [
{
"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
}
],
"shippingDiscount": {
"percentOff": 100
},
"taxInclusive": true,
"chargeType": "merchant_initiated",
"customerType": "individual",
"metadata": {
"coupon": "iOS"
},
"purchaseLocation": {
"country": "US",
"state": "MN",
"postalCode": "55364"
},
"upstreamId": "7765374748"
}
{
"id": "ord_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"customerId": "cus_5774321009",
"currency": "usd",
"email": "[email protected]",
"locale": "en_US",
"browserIp": "111.111.111.111",
"applicationId": "68f72e0c-cb7d-48e1-93c8-998668ad0ff4",
"shipFrom": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"shipTo": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"name": "John Smith",
"phone": "952-111-1111",
"email": "[email protected]",
"organization": "Digital River",
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"subtotal": 1094.5,
"totalTax": 82.76,
"importerOfRecordTax": true,
"totalFees": 0,
"totalDuty": 0,
"totalDiscount": 0,
"totalShipping": 5.76,
"totalAmount": 1180.26,
"discount": {
"amountOff": 5.95
},
"availableToRefundAmount": 18.58,
"refundedAmount": 1,
"cancelledAmount": 1,
"capturedAmount": 1,
"items": [
[
{
"skuId": "sku_5823594809",
"amount": 18.58,
"discount": {
"percentOff": 10
}
},
{
"skuId": "sku_9234276173",
"amount": 18.58,
"quantity": 2
}
]
],
"requestToBeForgotten": true,
"shippingChoice": {
"amount": 5.95,
"taxAmount": 0.1,
"description": "USPS: Priority (1 day delivery)",
"serviceLevel": "SG"
},
"state": "created",
"stateTransitions": {
"accepted": "2025-09-15T21:04:45.282Z",
"pending_payment": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"complete": "2025-09-15T21:04:45.282Z",
"cancelled": "2025-09-15T21:04:45.282Z",
"fulfilled": "2025-09-15T21:04:45.282Z",
"blocked": "2025-09-15T21:04:45.282Z",
"returned": "2025-09-15T21:04:45.282Z"
},
"fraudState": "passed",
"fraudStateTransitions": {
"blocked": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"passed": "2025-09-15T21:04:45.282Z"
},
"cancelReason": "fraud",
"charges": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"currency": "USD",
"amount": 1180.26,
"state": "pending",
"orderId": "9986340012",
"sourceId": "9986340012",
"failureCode": "a failure code",
"failureMessage": "a failure message",
"paymentSessionId": "8cecaa32-f692-44cc-b103-4cf24dc93913",
"cancels": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captures": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captured": false,
"refunds": [
{
"id": "ref_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"orderId": "ord_6645940010",
"currency": "USD",
"type": "shipping",
"amount": 9.99,
"refundedAmount": 9.99,
"items": [
[
{
"type": "shipping",
"skuId": "sku_9234276173",
"quantity": 1,
"amount": 5.95
}
]
],
"reason": "requested_by_customer",
"failureReason": "expired_or_canceled_card",
"state": "created",
"tokenInformation": {
"token": "bb3f0f17-567a-4c87-8cbd-76d93a750709",
"expiresTime": "2025-09-15T21:04:45.282Z"
},
"expiresTime": "2025-09-15T21:04:45.282Z",
"liveMode": false,
"metadata": {
"coupon": "iOS"
}
}
],
"refunded": false,
"type": "customer_initiated",
"liveMode": true
}
],
"paymentSessionId": "ps_8cecaa32-f692-44cc-b103-4cf24dc93913",
"liveMode": true,
"metadata": {
"coupon": "iOS"
},
"sellingEntity": {
"id": "DR_IRELAND-ENTITY",
"name": "Digital River Ireland"
},
"purchaseLocation": {
"country": "US",
"state": "MN",
"postalCode": "55364"
},
"customerType": "individual",
"upstreamId": "0916805858",
"updatedTime": "2025-09-15T21:04:45.282Z"
}
Retrieves the details of an order. Supply the unique identifier of the order you would like to retrieve.
Order ID
OK.
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
GET /orders/{id} HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
"id": "ord_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"customerId": "cus_5774321009",
"currency": "usd",
"email": "[email protected]",
"locale": "en_US",
"browserIp": "111.111.111.111",
"applicationId": "68f72e0c-cb7d-48e1-93c8-998668ad0ff4",
"shipFrom": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"shipTo": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"name": "John Smith",
"phone": "952-111-1111",
"email": "[email protected]",
"organization": "Digital River",
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"subtotal": 1094.5,
"totalTax": 82.76,
"importerOfRecordTax": true,
"totalFees": 0,
"totalDuty": 0,
"totalDiscount": 0,
"totalShipping": 5.76,
"totalAmount": 1180.26,
"discount": {
"amountOff": 5.95
},
"availableToRefundAmount": 18.58,
"refundedAmount": 1,
"cancelledAmount": 1,
"capturedAmount": 1,
"items": [
[
{
"skuId": "sku_5823594809",
"amount": 18.58,
"discount": {
"percentOff": 10
}
},
{
"skuId": "sku_9234276173",
"amount": 18.58,
"quantity": 2
}
]
],
"requestToBeForgotten": true,
"shippingChoice": {
"amount": 5.95,
"taxAmount": 0.1,
"description": "USPS: Priority (1 day delivery)",
"serviceLevel": "SG"
},
"state": "created",
"stateTransitions": {
"accepted": "2025-09-15T21:04:45.282Z",
"pending_payment": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"complete": "2025-09-15T21:04:45.282Z",
"cancelled": "2025-09-15T21:04:45.282Z",
"fulfilled": "2025-09-15T21:04:45.282Z",
"blocked": "2025-09-15T21:04:45.282Z",
"returned": "2025-09-15T21:04:45.282Z"
},
"fraudState": "passed",
"fraudStateTransitions": {
"blocked": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"passed": "2025-09-15T21:04:45.282Z"
},
"cancelReason": "fraud",
"charges": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"currency": "USD",
"amount": 1180.26,
"state": "pending",
"orderId": "9986340012",
"sourceId": "9986340012",
"failureCode": "a failure code",
"failureMessage": "a failure message",
"paymentSessionId": "8cecaa32-f692-44cc-b103-4cf24dc93913",
"cancels": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captures": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captured": false,
"refunds": [
{
"id": "ref_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"orderId": "ord_6645940010",
"currency": "USD",
"type": "shipping",
"amount": 9.99,
"refundedAmount": 9.99,
"items": [
[
{
"type": "shipping",
"skuId": "sku_9234276173",
"quantity": 1,
"amount": 5.95
}
]
],
"reason": "requested_by_customer",
"failureReason": "expired_or_canceled_card",
"state": "created",
"tokenInformation": {
"token": "bb3f0f17-567a-4c87-8cbd-76d93a750709",
"expiresTime": "2025-09-15T21:04:45.282Z"
},
"expiresTime": "2025-09-15T21:04:45.282Z",
"liveMode": false,
"metadata": {
"coupon": "iOS"
}
}
],
"refunded": false,
"type": "customer_initiated",
"liveMode": true
}
],
"paymentSessionId": "ps_8cecaa32-f692-44cc-b103-4cf24dc93913",
"liveMode": true,
"metadata": {
"coupon": "iOS"
},
"sellingEntity": {
"id": "DR_IRELAND-ENTITY",
"name": "Digital River Ireland"
},
"purchaseLocation": {
"country": "US",
"state": "MN",
"postalCode": "55364"
},
"customerType": "individual",
"upstreamId": "0916805858",
"updatedTime": "2025-09-15T21:04:45.282Z"
}
Updates an existing order.
Order ID
If true, indicates the user who placed the order has requested this order be forgotten.
false
Example: true
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
401 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
POST /orders/{id} HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"requestToBeForgotten": true,
"metadata": {
"coupon": "iOS"
}
}
{
"id": "ord_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"customerId": "cus_5774321009",
"currency": "usd",
"email": "[email protected]",
"locale": "en_US",
"browserIp": "111.111.111.111",
"applicationId": "68f72e0c-cb7d-48e1-93c8-998668ad0ff4",
"shipFrom": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"shipTo": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"name": "John Smith",
"phone": "952-111-1111",
"email": "[email protected]",
"organization": "Digital River",
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "営業部",
"phoneticName": "ヤマダ タロ"
}
},
"subtotal": 1094.5,
"totalTax": 82.76,
"importerOfRecordTax": true,
"totalFees": 0,
"totalDuty": 0,
"totalDiscount": 0,
"totalShipping": 5.76,
"totalAmount": 1180.26,
"discount": {
"amountOff": 5.95
},
"availableToRefundAmount": 18.58,
"refundedAmount": 1,
"cancelledAmount": 1,
"capturedAmount": 1,
"items": [
[
{
"skuId": "sku_5823594809",
"amount": 18.58,
"discount": {
"percentOff": 10
}
},
{
"skuId": "sku_9234276173",
"amount": 18.58,
"quantity": 2
}
]
],
"requestToBeForgotten": true,
"shippingChoice": {
"amount": 5.95,
"taxAmount": 0.1,
"description": "USPS: Priority (1 day delivery)",
"serviceLevel": "SG"
},
"state": "created",
"stateTransitions": {
"accepted": "2025-09-15T21:04:45.282Z",
"pending_payment": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"complete": "2025-09-15T21:04:45.282Z",
"cancelled": "2025-09-15T21:04:45.282Z",
"fulfilled": "2025-09-15T21:04:45.282Z",
"blocked": "2025-09-15T21:04:45.282Z",
"returned": "2025-09-15T21:04:45.282Z"
},
"fraudState": "passed",
"fraudStateTransitions": {
"blocked": "2025-09-15T21:04:45.282Z",
"in_review": "2025-09-15T21:04:45.282Z",
"passed": "2025-09-15T21:04:45.282Z"
},
"cancelReason": "fraud",
"charges": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"currency": "USD",
"amount": 1180.26,
"state": "pending",
"orderId": "9986340012",
"sourceId": "9986340012",
"failureCode": "a failure code",
"failureMessage": "a failure message",
"paymentSessionId": "8cecaa32-f692-44cc-b103-4cf24dc93913",
"cancels": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captures": [
{
"id": "a6809a63-e6a9-4016-abbc-f33d19fccb5b",
"createdTime": "2025-09-15T21:04:45.282Z",
"updatedTime": "2025-09-15T21:04:45.282Z",
"amount": 1180.26,
"state": "pending",
"failureCode": "text",
"failureMessage": "text"
}
],
"captured": false,
"refunds": [
{
"id": "ref_5823594809",
"createdTime": "2025-09-15T21:04:45.282Z",
"orderId": "ord_6645940010",
"currency": "USD",
"type": "shipping",
"amount": 9.99,
"refundedAmount": 9.99,
"items": [
[
{
"type": "shipping",
"skuId": "sku_9234276173",
"quantity": 1,
"amount": 5.95
}
]
],
"reason": "requested_by_customer",
"failureReason": "expired_or_canceled_card",
"state": "created",
"tokenInformation": {
"token": "bb3f0f17-567a-4c87-8cbd-76d93a750709",
"expiresTime": "2025-09-15T21:04:45.282Z"
},
"expiresTime": "2025-09-15T21:04:45.282Z",
"liveMode": false,
"metadata": {
"coupon": "iOS"
}
}
],
"refunded": false,
"type": "customer_initiated",
"liveMode": true
}
],
"paymentSessionId": "ps_8cecaa32-f692-44cc-b103-4cf24dc93913",
"liveMode": true,
"metadata": {
"coupon": "iOS"
},
"sellingEntity": {
"id": "DR_IRELAND-ENTITY",
"name": "Digital River Ireland"
},
"purchaseLocation": {
"country": "US",
"state": "MN",
"postalCode": "55364"
},
"customerType": "individual",
"upstreamId": "0916805858",
"updatedTime": "2025-09-15T21:04:45.282Z"
}
Last updated