Create purchase order (manual or AI)
Purchase Orders
Create purchase order (manual or AI)
Create a buying commitment to a vendor. Supports AI create when prompt is present. Use /purchase-orders/{uuid}/convert-to-restock when goods arrive.
POST
Create purchase order (manual or AI)
Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Body
application/json
Purchase order date.
Line items.
Minimum array length:
1Expected delivery date.
Currency code.
PO number; auto-assigned if omitted.
PO title / description.
Internal note.
Vendor contact uuid, name, or email. Alias: vendor.
Default 1.
Default draft.
Response
Purchase order created