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

# Checkouts API Reference

## Introduction

The Checkouts API enables developers to create and manage checkouts for cryptocurrency payments entirely via API — no dashboard required. These APIs provide a simple way to accept payments by generating embeddable URLs that handle the payment flow, including address generation, transaction monitoring, and status updates. Real-time payment notifications are available through [webhooks](https://docs.cdp.coinbase.com/coinbase-business/checkout-apis/webhooks.md).

> [!NOTE]
>
> To use these APIs, you need a [Coinbase Business account](https://www.coinbase.com/business).

## Base URL

```
https://business.coinbase.com/api/v1/checkouts
```

## Authentication

All Checkouts API endpoints require authentication using a JWT Bearer token. See the [Authentication guide](https://docs.cdp.coinbase.com/coinbase-business/authentication-authorization/api-key-authentication.md) for details on generating your token.

## Available Endpoints

* **[Create Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/create-checkout.md)** - Creates a new checkout
* **[List Checkouts](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/list-checkouts.md)** - Retrieves a paginated list of checkouts
* **[Get Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/get-checkout.md)** - Retrieves details of a specific checkout
* **[Deactivate Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/deactivate-checkout.md)** - Deactivates a checkout
* **[Refund Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/refund-checkout.md)** - Initiates a refund for a completed checkout

## Agentic Payments with x402

Each checkout also exposes an [x402](https://docs.cdp.coinbase.com/x402/welcome.md) payment URL in the `x402_url` field of the checkout response. An AI agent or [x402 client](https://docs.cdp.coinbase.com/x402/buyer/quickstart.md) can pay this URL programmatically: it authorizes a gasless USDC payment on Base that Coinbase captures and settles server-side — no hosted page, wallet pop-up, or human in the loop. See [Accept agentic payments with x402](https://docs.cdp.coinbase.com/coinbase-business/checkout-apis/accept-x402-payments.md) for the end-to-end flow.

## Checkout Status

Checkouts can have the following statuses:

* `ACTIVE` - The checkout is active and can accept payments
* `PROCESSING` - The checkout is processing a payment
* `DEACTIVATED` - The checkout has been manually deactivated
* `EXPIRED` - The checkout has expired based on the `expiresAt` timestamp
* `COMPLETED` - The checkout has been successfully paid
* `FAILED` - The checkout has failed due to a payment error
* `REFUNDED` - The checkout payment has been fully refunded
* `PARTIALLY_REFUNDED` - The checkout payment has been partially refunded

> [!NOTE]
>
> Payment confirmation is asynchronous. After the customer pays, the checkout stays `ACTIVE` until Coinbase detects the payment on the blockchain, then moves `PROCESSING → COMPLETED`. Do not fulfill from a success redirect or from a GET that still returns `ACTIVE`. Use [webhooks](https://docs.cdp.coinbase.com/coinbase-business/checkout-apis/webhooks.md) or poll [Get Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/get-checkout.md) until the status is `COMPLETED`, `FAILED`, `EXPIRED`, or `DEACTIVATED`; fulfill only when the status is `COMPLETED`.

## Refund Status

Refunds associated with a checkout can have the following statuses:

* `PENDING` - The refund is being processed
* `COMPLETED` - The refund has been successfully completed
* `FAILED` - The refund has failed
