Skip to main content
Required permission: expenses

Register a purchase

As with sales, the external system must send the tax breakdowns per line and the calculated totals.

Fields

products[] (all required, except cost_center_id and cost_center_distribution_id)

Cost center
  • The effective center of each line is the line’s own or, if it has none, the purchase’s.
  • A nonexistent or inactive center, or one with subcenters, returns 422 with details in errors.
  • When posting to accounting, the expense is grouped by account and center: two lines with different centers generate two expense lines. Suppliers, cash and VAT (IVA) are left without a center.
  • Payments made after the purchase take their center by default (see Accounts payable).

totals (all required)

200 response

Query a purchase