Place an order
customcat_create_orderWRITE: place an order for CustomCat to print and ship. This CHARGES the payment method on file in your CustomCat account (product cost + shipping; a front+back print adds $5 per line item) unless sandbox=true, which only validates the order. A real order (sandbox=false) also needs confirm=true, set only after the user confirmed it. The order id is yours and must be new (a duplicate is rejected). Needs the Write API key. Check stock with customcat_get_catalog_sku and the method name with customcat_list_shipping_methods first, and confirm the details with the user before calling. POST /order/{order_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items: either {sku, quantity} for products made in CustomCat, or {catalog_sku, design_url, quantity} for your own artwork. | |
| confirm | No | Required (true) for a real order (sandbox=false): set it only after the user has confirmed the items, address, shipping method and that their CustomCat payment method will be charged. | |
| sandbox | Yes | true = test order, nothing is charged or produced; false = a real, paid order. | |
| order_id | Yes | Your unique order id (for example 101-102938). | |
| shipping_zip | Yes | ||
| shipping_city | Yes | ||
| shipping_email | Yes | Customer email (required by CustomCat). | |
| shipping_phone | Yes | ||
| shipping_state | Yes | State/province code, e.g. MI. | |
| shipping_method | Yes | Method name from customcat_list_shipping_methods, e.g. Economy. | |
| shipping_country | Yes | 2-letter ISO country code, e.g. US. | |
| shipping_address1 | Yes | ||
| shipping_address2 | No | ||
| shipping_last_name | Yes | ||
| shipping_first_name | Yes |