> ## 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 Account Info

> Retrieve merchant account details from an API key.

# Get Account Info

Returns the merchant's account details associated with the API key. Used by integrations (e.g. the WooCommerce plugin) to auto-detect the merchant ID and baseline currency.

## Request

No body required. Authentication is via the `X-API-Key` header.

<CodeGroup>
  ```bash cURL theme={null}
  curl -H "X-API-Key: pk_sandbox_bff301298a..." \
       https://api.khaime.com/api/v1/partner/account
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.khaime.com/api/v1/partner/account', {
    headers: {
      'X-API-Key': process.env.KHAIME_API_KEY,
    },
  });
  const data = await response.json();
  ```
</CodeGroup>

## Response

```json theme={null}
{
  "success": true,
  "data": {
    "merchant_id": 1234,
    "baseline_currency": "USD"
  }
}
```

| Field               | Type   | Description                                           |
| ------------------- | ------ | ----------------------------------------------------- |
| `merchant_id`       | number | The numeric merchant ID for this account              |
| `baseline_currency` | string | The store's base pricing currency (e.g. `USD`, `NGN`) |
