Skip to main content

Create order request

This page shows a complete create order request. Getting started explains how to create an account and a product, and where to copy the Authorization Header value that replaces {{Authorization}} below.

Request headers​

POST https://open.api.rpiprint.com/orders/create
Content-Type: application/json
Authorization: {{Authorization}} # the Authorization Header value from the API Keys table

Request body​

Replace the value of sku with the product SKU of a product you created on the RPI Print API Dashboard's Products page. The create endpoint looks the SKU up among your own products, so the example SKU below works only if you created a product with it.

The coverUrl and gutsUrl below link the published templates for the product whose manufacturing SKU is BKPH_HCIW_STD_11.000x8.500IN_80C_GL_40_100T_GLS_44, at 20 pages. To use templates for your own product, replace that manufacturing SKU in both URLs with your product's manufacturing SKU, and replace pageCount=20 in both URLs with the page count you want. Use the same page count in both URLs, and choose one your product allows.

{
"currency": "USD",
"shippingClassification": "standard",
"webhookUrl": "<webhook endpoint>",
"destination": {
"name": "John Doe",
"address1": "3325 S 116th St",
"city": "Tukwila",
"state": "Washington",
"postal": "98168",
"country": "US",
"phone": "(206) 905 5999",
"email": "shipping.dept@rpiprint.com"
},
"orderItems": [
{
"sku": "HCIW_11x8.5_GLS_GL100T",
"quantity": 1,
"retailPrice": "12.30",
"itemDescription": "My photo book",
"product": {
"coverUrl": "https://products.api.rpiprint.com/templates/published/BKPH_HCIW_STD_11.000x8.500IN_80C_GL_40_100T_GLS_44/cover/pdf?units=in&pageCount=20&barcode=false",
"gutsUrl": "https://products.api.rpiprint.com/templates/published/BKPH_HCIW_STD_11.000x8.500IN_80C_GL_40_100T_GLS_44/pages/pdf?units=in&pageCount=20"
}
}
]
}