- Introduction
- Authentication
- API Rate Limits
- Payment Method and Billing Address
- Getting Started
- Product Configuration
- Webhook
- Order
- Image
- Product
- Store
- Shipment
- Pricing
- Webhook
Submit a new order.
Sandbox
Sandbox
POST
https://us.api-sandbox.lumaprints.com/api/v1/orders
Order
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic *****************
Body Params application/json
externalId
string <string>
required
>= 1 characters<= 191 characters
Example:
186898732
storeId
number
required
Example:
818
shippingMethod
enum<string> <string>
optional
>= 1 characters<= 191 characters
Allowed values:
defaultpickupgroundground_economy2_dayovernightusps_ground_advantageusps_priority_mailusps_first_class_mail_internationalusps_priority_mail_internationalusps_priority_mail_express_internationalfreight
Default:
default
Example:
overnight
productionTime
enum<string> <string>
optional
>= 1 characters<= 191 characters
Allowed values:
regularnextdaysameday
Default:
regular
Example:
regular
specialInstructions
string | null
optional
>= 1 characters<= 1024 characters
Example:
This is a special order.
printouts
array[string <uri>] | null
optional
<= 3 items
recipient
allOf {1}
required
Example:
{"firstName":"John","lastName":"Smith","addressLine1":"955 E Ball Rd.","addressLine2":"","city":"Anaheim","state":"CA","zipCode":"92805","country":"US","phone":"8003806038"}
object (RecipientDto)
optional
orderItems
array[object (OrderItemsDto) {8}]
required
Example:
[{"externalItemId":"123456789","subcategoryId":103001,"quantity":1,"width":8,"height":10,"file":{"imageUrl":"https://www.example.com/image.jpg"},"orderItemOptions":[11,51,23],"solidColorHexCode":null}]
subcategoryId
number
required
Example:
101001
externalItemId
string <string>
required
Example:
1
quantity
number
required
Example:
1
width
number
required
Example:
8
height
number
required
Example:
10
file
object
required
Example:
{"imageUrl":"https://www.example.com/image.jpg","saveImage":true}
orderItemOptions
array[number]
required
Example:
[1, 11, 21]
solidColorHexCode
string <string>
optional
Example:
#12aaeb
Example
{
"externalId": "186898732",
"storeId": 818,
"shippingMethod": "default",
"productionTime": "regular",
"specialInstructions": "This is a special order.",
"printouts": [
"https://www.example.com/printout1.jpg",
"https://www.example.com/printout2.jpg",
"https://www.example.com/printout3.jpg"
],
"recipient": {
"firstName": "John",
"lastName": "Smith",
"addressLine1": "123 Main St.",
"addressLine2": "Apt. 123",
"city": "New York",
"state": "NY",
"zipCode": "10001",
"country": "US",
"phone": "123-456-7890",
"company": "ABC Company"
},
"orderItems": [
{
"externalItemId": "123456789",
"subcategoryId": 103001,
"quantity": 1,
"width": 8,
"height": 10,
"file": {
"imageUrl": "https://www.example.com/image.jpg"
},
"orderItemOptions": [
11,
51,
23
],
"solidColorHexCode": null
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://us.api-sandbox.lumaprints.com/api/v1/orders' \
--header 'Content-Type: application/json' \
--data-raw '{
"externalId": "186898732",
"storeId": 818,
"shippingMethod": "default",
"productionTime": "regular",
"specialInstructions": "This is a special order.",
"printouts": [
"https://www.example.com/printout1.jpg",
"https://www.example.com/printout2.jpg",
"https://www.example.com/printout3.jpg"
],
"recipient": {
"firstName": "John",
"lastName": "Smith",
"addressLine1": "123 Main St.",
"addressLine2": "Apt. 123",
"city": "New York",
"state": "NY",
"zipCode": "10001",
"country": "US",
"phone": "123-456-7890",
"company": "ABC Company"
},
"orderItems": [
{
"externalItemId": "123456789",
"subcategoryId": 103001,
"quantity": 1,
"width": 8,
"height": 10,
"file": {
"imageUrl": "https://www.example.com/image.jpg"
},
"orderItemOptions": [
11,
51,
23
],
"solidColorHexCode": null
}
]
}'
Responses
🟢201Order has been successfully submitted.
application/json
Body
message
string
required
orderNumber
integer
required
Example
{
"message": "The preliminary checks for the order submission were successful. It has now been placed in the queue for processing.",
"orderNumber": 10000001440
}
🟠400Bad Request
🟠406Not Acceptable
Modified at 2024-09-06 18:32:39