Create purchase invoice
POST/api/v2/purchase-invoices
Creates a new supplier purchase invoice with the provided data and optional line items and payments. The issued flag is forced to false server-side regardless of the request payload.
Request
Responses
- 201
- 400
- 401
- 403
- 500
Purchase invoice created
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Authenticated user is missing the CREAR_FACTURASRECIBIDAS permission
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.