Skip to main content
POST
Create sale (DTE)

Authorizations

X-API-Key
string
header
required

Integration API Key (Integrations → New Integration).

Body

application/json
branch_id
string<uuid>
required

Issuing branch (GET /branches).

customer_id
string<uuid>
required

Receiving customer.

document_type
enum<string>
required

SV: fc, ccf, fex, nc, nd, nr. US: inv, cm, dm.

Available options:
fc,
ccf,
fex,
nc,
nd,
nr,
inv,
cm,
dm
payment_details
object[]
required
products
object[]
required
totals
object
required
date
string

ISO 8601 date and time. Default: now.

observation
string

Notes.

is_credit
boolean

Credit sale.

credit_days
integer

Credit days.

project_id
string<uuid>

Associated project.

point_of_sale_id
string<uuid>

Issuing point of sale (of the branch and active). Default: the branch's default.

cost_center_id
string<uuid>

Cost center of the sale (leaf and active; GET /accounting/cost-centers). Applied to income lines when posting.

incoterm_id
string<uuid>

Incoterm (export).

cost_center_distribution_id
string<uuid> | null

Active distribution (GET /accounting/cost-center-distributions): income 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

Document issued