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

# Book & Pay

> Create a booking from a quote and pay

## Request

<ParamField body="quoteId" type="string" required>UUID of a valid, non-expired quote.</ParamField>
<ParamField body="payWith" type="string" required>Currency to pay with.</ParamField>
<ParamField body="paymentMethod" type="string">Payment method (default: `auto`).</ParamField>

```bash theme={null}
curl -X POST https://api.midasprotocol.org/bookings \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "quoteId": "quote-uuid", "payWith": "USDC" }'
```

## Response

```json theme={null}
{
  "id": "uuid", "status": "CONFIRMED",
  "confirmationCode": "BK-ABC123",
  "serviceId": "uuid", "totalAmount": "25.00", "currency": "USDC",
  "railUsed": "internal", "transactionId": "uuid"
}
```
