> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gameball.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Order

Gameball’s **Order APIs** are built for e-commerce platforms and any system that needs to **track customer orders efficiently**.\
They streamline customer purchase management by combining multiple actions into a **single unified endpoint**.

<Info>
  Instead of making multiple API calls (e.g., sending a purchase event + calculating cashback rewards), you can rely on the **Order API** to handle everything in one go.\
  This makes integration easier and ensures a smooth customer experience.
</Info>

***

## 🚀 What You Can Do with the Order API

<Cards>
  <Card title="Order Tracking" icon="receipt">
    Create an order in Gameball to automatically:

    * Record purchases
    * Trigger loyalty rules
    * Calculate rewards/cashback
  </Card>

  <Card title="Calculate Order Cashback" icon="coins">
    Preview how many **points or cashback** a customer will earn before checkout.\
    Useful for showing customers "Earn X points with this order".
  </Card>

  <Card title="Order Transactions" icon="history">
    Retrieve the full **order history** including:

    * Rewards
    * Refunds
    * Adjustments\
      For clear and transparent tracking.
  </Card>
</Cards>

***

## 🧭 How It Works

<Steps>
  <Step title="Create an Order">
    Use the **Order Tracking API** to log the purchase and let Gameball handle rewards and rules automatically.
  </Step>

  <Step title="Preview Cashback">
    Optionally, call **Calculate Order Cashback** to show customers their potential rewards.
  </Step>

  <Step title="Track Transactions">
    Retrieve a detailed breakdown of all activities tied to the order with **Order Transactions**.
  </Step>
</Steps>

***

## 📖 Learn More

<Tabs>
  <Tab title="Order Tracking">
    [Order Tracking →](/api-reference/order/order-tracking)
  </Tab>

  <Tab title="Order Rewards & History">
    [Order Rewards & History →](/api-reference/order/order-transactions)
  </Tab>
</Tabs>

***

<Note>
  Together, these APIs provide a **comprehensive solution** for managing customer orders, calculating rewards, and retrieving detailed transaction histories — all within the **Gameball ecosystem**.
</Note>
