> For the complete documentation index, see [llms.txt](https://docs.recomsale.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.recomsale.com/features/affiliate-order/affiliate-order-status.md).

# Affiliate Order status

### Pending

When a customer places and pays an order via an affiliate link or affiliate's discount code, RecomSale will generate a pending affiliate order. Please note that affiliate orders will not be recorded if the order is unpaid. If you want to record, please mark the order as paid in the shopify admin, and then it will be recorded.

### Approved

After the affiliate's affiliate order is approved by the merchant, the status of the affiliate order changes to Approved. Merchants can approve manually or set up automatic approval after a period of time. After approval, if you feel that the affiliate order does not meet the requirements, you can also revoke the approval and the status of the affiliate order will change to Pending. In addition, you also can invalidate the affiliate order.

### Unpaid

<figure><img src="/files/jenCLed7DXaNcr0eVsBj" alt=""><figcaption></figcaption></figure>

In the "Payments" menu, merchants can click "Generate Commission Bills" and the system will change the status of approved affiliate orders to Unpaid. After the status of the affiliate order is changed to Unpaid, if you think the affiliate order does not meet the requirements, you can invalidate it, and the commission amount will also be invalid, and the bill will not include this part of the commission.

### Paid

When a commission bill is marked as paid, the system changes the status of the affiliate orders included in the bill to Paid.

### Invalid

If a affiliate order that is pending, approved, or unpaid is fully refunded in Shopify, RecomSale will change the status of the affiliate order to invalid, and the commission amount will also be invalid, and the bill will not include this part of the commission. If only a partial refund occurs, RecomSale will update the amount on the original affiliate order without changing the status of the affiliate order.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.recomsale.com/features/affiliate-order/affiliate-order-status.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
