English
English
Appearance
English
English
Appearance
POST {base_url}/api/integration/orders.json
| Field | ||
|---|---|---|
order_number | required | Your order number. Unique in the store, across all sources (API, CSV, Shopify…). |
address | required | The buyer. Required inside: name, option_ship, address1, province_code, country_code, postal_code. Also address2, city, state, country, email, phone, tax_number, label_ship (URL of your own label). |
address.option_ship | required | Shipping option code, e.g. standard, express. Ask Pawdo which are enabled for you. |
line_items | required, 1–500 | See below. |
order_note | ||
skip_verify_address | true: the address is not verified and counts as valid. | |
external_transaction_id | Your payment reference. |
Each line item:
| Field | ||
|---|---|---|
system_sku | required | The Pawdo SKU (a variant, an alias, or a combo). |
quantity | required | 1–999. |
designs | [{key, design, mockup}], key being the print area (design1, design2, …). The older flat form design1…design15 / mockup1…mockup15 is still accepted when designs is absent. | |
sku | Your own SKU. | |
title | Default: catalog name and variant title. | |
note, tags (unique strings), external_line_item_id, brand_code, ring_code | ||
option1, option2, option3 | Override the variant's options. option2 / option3 are taken only when option1 is sent too. |
curl -X POST "{base_url}/api/integration/orders.json" \
-H "X-pawdo-access-token: $PAWDO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"order_number": "DOCS-185527-A", "order_note": "first API order", "address": {"name": "Jane Doe", "option_ship": "standard", "address1": "1600 Amphitheatre Pkwy", "address2": "", "city": "Mountain View", "state": "California", "province_code": "CA", "country": "United States", "country_code": "US", "postal_code": "94043", "email": "[email protected]", "phone": "+1 650-253-0000"}, "line_items": [{"sku": "MY-SHOP-TEE-1", "system_sku": "QTN-S", "quantity": 1, "title": "Custom tee", "note": "gift wrap", "designs": [{"key": "design1", "design": "https://example.com/art/front.png", "mockup": "https://example.com/art/front-mockup.png"}]}]}'{
"data": {
"order_id": "f4a795d5-8c5b-4c33-a987-b5640f87857b"
},
"message": "ok",
"status": true
}Pawdo answers at once and validates the order in the background (a few seconds). Read the outcome with GET /orders/query.json. A valid order becomes ready and is charged on the store's payment schedule.
| HTTP | message | When |
|---|---|---|
| 400 | bad request, detail in error | A required field is missing, e.g. validation failed: line_items must contain more than 0 items, country_code is a required field, postal_code is a required field |
| 400 | bad request, detail in error | The body is not JSON |
| 400 | unsupported shipping option | option_ship is not a shipping option |
| 409 | order existed | The store already has this order_number |
| 422 | invalid system sku: NOPE-SKU | A system_sku is not a SKU you can order |
If you have any questions about the API, please contact the Pawdo support team via Facebook.