Export for Order Submit API

When you've received a complete request, you are likely to want to show the user some sort of cart. If you are already using the Order Submit API, you can use our export method to get the data need to make an Order Import request.

PUT /oas/editors/export

Content-type: application/json

curl

Example Request
1
2
3
4
5
curl https://prospector.dragdrop.design/api/v1/oas/editors/export \
	-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.r3udhowqndkwqneoiqwndjwndei12u390912hrbfhaslkdjbqwiei21nbrhewiuornqwjkfhbaiwodnqwjkbdawuosdhowqubdfjkwbdusandbiwquebio12nedbwbaodpqwnebou12rbwkjalndawuobdnwqndfqwbdfoiwqndpiqwhfiwqnkjdlnwqdnioqwhniorqw3nfjwbaodnwdnqwopd" \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-d '{"editorIds": ["vstpieXAAr66mFkrR"]}'
Request Elements

editorIds

array

An array containing one or many editor IDs that you'd like to summarize in a shopping cart, and export for OAS.





Example Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
	"items": [
		{
			"id": "vstpieXAAr66mFkrR",
			"pricing": {
				"basePrice": 33.5,
				"markedUpPrice": 33.5,
				"quantity": 25,
				"code": "USD"
			},
			"editor": {
				"id": "vstpieXAAr66mFkrR",
				"productPreviews": {
					"10000": {
						"scale_256": "https://s3.amazonaws.com/image.renditions-dev/192e133f-15d5-400f-a7ff-cb4f497689e7.png",
						"scale_512": "https://s3.amazonaws.com/image.renditions-dev/af8da810-4d52-4ca4-a400-73662162c493.png",
						"scale_1024": "https://s3.amazonaws.com/image.renditions-dev/eaab0169-bb48-4303-b5f6-202000d2bd45.png",
						"name": "Front"
					},
					"10001": {
						"scale_256": "https://s3.amazonaws.com/image.renditions-dev/29800e44-6154-46ee-b29e-48b107b65b2a.png",
						"scale_512": "https://s3.amazonaws.com/image.renditions-dev/80d3ed59-eebf-47db-abe0-a2697cb78341.png",
						"scale_1024": "https://s3.amazonaws.com/image.renditions-dev/7ac02389-1991-47a5-8bc6-c4cd31a0d70a.png",
						"name": "Back"
					}
				},
				"selectionsSummary": [
					{
						"label": "envelopes",
						"description": "5×7 craft"
					},
					{
						"label": "paper_types",
						"description": "smooth matte"
					},
					{
						"label": "foil_pressed_designs",
						"description": "save the date calligraphy"
					},
					{
						"label": "foil_pressed_foil_color",
						"description": "rose gold"
					},
					{
						"label": "shapes",
						"description": "basic a4"
					}
				]
			},
			"order": {
				"ItemAssets": [
					{
						"AssetPath": "https://s3.amazonaws.com/sessions-stage.dragdrop.design/editors/vstpieXAAr66mFkrR/previews/10000_XBTLX.pdf",
						"DP2NodeID": "10000",
						"ImageHash": "d82d5a977d1fb801b251f5dcb19bd948",
						"PrintedFileName": "vstpieXAAr66mFkrR-10000",
						"OffsetX": 50,
						"OffsetY": 50,
						"ImageRotation": 0,
						"X": 50,
						"Y": 50,
						"ZoomX": 100,
						"ZoomY": 100
					},
					{
						"AssetPath": "https://s3.amazonaws.com/sessions-stage.dragdrop.design/editors/vstpieXAAr66mFkrR/previews/10001_1M12P.pdf",
						"DP2NodeID": "10001",
						"ImageHash": "af154543b1a165dbdee4e1464ded705a",
						"PrintedFileName": "vstpieXAAr66mFkrR-10001",
						"OffsetX": 50,
						"OffsetY": 50,
						"ImageRotation": 0,
						"X": 50,
						"Y": 50,
						"ZoomX": 100,
						"ZoomY": 100
					}
				],
				"ItemAttributes": [
					{
						"AttributeUID": 1148
					},
					{
						"AttributeUID": 1370
					},
					{
						"AttributeUID": 1803
					},
					{
						"AttributeUID": 1669
					},
					{
						"AttributeUID": 1696
					},
					{
						"AttributeUID": 1262
					}
				],
				"ProductUID": 583,
				"Quantity": 25
			}
		}
	],
	"pricing": {
		"code": "USD",
		"totalOrderMarkedUpPrice": 33.5,
		"totalOrderBasePrice": 33.5
	}
}




Response Elements

items

array

An array containing an entry for each editor passed into the endpoint.

Show Children ▾

id

string - 30

the id of the editor.

pricing

object

an object containing details about the price associated with this specific line item.

Show Children ▾

basePrice

float - 10

the base price of an editor not included any markup.

markedUpPrice

float - 10

the price of an editor include markup.

quantity

int - 4

the number of items being ordered.

code

string - 3

the currency prices are being represented in, always returned in USD.

editor

object

Information about the editor, including previews, and a summary of selections made.

Show Children ▾

id

string - 30

the id of the editor.

productPreviews

object

an object containing previews of the final product constructed in the editor. These will potentially be PNGs (cards or albums) or JPEGS (simple editor products) based on if the product potentially contains transparency or not. We will often provide a variety of sizes appropriate for both normal and retina resolutions at various sizes.

selectionsSummary

object

an object containing a set of labels and descriptions that can be used to summarize the line items, or specific traits in a cart or order summary.

order

object

An object which can be copied, verbatim, and submitted via our Order Submit API, for partners that are already leveraging it to place orders.

pricing

object

an object containing details about the price associated with an overall response.

Show Children ▾

totalOrderBasePrice

float - 10

the base price of a response not included any markup.

totalOrderMarkedUpPrice

float - 10

the price of a response include markup.

code

string - 3

the currency prices are being represented in, always returned in USD.

Back to Top 👆
Get in Touch

Interested in integrating with WHCC? Tell us more about what you’re looking for and we’ll be in touch.