Search…
Order lookup
Learn how to lookup orders.
The Order Lookup resource lets you retrieve information about an order.

Get your current order

You can retrieve your current order. This method requires an authenticated customer token, username, and password.
This call can retrieve information such as the customer's email address, the last 4 digits of their payment card, and their password.
URI
Request header
Request body
Response header
Response body
1
POST shoppers/order-lookup
Copied!
1
Host: api.digitalriver.com
2
Accept: application/json
3
Authorization: bearer your_access_token
4
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Copied!
1
orderId=your_order_ID&&username=userName&password=orderPassword
Copied!
1
HTTP/1.1 200 OK
Copied!
1
{
2
"orders": {
3
"order": [
4
{
5
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/100009222210019",
6
"id": 100009222210019,
7
"submissionDate": "2018-05-04T17:12:17.000Z",
8
"pricing": {
9
"total": {
10
"currency": "USD",
11
"value": "19.99"
12
},
13
"formattedTotal": "$13.95"
14
},
15
"payment": {
16
"paymentMethodName": "discover",
17
"displayableNumber": "************9876"
18
},
19
"orderState": "Complete",
20
"billingAddress": {
21
"uri": "https://api.digitalriver.com/v1/shoppers/me/address/47278020023",
22
"id": "billingAddress",
23
"firstName": "Automation",
24
"lastName": "Tester",
25
"line1": "PO BOX 6930",
26
"line2": "123",
27
"line3": "Suite Line 3",
28
"city": "Waconia",
29
"countrySubdivision": "MN",
30
"postalCode": 5387,
31
"country": "US",
32
"countryName": "United States",
33
"phoneNumber": "099-222-44454",
34
"emailAddress": "[email protected]"
35
},
36
"shippingAddress": {
37
"uri": "https://api.digitalriver.com/v1/shoppers/me/address/47278020023",
38
"id": "billingAddress",
39
"firstName": "Automation",
40
"lastName": "Tester",
41
"line1": "PO BOX 6930",
42
"line2": "123",
43
"line3": "Suite Line 3",
44
"city": "Waconia",
45
"countrySubdivision": "MN",
46
"postalCode": 5387,
47
"country": "US",
48
"countryName": "United States",
49
"phoneNumber": "099-222-44454",
50
"emailAddress": "[email protected]"
51
}
52
}
53
],
54
"totalResults": 1,
55
"totalResultPages": 1
56
}
57
}
Copied!

Retrieve the current order by email address and the last 4 digits of their payment card

Use the POST /shoppers/order-lookup to retrieve a customer's current order. An authenticated customer token, email address, and last 4 digits of their payment card are required.
URI
Request header
Request body
Response header
Response body
1
POST shoppers/order-lookup?expand=all
Copied!
1
Host: api.digitalriver.com
2
Accept: application/x-www-form-urlencoded
3
Authorization: bearer your_access_token
4
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Copied!
1
creditCardLastDigits=last_4_digits_of_their_payment_card&emailAddress=shopper's_email_address
Copied!
1
HTTP/1.1 200 OK
Copied!
1
{"orders": {
2
"order": [ {
3
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/9999999999",
4
"id": 9999999999,
5
"submissionDate": "2016-11-02T14:25:06.000Z",
6
"locale": "en_US",
7
"testOrder": "false",
8
"pricing": {
9
"total": {
10
"currency": "USD",
11
"value": 13.88
12
},
13
"formattedTotal": "$13.88"
14
},
15
"payment": {
16
"paymentMethodName": "discover",
17
"displayableNumber": "************9876"
18
},
19
"orderState": "Complete",
20
"billingAddress": {
21
"id": "billingAddress",
22
"firstName": "John",
23
"lastName": "Doe",
24
"line1": "PO BOX 3940",
25
"city": "Waconia",
26
"countrySubdivision": "MN",
27
"postalCode": "55387",
28
"phoneNumber": "555-555-555",
29
"emailAddress": "[email protected]"
30
},
31
"shippingAddress": {
32
"id": "billingAddress",
33
"firstName": "John",
34
"lastName": "Doe",
35
"line1": "PO BOX 3940",
36
"city": "Waconia",
37
"countrySubdivision": "MN",
38
"postalCode": "55387",
39
"phoneNumber": "555-555-555",
40
"emailAddress": "[email protected]"
41
}
42
}],
43
"totalResults": 1,
44
"totalResultPages": 1
45
}}
Copied!

Last modified 1yr ago