Create a Sales Register Entry
Creates a document in the sales register. Use entry_type SALES or SALES_ADJUSTMENT and document_type INVOICE or CREDIT_NOTE. A valid bearer token is required.
Path parameter
POST /api/document-registers/{profile_id}
Authorization: Bearer {jwt_token}Supplier and customer from profile
For sales and sales adjustments:
Use the same request body structure for all sales scenarios; only entry_type and document_type change.
Request body
Send a JSON object with the fields described in the Document register object. Typical combinations:
Response
Status code: 201 Created
Response body:
Returns the created register entry with request data and system‑generated fields (id, uuid, source_type, line ids, created_at, updated_at).
Error responses
400 Bad Request
Invalid request body or validation failed. The response returns an errors object with field names as keys and error messages as values.
401 Unauthorized
Authentication required or invalid token.
500 Internal Server Error
An error occurred while processing the request.
