# Organization API: Organizations & Members: Customer link

> The 3 Organization API operations for customer link.

Source: https://docs.coritan.com/api/reference/organizations/organizations-members/members-customer-link/

Part of [Organizations & Members](/api/reference/organizations/organizations-members/).

## Operations

| Method | Path | Summary |
| --- | --- | --- |
| GET | [`/api/v1/orgs/{org_slug}/members/{member_id}/customer-link`](#op-get-api-v1-orgs-org-slug-members-member-id-customer-link) | The storefront customer account this member is on, if any |
| PUT | [`/api/v1/orgs/{org_slug}/members/{member_id}/customer-link`](#op-put-api-v1-orgs-org-slug-members-member-id-customer-link) | Set member customer link |
| DELETE | [`/api/v1/orgs/{org_slug}/members/{member_id}/customer-link`](#op-delete-api-v1-orgs-org-slug-members-member-id-customer-link) | Make the member console-only; the customer account itself is untouched |

### The storefront customer account this member is on, if any {#op-get-api-v1-orgs-org-slug-members-member-id-customer-link}

`GET /api/v1/orgs/{org_slug}/members/{member_id}/customer-link`

The storefront customer account this member is on, if any.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `member_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Set member customer link {#op-put-api-v1-orgs-org-slug-members-member-id-customer-link}

`PUT /api/v1/orgs/{org_slug}/members/{member_id}/customer-link`

Attach an existing customer account to the member (``existing`` +
``customer_id``) or make one with their email (``create``).

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `member_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Request body

`application/json` (required)

| Field | Type | Required |
| --- | --- | --- |
| `mode` | string | no |
| `customer_id` | integer or null | no |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Make the member console-only; the customer account itself is untouched {#op-delete-api-v1-orgs-org-slug-members-member-id-customer-link}

`DELETE /api/v1/orgs/{org_slug}/members/{member_id}/customer-link`

Make the member console-only; the customer account itself is untouched.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `member_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |
