Create Order
POST
/v1/orders
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Accept
string
required
Example:
application/json
Body Params application/json
order_type
string
required
reference_id
string
required
order_status
string
optional
test_order
boolean
optional
shipping_method
integer
required
rush_production
boolean
optional
gift_message
string
optional
address
object
required
name
string
required
email
string
required
company
string
optional
phone
string
required
street1
string
required
street2
string
optional
city
string
required
state
string
required
country
string
required
zip
string
required
line_items
array [object {6}]
required
item_id
string
required
sku
string
required
name
string
optional
quantity
integer
required
print_areas
object
required
preview_areas
object
optional
tax_id
string
optional
tax_id_type
string
optional
coupon_code
string
optional
label_url
string
required
Example
{
"reference_id": "20231111",
"order_status": "draft",
"boost_production": false,
"line_items": [
{
"item_id": "1",
"sku": "UTNGDT1W00L",
"name": "Item 1",
"quantity": 3,
"print_areas": {
"front": "url",
"back": "url"
},
"preview_areas": {
"front": "url",
"back": "url"
}
}
],
"address": {
"name": "Michael Brown",
"company": "My company",
"email": "michaelbrown@demo.com",
"phone": "(330) 829-0294",
"street1": "3431 Reeves Street",
"street2": null,
"city": "Milwaukee",
"state": "WI",
"country": "US",
"zip": "53202"
},
"shipping_method": 1,
"gift_message": "string",
"tax_id": "string",
"tax_id_type": "string"
}
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://api-v2.fastpod.net/v1/orders' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"reference_id": "20231111",
"order_status": "draft",
"boost_production": false,
"line_items": [
{
"item_id": "1",
"sku": "UTNGDT1W00L",
"name": "Item 1",
"quantity": 3,
"print_areas": {
"front": "url",
"back": "url"
},
"preview_areas": {
"front": "url",
"back": "url"
}
}
],
"address": {
"name": "Michael Brown",
"company": "My company",
"email": "michaelbrown@demo.com",
"phone": "(330) 829-0294",
"street1": "3431 Reeves Street",
"street2": null,
"city": "Milwaukee",
"state": "WI",
"country": "US",
"zip": "53202"
},
"shipping_method": 1,
"gift_message": "string",
"tax_id": "string",
"tax_id_type": "string"
}'
Responses
🟢200Success
application/json
Body
status
boolean
required
message
string
required
data
object
required
id
string
required
order_type
string
required
reference_id
string
required
order_status
string
required
test_order
boolean
required
item_total
number
required
shipping_total
number
required
surcharge_total
integer
required
labeling_fee
integer
required
peak_season_surchage
integer
required
order_total
number
required
payment_method
string
required
payment_status
string
required
point_earned
integer
required
point_used
integer
required
quantity_total
integer
required
shipping_method
integer
required
rush_production
boolean
required
gift_message
null
required
created_at
string
required
updated_at
string
required
rejected_at
null
required
rejected_status
null
required
cancelled_at
null
required
address
object
required
line_items
array [object {14}]
required
shipments
array[string]
required
label_url
string
required
coupon_code
string
required
discount_total
integer
required
discount_labeling_fee
integer
required
Examples
{
"status": true,
"message": "Order created successfully.",
"data": {
"id": "F255-010524-000001",
"reference_id": "string",
"order_status": "new_order",
"test_order": false,
"item_total": 16.8,
"shipping_total": 4.99,
"order_total": 21.79,
"payment_method": "cash",
"payment_status": "unpaid",
"point_earned": 0,
"point_used": 2179,
"quantity_total": 1,
"shipping_method": "1",
"rush_production_price": 0,
"rush_production": false,
"gift_message": null,
"tax_id": null,
"tax_id_type": null,
"created_at": "2024-01-05T02:50:03.000000Z",
"updated_at": "2024-01-05T02:50:03.000000Z",
"rejected_at": null,
"rejected_reason": null,
"cancelled_at": null,
"address": {
"name": "string",
"company": "string",
"email": "email",
"phone": "string",
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"country": "US",
"zip": "string"
},
"line_items": [
{
"print_areas": {
"front": "url",
"back": "url"
},
"preview_areas": {
"front": "url"
},
"id": 100539,
"item_id": "string",
"name": "string",
"sku": "UABSTBLCKEXS",
"style": "3001",
"color": "BLACK",
"size": "XS",
"unit_price": 16.8,
"quantity": 1,
"point_earned": 0,
"price": 16.8,
"discount": 0,
"product_name": "UNISEX JERSEY SHORT SLEEVE TEE",
"shipping_price": 4.99
}
],
"shipments": [],
"coupon_code": null,
"discount_total": 0,
"labeling_fee": 0,
"order_type": 1,
"discount_labeling_fee": 0,
"apply_coupon": false,
"message_coupon": "The coupon code is invalid"
}
}
🟠422Parameter Error
Modified at 2024-01-09 00:33:37