# Sync Invoice with an Integration Queues a background job that associates the document with an integration (plugin). Answers {} immediately; the result is not reported back. Endpoint: POST /api/v3/invoices/{id}/handle_integration Version: 3.1.0 Security: apiKeyAuth ## Path parameters: - `id` (integer, required) The document ID. Example: 541674 ## Query parameters: - `plugin_id` (string, required) UUID of the plugin (integration). Can also be sent in the JSON body. An empty value uses the default plugin. Omitting the parameter entirely fails with 500. Example: "3f2504e0-4f89-11d3-9a0c-0305e82c3301" - `api_key` (string, required) Your API Key. Example: "YOUR_API_KEY" ## Response 401 fields (application/json): - `errors` (array) Example: [{"error":"Authentication Error"}] - `errors.error` (string) ## Response 500 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string)