« All modules

Sales

Bonuri de vânzare (sale receipts). The document that moves stock out.

Filters on list endpoints are URL path segments, not query strings — see Conventions. The Swagger tester works best for JSON body endpoints.
GET /sales/list/ List sale receipts (bonuri de vânzare)

Returns a paginated list of sale receipts. In BOCP the sale receipt is the document that moves stock out. It can be issued with or without an invoice, with or without a fiscal receipt.

Filters are passed as URL path segments. Example: /sales/list/year:2024/modifiedafter:2024-06-01%2000:00:00/page:2/.

Standard filters: year, yearmonth, yearmonthday, date, modifiedafter, modifiedthrough, id, minid, skipcancelled, page.

Include: items, transactions, invoiced.

Exclude: added-by-api, invoiced.

Responses

StatusDescription
200 OK — response uses the shared envelope.
400 Request is malformed or a required field is missing / invalid.
401 Missing or invalid Basic Auth credentials.
GET /sales/{bv_id}/payment/ Payment schema for a sale

Returns the JSON schema and allowed payment types for creating a payment on the given sale. Useful for building your integration UI.

Parameters

NameInTypeRequiredDescription
bv_id path integer yes BOCP ID of the sale.

Responses

StatusDescription
200 OK — response uses the shared envelope.
404 The requested resource does not exist.
POST /sales/{bv_id}/payment/ Register a payment on a sale

Records an incasso (or payment) against an existing sale receipt.

Notes:
- You can register multiple payments on the same sale (partial payments, installments).
- incasare_id in the response identifies the payment inside /payments/list/.
- payment_type accepts the string codes returned by /payments/types/.

Parameters

NameInTypeRequiredDescription
bv_id path integer yes BOCP ID of the sale.

Request body (JSON)

{
    "amount": 250,
    "payment_type": "bank_transfer",
    "date": "2026-05-20",
    "currency": "RON",
    "mentions": "OP 1234 BT",
    "external_ref": "TXN-98765"
}

Responses

StatusDescription
200 Payment registered.
400 Missing/invalid fields, or the sale is cancelled.
401 Missing or invalid Basic Auth credentials.
404 The requested resource does not exist.

This page is generated from openapi.json.