# Get a checkout's status

`GET /v1/orgs/{org_id}/billing/checkout/{session_id}`

Requires role owner or higher.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `owner` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org_id` | path | string | yes |  |
| `session_id` | path | string | yes |  |

## Responses

### 200

A Checkout Session of the organization, as the return page needs it.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "A Checkout Session of the organization, as the return page needs it.",
  "properties": {
    "status": {
      "anyOf": [
        {
          "enum": [
            "open"
          ],
          "type": "string"
        },
        {
          "enum": [
            "complete"
          ],
          "type": "string"
        },
        {
          "enum": [
            "expired"
          ],
          "type": "string"
        }
      ],
      "description": "open: not paid yet (the buyer can go back to it); complete: paid or the card saved; expired: start again."
    },
    "synced": {
      "description": "True once Stripe's webhook for the completed session has been applied to the organization.",
      "type": "boolean"
    }
  },
  "required": [
    "status",
    "synced"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 403

forbidden: the action requires the owner role.

Problem type: [forbidden](https://docs.dlogify.com/errors/forbidden.md).

### 404

not-found: the session does not belong to the organization. not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/orgs/{org_id}/billing/checkout/{session_id}" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/billing/getCheckoutSession
