# Payments



Start the deposit payment for the current guest booking.



## Start a deposit payment

`POST /v1/public/bookings/current/deposit`

A guest starts Stripe Checkout for the current booking with Authorization: Booking; an invalid capability returns 404 and payment conflicts return 409.

### Parameters

- `Authorization` (string, required): Guest booking capability in the Booking authorization scheme.
- `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop.

### Body parameters

- `idempotency_key` (string · uuid, required): Unique UUID for a safe retry of this request.

### Returns

A JSON response with checkout_url, expires_at.

### Errors

- 404: The Booking capability or current booking was not found.
- 409: The booking or payment account cannot start this payment.
- 422: A field or parameter failed validation.

### Request

```bash
API_BASE="https://api.outdoorgrid.ai"
curl -X POST "$API_BASE/v1/public/bookings/current/deposit" \
  -H "Authorization: Booking $BOOKING_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "idempotency_key":
    "7a6f9780-7d6f-4c6f-8f6f-7e6f9dcc816f"
}'
```

```javascript
const credential = process.env.BOOKING_TOKEN;

const url = "https://api.outdoorgrid.ai" +
  "/v1/public/bookings/current/deposit";
const response = await fetch(url, {
  method: "POST",
  headers: {
    "Authorization": `Booking ${credential}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "idempotency_key":
      "7a6f9780-7d6f-4c6f-8f6f-7e6f9dcc816f"
  }),
});
const data = await response.json();
```

```python
import os
import requests

credential = os.environ["BOOKING_TOKEN"]
authorization = f"Booking {credential}"

url = (
    "https://api.outdoorgrid.ai"
    "/v1/public/bookings/current/deposit"
)
response = requests.post(
    url,
    headers={
        "Authorization": authorization,
        "Content-Type": "application/json",
    },
    json={
        "idempotency_key": (
            "7a6f9780-7d6f-4c6f-8f6f"
            "-7e6f9dcc816f"
        ),
    },
    timeout=10,
)
response.raise_for_status()
print(response.json())
```

### Response

```json
{
  "checkout_url": "https://example.com/bikes",
  "expires_at": "2026-07-18T09:00:00Z"
}
```

## The Payment object



- `at_shop_without_rentals` (boolean, required): A basket without rented sizes (tour seats, extras without sizes) may also choose at_shop
- `choices` (string[], required): Payment choices accepted for a basket under the shop's default rules; a product can narrow them.
- `deposit_min_minor` (integer, required): Deposit mode only: the least deposit of a booking
- `deposit_percent` (integer, required): Deposit mode only: the share of the total paid online, rounded up to whole units
- `mode` (string, required): The shop's online mode Values: `pay_at_shop`, `deposit`.



```json

{
  "at_shop_without_rentals": true,
  "choices": [
    "deposit"
  ],
  "deposit_min_minor": 4500,
  "deposit_percent": 2,
  "mode": "pay_at_shop"
}

```