Skip to main content

Refresh Transactions

POST 

/api/magento2/integration-instances/:magento2IntegrationInstance/transactions/refresh

Start a tracked background job that pulls invoices (GET /V1/invoices) and credit memos (GET /V1/creditmemos) from Magento 2 into SKU.io. The sync is incremental by Magento's updated_at. A document whose Magento order has not been downloaded yet is skipped and counted (skipped_no_order); it is picked up once the order sync brings the order in. Returns the tracked_job_log_id; the job's results report invoices_fetched, invoices_saved, credit_memos_fetched, credit_memos_saved and skipped_no_order, or an error when Magento 2 refuses the request.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Request​

Responses​

OK

Response Headers
    Content-Type