# Synchronize transaction status with order status

We recommend activating the configuration for synchronizing the status of affiliate transactions. This allows provisions/commissions for affiliates to be paid out automatically as soon as the respective order status is "*Completed*" and the number of days to wait has expired.

A detailed description of how automatic synchronization works and how to activate it can be found here:

{% content-ref url="/pages/ukQiNtR7MZ13n87NPCkw" %}
[Synchronization](/plugin-documentation/en/apps/affiliate-marketing/configuration/synchronization.md)
{% endcontent-ref %}

If, contrary to expectations, synchronization does not work automatically, there may be various technical reasons for this:

For security reasons and to prevent payments for canceled orders, affiliate transactions are only payable by default once the number of days to wait has elapsed and the corresponding order has been completed. We therefore recommend checking the following:

* Does the order associated with the affiliate transaction have the order status *Completed*?
* Has the number of days to wait (configurable in the settings) for the affiliate transaction not yet been exceeded?
* Are the scheduled tasks in your Shopware 6 shop running properly?

### Check scheduled tasks

For performance reasons, automatic synchronization is performed every half hour by the scheduled task `cogi_affiliate.transaction_task`. It is important that the scheduled tasks in your online store are configured correctly - this is usually taken care of by your agency or developer when setting up your store. If you have any questions, please feel free to contact us!

Here are a few tips on how to check the scheduled tasks:

For Shopware 6, there is a free extension called FroshTools, which allows you to see when the scheduled task named `cogi_affiliate.transaction_task` was last executed under "Scheduled Tasks Manager". The current date should be displayed here. If not, the configuration of the scheduled tasks in the online shop is probably incorrect. In this case, the scheduled tasks and cron jobs on the server should be corrected urgently, as they are also required for other Shopware components. You can also execute the scheduled task manually via FroshTools. We are happy to assist you if necessary!

{% embed url="<https://store.shopware.com/en/frosh12599847132/tools.html>" %}

### I have questions or need a specific feature!

Just contact us with no obligation! We are happy to assist you with any questions or requests you may have. We respond promptly to all inquiries and have already implemented numerous customer requests in the affiliate marketing extension!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codegiganten.de/plugin-documentation/en/apps/affiliate-marketing/synchronize-transaction-status-with-order-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
