Skip to main content
POST
Create purchase order (manual or AI)

Authorizations

X-API-Key
string
header
default:your_tyms_sk_or_partner_key
required

Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.

Body

application/json
date
string<date>
required

Purchase order date.

items
object[]
required

Line items.

Minimum array length: 1
delivery_date
string<date>

Expected delivery date.

currency
string

Currency code.

document_number
string

PO number; auto-assigned if omitted.

narration
string

PO title / description.

memo
string

Internal note.

customer
string

Vendor contact uuid, name, or email. Alias: vendor.

exchange_rate
number

Default 1.

status
string

Default draft.

branch_uuid
string | null
department_uuid
string | null
project_uuid
string | null

Response

Purchase order created

status
string
required
Example:

"success"

message
string
required
data
any

Single resource, array of resources, statement sections, or async job metadata — see each operation's example.

meta
object

Pagination (page, limit, total) and/or report range (from, to). Cash flow may include previous_period_end.