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

# Creating Orders

> Create orders for the merchants connected to your platform.

# Creating Orders as a Partner

Once a merchant has connected to your platform you hold their `merchant_key`, delivered in the [`store_onboarded`](https://docs.wava.co/partners/onboarding) webhook. That key is all you need: the request is byte-for-byte the same as a [standard order creation](https://docs.wava.co/orders/creating-orders.md).

> [!NOTE]
>
> The merchant key is what authorizes this call and what decides which store the order belongs to. You may add your `X-API-Key`/`X-API-Secret` for attribution, but they never change the target store. See [Partner Authentication](https://docs.wava.co/partners/authentication.md).

## Example

```bash theme={null}
curl -X POST "https://api.wava.co/v1/orders" \
  -H "merchant-key: MERCHANT_KEY_FROM_STORE_ONBOARDED" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 50000,
    "description": "Product purchase",
    "currency": "COP",
    "shopper": {
      "first_name": "Juan",
      "last_name": "Perez",
      "email": "juan@email.com",
      "phone_number": "+573001234567",
      "country": "CO"
    },
    "payment_gateway": {
      "id_payment_gateway": 1
    },
    "order_key": "partner-order-001"
  }'
```

The response is identical to a direct merchant order, and all payment flows (Nequi, Daviplata, Breb) behave identically.

## Tracking the order back to your system

* `order_key` is echoed back to you as `id_external` in webhooks. Use it to match the order to your own record.
* Available payment gateways differ per merchant. Call [gateway discovery](https://docs.wava.co/orders/gateway-discovery.md) with that merchant's key rather than hardcoding `id_payment_gateway`.
* When the order is paid, `order_payment` is delivered to **your** partner webhook URL, not the merchant's. See [Partner Webhooks](https://docs.wava.co/partners/webhooks.md).

For the full request body reference see [Creating Orders](https://docs.wava.co/orders/creating-orders.md); for gateway-specific flows see [Payment Flows](https://docs.wava.co/payment-flows/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.