[POST] .../v1/docinvoice/send
Sends invoice documents through EDI. Use this method after DocInvoice/Perform to export one or more outgoing invoices to the firm's configured EDI provider. The request body must contain firm_id and document_ids; document_ids must contain at least one ID and not more than 100 IDs and a successful response returns OkResult after the provider export is accepted and invoice status is moved to InSentProgress. The firm must have DEFAULT_EDO_INTEGRATION configured, every invoice must belong to that firm, be posted, locked by the current request user, have status New or ErrorSent, have a contract, company and partner TIN/address, be non-corrective and have no more than 1000 operation rows with filled ICP and package codes. The current request user must have invoice select permission; validation, denied access, missing EDI configuration, provider export failures, invalid invoice state, missing counterpart data, operation validation, database or status-update failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| document_ids | Array of Int64 | Required | Invoice IDs to send through EDI. The array must contain 1 to 100 invoice IDs. |
| firm_id | Int64 | Required | ID of the firm on whose behalf the invoice is sent. |
Request Example
{
"firm_id": 1,
"document_ids": [
9101
]
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
Response Example
{
"ok": true
}