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

# Complete checkout

> Complete checkout

### Path parameters

<ParamField path="session_id" type="string (uuid)" required>
  Checkout session id
</ParamField>

### Request body

JSON body of type `CompleteCheckoutRequest`.

### Responses

<ResponseField name="201" type="object">
  Checkout completed
</ResponseField>

<ResponseField name="400" type="ErrorResponse">
  Invalid request
</ResponseField>

<ResponseField name="401" type="ErrorResponse">
  Unauthorized
</ResponseField>

<ResponseField name="404" type="ErrorResponse">
  Not found
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/checkout/{session_id}/complete' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{}'
  ```
</RequestExample>
