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

# Get Session

> Retrieve the status of a payment session.

# Get Payment Session

Check the current status of a payment session.

## Path Parameters

<ParamField path="session_id" type="string" required>
  The session ID returned from [Create Session](/api-reference/payments/create-session).
</ParamField>

## Response

```json theme={null}
{
  "success": true,
  "data": {
    "session_id": "sess_a1b2c3d4",
    "status": "completed",
    "amount": 5320,
    "currency": "USD",
    "payment_type": "one_time",
    "created_at": "2026-01-16T21:00:00.000Z",
    "completed_at": "2026-01-16T21:05:00.000Z"
  }
}
```

## Session Statuses

| Status      | Description                       |
| ----------- | --------------------------------- |
| `pending`   | Session created, awaiting payment |
| `completed` | Payment successful                |
| `expired`   | Session expired (30 min default)  |
| `failed`    | Payment failed                    |

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.khaime.com/api/v1/partner/payments/sessions/sess_a1b2c3d4 \
    -H "X-API-Key: pk_sandbox_your_key"
  ```
</RequestExample>
