Skip to content

Create order​

POST
/orders

This API endpoint creates an order and returns it.

Authorizations​

bearerAuth
Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"reference_order_id": "#1001",
  
"test_order": false,
  
"shipment_notification_url": "https://api.teeinblue.com/api/webhook/print-provider?order-token=7d1e0f01ff56119101046f4f27a88412",
  
"shipping_address": {
  
  
"zip": "60089",
  
  
"city": "Buffalo Grove",
  
  
"phone": "string",
  
  
"company": "string",
  
  
"country": "France",
  
  
"address1": "1999 Rue Lucie Aubrac",
  
  
"address2": "string",
  
  
"province": "string",
  
  
"first_name": "John",
  
  
"last_name": "Carry",
  
  
"country_code": "FR",
  
  
"province_code": "string"
  
},
  
"line_items": [
  
  
{
  
  
  
"quantity": 1,
  
  
  
"variant_sku": "2342",
  
  
  
"print_areas": [
  
  
  
  
{
  
  
  
  
  
"key": "front",
  
  
  
  
  
"url": "https://cdn.teeinblue.com/designs/467f0119-2e8d-4bc8-be90-fd80cbb49f08/467f0119-2e8d-4bc8-be90-fd80cbb49f08-272489.png"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Responses​

Order created

application/json
JSON
{
  
"id": "ord_123456",
  
"status": "created",
  
"reference_order_id": "#1001"
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.