Create order request (Sandbox)
tip
RPI Print API account is required. You can create one here.
info
RPI Print API uses Basic HTTP Authentication for authentication.
Obtain API credentials
Login to Print API Dashboard
Click on "API Credentials" link on the left sidebar.
Replace
{{Authorization}}
in request below with the Authorization header value or use API Key and Shared Secret as HTTP Basic Authentication username and password.
Resulting Authorization HTTP request header will look something like
Authorization: Basic YXBpX2tleS1iZTg2OGM5NC1lYTFjLTQ5NGYtOWM0MC0xZWJlZTNmNDMyZjc6c2VjcmV0LWQ3NTc5MTYwLTk2NjEtNDNiNC1iZmJlLWJiNTZmYzYwMGI3NQ==
Request headers
POST https://open.api.sandbox.rpiprint.com/orders/create
Content-Type:: application/json
Authorization: {{Authorization}} # obtained in previous step
Request Body
{
"currency": "USD",
"shippingClassification":"priority",
"webhookUrl": "<webhook endpoint>",
"destination": {
"name": "John Doe",
"company": "RPI print",
"address1": "3325 S 116th St",
"address2": "string",
"address3": "string",
"city": "Tukwila",
"state": "California",
"postal": "98168",
"country": "US",
"phone": "(206) 905 5999",
"email": "shipping.dept@rpiprint.com"
},
"orderItems": [
{
"sku": "11x8.5 Imagewrap, Gloss Laminate, 100# Gloss Text",
"quantity": 1,
"retailPrice": "12.3",
"itemDescription": "{item_description}",
"product": {
"coverUrl":"https://docs.api.sandbox.rpiprint.com/pdfs/HCIW_11x8.5_GLS_GL100T_20pg_cover.pdf",
"gutsUrl":"https://docs.api.sandbox.rpiprint.com/pdfs/HCIW_11x8.5_GLS_GL100T_20pg_guts.pdf"
}
}
]
}