Skip to main content

Create an Account Membership

POST 

https://useast.api.elasticpath.com/v2/accounts/:accountID/account-memberships

caution

You can only create up to 1000 account memberships in an account.

Request

Responses

Created

Authorization: http

name: BearerTokentype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://useast.api.elasticpath.com/v2/accounts/:accountID/account-memberships");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"data\": {\n \"account_member_id\": \"908f7849-60da-4e4a-a3b1-51d4cbe3b953\",\n \"type\": \"account_membership\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Auth
Parameters
— pathrequired
Body
{
  "data": {
    "account_member_id": "908f7849-60da-4e4a-a3b1-51d4cbe3b953",
    "type": "account_membership"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.