Restock inventory
Create a restock document that increases stock quantities. The payload follows the same line-item structure as a bill (date, customer (vendor), items[] with item_name, quantity, selling_price (unit cost), category). Stock is updated after save.
Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Body
Bill date.
Payment due date. Alias: due_date.
Currency code.
1Vendor uuid, name, or email. Alias: vendor.
Bill reference. Alias: bill_no.
Document title.
Internal note.
Optional accounts payable control account.
Amount paid now. Omit for an open bill.
Cash or bank account name payment came from.
Default 1.
Default pending. Use draft to save without posting.
Response
Restock document created