> For the complete documentation index, see [llms.txt](https://docs.covestlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.covestlabs.com/covest-warranty/api-diagrams/redeem-order-flow.md).

# Redeem Order Flow

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

For merchants, the "Redeem Order Flow" involves the following steps:

**Merchant Step 1**: Login Merchants initiate the process by logging in to the Covest API using their username and password. This step verifies their credentials, and upon successful login, the API generates an authentication token and returns it to the merchant.

**Merchant Step 2**: Redeem Order Once authenticated, merchants proceed to redeem an order. They send a request to the Covest API, specifying the order ID that needs to be redeemed. The API processes the request and returns a redeem success result, indicating a successful redemption.

In addition, if integrated with a blockchain, merchants can include further steps to interact with the blockchain layer. This may involve retrieving transaction hashes, block numbers, or other relevant data associated with the order redemption.

By following these steps, merchants can seamlessly initiate the redemption process through the Covest API. The integration with the blockchain layer adds transparency and immutability to the transaction data, enhancing trust and traceability in the redemption process.

Please note that the provided flow assumes a general process and may require adjustments to align with specific implementation details and requirements.

Explore our GraphQL API integration pages to access the complete documentation and example code, empowering you to seamlessly integrate with our system and unlock the full potential of our API. Visit the full documentation for Covest Warranty's GraphQL API here:

{% embed url="<https://warranty-docs.covestlabs.com/>" %}


---

# 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.covestlabs.com/covest-warranty/api-diagrams/redeem-order-flow.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.
