Account Membership Settings
Account Membership Settings allow Account Members to be associated to, at most, N accounts at a time. You can set this value to any number up to 10,000. The default value is 10,000.
This setting is only applied to new account memberships. If an account member is added to 3 accounts, and the setting is reduced to 1, the account member remains in the 3 accounts and can no longer be added to more.
GET
Account Membership Settings
https://api.moltin.com/v2/settings/account-membership
Parameters
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. Grant type must be client_credentials . |
Request example
curl -X GET https://api.moltin.com/v2/settings/account-membership \
-H "Authorization: Bearer XXXX"
Response example
200 OK
{
"data": {
"type": "account_membership_setting",
"membership_limit": 10
}
}
PUT
Account Membership Settings
https://api.moltin.com/v2/settings/account-membership
Parameters
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. Grant type must be client_credentials . |
Body
Name | Required | Type | Description |
---|---|---|---|
type | Required | string | The type must be account_membership_setting . |
membership_limit | Required | number | The number of accounts an account member can be associated with. You can set this value to any number up to 10,000. |
Request example
curl -X PUT https://api.moltin.com/v2/settings/account-membership \
-H "Authorization: Bearer XXXX"
-d $'{
"data": {
type: "account_membership_setting",
membership_limit: 10
}
}'
Response example
200 OK
{
"data": {
"type": "account_membership_setting",
"membership_limit": 10
}
}