Search…
Submitting a cart
Learn how to submit a cart.
Use the Submit Cart resource to submit a cart. A cart cannot be submitted until the following items have been added or applied to the cart:
    One or more products
    Shipping option (if the product is a physical product)
    Shipping address
    Billing address
    Payment option
Submitting a cart creates the order. You can use the information in the response to build a Thank You page. If the customer purchased a digital product, the cart presents the download links to the customer. If the customer selects a check as the payment type, the cart provides delayed payment instructions. If the customer chooses a payment service provider as the payment type, the cart provides links to the payment provider such as PayPal.
cURL
1
curl --location --request POST 'http://<<host>>/v1/shoppers/me/carts/active/submit-cart' \
2
--header 'Content-Type: application/json' \
3
--header 'authorization: bearer ***\
Copied!
You will receive a 200 OK response.
JSON
1
{
2
"order": {
3
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/47278080023",
4
"id": "47278080023",
5
"submissionDate": "2018-04-27T20:31:13.109Z",
6
"displayName": "New Order",
7
"locale": "en_US",
8
"optIn": "false",
9
"testOrder": "false",
10
"taxExempt": "false",
11
"businessEntityCode": "DR_INC-ENTITY",
12
"orderState": "Submitted",
13
"orderStateDetails": {
14
"description": "Settled",
15
"settled": {
16
"currency": "USD",
17
"value": "19.99"
18
},
19
"refunded": {
20
"currency": "USD",
21
"value": "19.99"
22
}
23
},
24
"customAttributes": {
25
"attribute": [
26
{
27
"name": "name",
28
"value": "string",
29
"type": "string"
30
}
31
]
32
}
33
},
34
"lineItems": {
35
"lineItem": {
36
"id": "488822390023",
37
"quantity": "1",
38
"product": {
39
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64578500",
40
"parentProduct": {
41
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64358200"
42
},
43
"id": "64578500",
44
"name": "Class I",
45
"displayName": "Class I",
46
"shortDescription": "Class I is the perfect GPS waypoint and route manager for the beginning or occasional GPS user.",
47
"longDescription": "Class I is the fast and easy way to create, edit, and transfer waypoints and routes between your computer and your Garmin, Magellan, or Lowrance GPS. Using Class I, you can manage all of your waypoints and routes, and display them in lists sorted by name, elevation, or distance. Class I connects your GPS to the best mapping and information sites on the Internet, giving you one-click access to street and topo maps, aerial photos, weather forecasts, and nearby attractions.",
48
"productType": "DOWNLOAD",
49
"sku": "Class I",
50
"externalReferenceId": "Test External Reference Number",
51
"companyId": "demosft1",
52
"displayableProduct": "true",
53
"purchasable": "true",
54
"manufacturerName": "Test Manufacturer Name",
55
"manufacturerPartNumber": "Test Manufacturer Part Number",
56
"thumbnailImage": "https://drh-int-ora.img.digitalriver.com/Storefront/Company/demosft1/images/product/thumbnail/classIThumb.jpg",
57
"productImage": "https://drh-int-ora.img.digitalriver.com/Storefront/Company/demosft1/images/product/detail/classIBox.jpg",
58
"keywords": "testKeyword",
59
"customAttributes": {
60
"attribute": [
61
{
62
"name": "name",
63
"value": "string",
64
"type": "string"
65
}
66
]
67
}
68
},
69
"lineItemState": "Downloadable",
70
"lineItemStateDetails": {
71
"description": "Downloadable - 1",
72
"backOrdered": "0",
73
"shipped": "0",
74
"returned": "0",
75
"pendingReturn": "0"
76
},
77
"pricing": {
78
"listPrice": {
79
"currency": "USD",
80
"value": "19.99"
81
},
82
"listPriceWithQuantity": {
83
"currency": "USD",
84
"value": "19.99"
85
},
86
"salePrice": {
87
"currency": "USD",
88
"value": "19.99"
89
},
90
"salePriceWithQuantity": {
91
"currency": "USD",
92
"value": "19.99"
93
},
94
"formattedListPrice": "$0.00",
95
"formattedListPriceWithQuantity": "$0.00",
96
"formattedSalePrice": "$0.00",
97
"formattedSalePriceWithQuantity": "$0.00",
98
"totalDiscountWithQuantity": {
99
"currency": "USD",
100
"value": "19.99"
101
},
102
"formattedTotalDiscountWithQuantity": "$0.00",
103
"discountDescription": "string",
104
"formattedCommitmentPrice": "$240.00",
105
"commitmentPrice": {
106
"currency": "USD",
107
"value": "240.00"
108
}
109
"tax": {
110
"currency": "USD",
111
"value": 2.00
112
},
113
"taxRate": 0.1111
114
},
115
"downloads": {
116
"downloadUri": "http://wgtintot12.digitalriver.com/wgt/9B5A4FCEF11DA80C/171F14235882A3D3E56B5723F9D46513279A35381E6ECCFA38DC305C96D769173E906E98A04A2B5B3CFFB85C93D810E7B365B18617EBAE4682F5E46FAD1C55CE291C52E8142F3D624C7461A8833978160451C577DBEF2976/demosft1/WaterLilies.jpg"
117
},
118
"customAttributes": {
119
"attribute": [
120
{
121
"name": "name",
122
"value": "string",
123
"type": "string"
124
}
125
]
126
}
127
}
128
},
129
"billingAddress": {
130
"uri": "https://api.digitalriver.com/v1/shoppers/me/address/47278020023",
131
"id": "billingAddress",
132
"firstName": "Automation",
133
"lastName": "Tester",
134
"line1": "PO BOX 6930",
135
"line2": "123",
136
"line3": "Suite Line 3",
137
"city": "Waconia",
138
"countrySubdivision": "MN",
139
"postalCode": 5387,
140
"country": "US",
141
"countryName": "United States",
142
"phoneNumber": "099-222-44454",
143
"emailAddress": "[email protected]"
144
},
145
"shippingAddress": {
146
"uri": "https://api.digitalriver.com/v1/shoppers/me/address/47278020023",
147
"id": "billingAddress",
148
"firstName": "Automation",
149
"lastName": "Tester",
150
"line1": "PO BOX 6930",
151
"line2": "123",
152
"line3": "Suite Line 3",
153
"city": "Waconia",
154
"countrySubdivision": "MN",
155
"postalCode": 5387,
156
"country": "US",
157
"countryName": "United States",
158
"phoneNumber": "099-222-44454",
159
"emailAddress": "[email protected]"
160
},
161
"pricing": {
162
"subtotal": {
163
"currency": "USD",
164
"value": "19.99"
165
},
166
"subtotalWithDiscount": {
167
"currency": "USD",
168
"value": "19.99"
169
},
170
"discount": {
171
"currency": "USD",
172
"value": "19.99"
173
},
174
"shippingAndHandling": {
175
"currency": "USD",
176
"value": "19.99"
177
},
178
"tax": {
179
"currency": "USD",
180
"value": "19.99"
181
},
182
"orderTotal": {
183
"currency": "USD",
184
"value": "19.99"
185
},
186
"formattedSubtotal": "$0.00",
187
"formattedSubtotalWithDiscount": "$0.00",
188
"formattedDiscount": "$0.00",
189
"formattedShippingAndHandling": "$0.00",
190
"formattedTax": "$0.00",
191
"formattedOrderTotal": "$0.00"
192
},
193
"payment": {}
194
}
Copied!
Last modified 6mo ago
Copy link