> ## 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 My Marketplace

> For sub-merchants: look up which marketplace you belong to and your effective commission rate.

# Get My Marketplace

<Note>
  This is the **sub-merchant-facing** counterpart to the operator-facing marketplace endpoints. Call this with a sub-merchant's own API key to find out which marketplace operator they're linked to — not restricted to marketplace operators like most other `/marketplace/*` endpoints.
</Note>

## Response

```json theme={null}
{
  "success": true,
  "message": "Marketplace details retrieved",
  "data": {
    "marketplace": {
      "id": 42,
      "educator_email": "ops@marketplace.com"
    },
    "commission_rate": "0.0500"
  }
}
```

<Note>
  `marketplace` only includes `id` and `educator_email` — no business/display name is returned by this endpoint today. `commission_rate` is **this caller's own effective rate** (read from their `Educatorportfolio.marketplace_commission_rate`), not the operator's default — it already reflects any per-merchant override set via [Update Commission](/api-reference/marketplace/update-commission).
</Note>

<Warning>
  `commission_rate` is returned as the **raw Postgres `DECIMAL(5,4)` value** — a string like `"0.0500"`, or `null` if never set — not a JS number. Parse it with `Number(...)` before doing arithmetic.
</Warning>

If you're not currently linked to any marketplace, `data.marketplace` is absent entirely — see the 404 below.

## Error Codes

| Status | Error Code           | Cause                                            |
| ------ | -------------------- | ------------------------------------------------ |
| `404`  | `BUSINESS_NOT_FOUND` | You are not currently linked to any marketplace. |
| `400`  | `INTERNAL_ERROR`     | Unexpected server error.                         |

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