Skip to content

Create an order ​

POST {base_url}/api/integration/orders.json

Field
order_numberrequiredYour order number. Unique in the store, across all sources (API, CSV, Shopify…).
addressrequiredThe 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_shiprequiredShipping option code, e.g. standard, express. Ask Pawdo which are enabled for you.
line_itemsrequired, 1–500See below.
order_note
skip_verify_addresstrue: the address is not verified and counts as valid.
external_transaction_idYour payment reference.

Each line item:

Field
system_skurequiredThe Pawdo SKU (a variant, an alias, or a combo).
quantityrequired1–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.
skuYour own SKU.
titleDefault: catalog name and variant title.
note, tags (unique strings), external_line_item_id, brand_code, ring_code
option1, option2, option3Override the variant's options. option2 / option3 are taken only when option1 is sent too.
bash
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"}]}]}'
json
{
  "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.

HTTPmessageWhen
400bad request, detail in errorA 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
400bad request, detail in errorThe body is not JSON
400unsupported shipping optionoption_ship is not a shipping option
409order existedThe store already has this order_number
422invalid system sku: NOPE-SKUA 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.