Linkable
POD Order

Create POD order

POST
/v1/orders/pod

Tạo đơn hàng Print-on-Demand. Hệ thống tự validate, tính pricing, và push sang Shopify.

reference_id là mã đơn duy nhất trong mỗi store — gửi trùng ref sẽ bị từ chối với lỗi 409 DUPLICATE_REFERENCE_ID (không tạo mới, không trả order cũ).

Authorization

ClientToken
AuthorizationBearer <token>

Bearer token issued by Infinitee. Pass in the Authorization: Bearer <token> header.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/orders/pod" \  -H "Content-Type: application/json" \  -d '{    "reference_id": "string",    "customer": {      "email": "user@example.com",      "first_name": "string",      "last_name": "string"    },    "line_items": [      {        "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6",        "quantity": 1,        "sides": {          "property1": "http://example.com",          "property2": "http://example.com"        }      }    ]  }'
{  "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",  "reference_id": "string",  "status": "PENDING",  "duplicate": true,  "queue_position": 0,  "pricing": {    "subtotal": 0,    "shipping_total": 0,    "discount_amount": 0,    "grand_total": 0  },  "created_at": "2019-08-24T14:15:22Z"}