Organization API: Organizations & Members: Customer link
The 3 Organization API operations for customer link.
Part of Organizations & Members.
Operations
Section titled Operations| Method | Path | Summary |
|---|---|---|
| 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 |
Set member customer link |
| 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
Section titled The storefront customer account this member is on, if anyGET /api/v1/orgs/{org_slug}/members/{member_id}/customer-link
The storefront customer account this member is on, if any.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Set member customer link
Section titled Set member customer linkPUT /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
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
mode |
string | no |
customer_id |
integer or null | no |
Responses
Section titled 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
Section titled Make the member console-only; the customer account itself is untouchedDELETE /api/v1/orgs/{org_slug}/members/{member_id}/customer-link
Make the member console-only; the customer account itself is untouched.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |