Skip to main content
POST
Register purchase

Authorizations

X-API-Key
string
header
required

Integration API Key (Integrations → New Integration).

Body

application/json
branch_id
string<uuid>
required

Branch.

provider_id
string<uuid>
required

Supplier.

document_type
enum<string>
required

Document type.

Available options:
ccf,
fse,
ticket
date
string<date>
required

Date.

is_credit
boolean
required

On credit.

products
object[]
required
totals
object
required
credit_days
integer

Credit days.

observation
string

Notes.

number_control
string

DTE control number.

generation_code
string

Generation code.

stamp
string

Stamp.

cost_center_id
string<uuid>

Cost center of the purchase (leaf and active; GET /accounting/cost-centers).

cost_center_distribution_id
string<uuid> | null

Active distribution: the expense is split among its centers by percentage. Mutually exclusive with cost_center_id at the same level (422 Indique centro de costo o distribución, no ambos.).

Response

Purchase registered