Create an order
Orders
Create an order
Creates an order with line items and returns it. Rejects unknown product SKUs (400 INVALID_PRODUCT_SKU) and duplicate order numbers (409 DUPLICATE_ORDER_NUMBER). Raw integration payloads (external_data) cannot be set via the public API.
POST
Create an order
Authorizations
API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.
Body
application/json
Minimum array length:
1Available options:
shopify, etsy, manual, other Total in cents. Calculated from items if omitted.
Required range:
x >= 0Shipping cost in cents
Required range:
x >= 0Tax amount in cents
Required range:
x >= 0Discount applied in cents
Required range:
x >= 0