> For the complete documentation index, see [llms.txt](https://crossli.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://crossli.gitbook.io/docs/api-documentation/create-order.md).

# Create Order

URL: POST `https://backend.crossli.co/api/ticketing/createOrder`

**Sample Input:**

```json
{
  "amount": "1",
  "currency": "USD",
  "blockchain": "MATIC-AMOY",
  "metadata": {
    "buyername": "test",
    "buyerphone": 123456789
  }
}
```

**Expected Output:**

```json
{
  "status": "success",
  "orderId": "41e0c1e0-d33e-4711-8890-3e7b0fbb514d",
  "amount": "1",
  "currency": "USD",
  "amountInCrypto": 1.03,
  "blockchain": "MATIC-AMOY",
  "wallet": "0xcc975ea16d8ec3c2ee2f214653da27fb35bf64a4",
  "paymentUrl": "https://crossli.co/orders/payment/41e0c1e0-d33e-4711-8890-3e7b0fbb514d",
  "metadata": {
    "buyername": "test",
    "buyerphone": 123456789
  }
}
```

Notes:

* The amountInCrypto field represents the amount to be transferred in the given wallet or through the provided payment URL.
* For supported currency codes, visit ExchangeRate-API Documentation.
* For testing purposes, the available blockchains are **MATIC-AMOY** and **ETH-SEPOLIA**.
