[POST] .../v1/docinvoice/importdocumentfromroaming
Imports an invoice document from roaming. Use this method after DocInvoice/GetDocumentsFromRoaming when the user selects a provider-side invoice that should be imported into REGOS. The request body must contain the provider document id and firm_id; a successful response returns OkResult after the EDI adapter accepts the import request. The firm must have DEFAULT_EDO_INTEGRATION configured and id must be the provider document identifier returned by GetDocumentsFromRoaming. The current request user must have invoice add permission; missing body, invalid id or firm_id, denied access, missing EDI configuration, provider import failures or adapter errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| firm_id | Int64 | Required | ID of the company that receives the document. |
| id | String | Required | Document ID in the provider system to receive. |
Request Example
{
"id": "EDI-123456",
"firm_id": 1
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
Response Example
{
"ok": true
}