Skip to main content
POST
Restock inventory

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

Bill date.

document_due
string<date>
required

Payment due date. Alias: due_date.

currency
string
required

Currency code.

items
object[]
required
Minimum array length: 1
customer
string

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

document_number
string

Bill reference. Alias: bill_no.

narration
string

Document title.

memo
string

Internal note.

payable_account
string

Optional accounts payable control account.

amount_paid
number

Amount paid now. Omit for an open bill.

payment_category
string

Cash or bank account name payment came from.

exchange_rate
number

Default 1.

status
string

Default pending. Use draft to save without posting.

Response

Restock document 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.