Skip to main content

Membership webhook payload

The resource:url for a Membership webhook payload uses this basic format:

https://marketplace_url/api/account/v1/companies/company_uuid/users/user_uuid

Here marketplace_url is the main URL for the marketplace (for example, mycompany.byappdirect.com ), company_uuid is the marketplace identifier for the company (for example, b3644az4-c9e9-3dc2-78b4-0470682ba9dc ), and user_uuid is the marketplace identifier for the user (for example, c4755ba5-d0f0-4ed3-89c5-1581793cb0ed ).

When a Membership:Added or Membership:Changed webhook is triggered, the content section of the payload consists mainly of the user definition. However, instead of a "membership" attribute, the payload includes a "roles" attribute that lists the roles that the user has been granted within the company, and an "enabled" attribute that indicates whether the user membership is in effect.

The company is not included directly in the payload, but its identifier does appear in the resource:url attribute (the company_uuid in the example above).

AttributeTypeDescription
idStringThe primary identifier used to identify the user.

Depending on marketplace settings, this id matches either the externalId or the internalId.
openIdStringA URL to an XML text document that contains the specifications for OpenID 2.0.
emailStringThe primary email address for the user.
usernameStringThe username for the user.

If not specified, this defaults to the user's email address.
firstNameStringThe first or given name of the user.
lastNameStringThe last or family name of the user.
languageStringA two-character string representing the language associated with the user and company. Must be a recognized ISO ALPHA-2 standard language code. For example, 'en'.
localeStringThe user locale in the standard ISO 639-1 language code + ISO 3166-1 country code format. For example: 'en_US' or 'fr_CA'.
passwordStringDeprecated (the value is always "null").
profilePicStringThe URL to a graphic to be used as the user's profile picture.

Equivalent to the V2 "picture".
deletedBooleanDeprecated (the value is always "false").
statusEnumWhether this user is ACTIVE or INACTIVE. Users are INACTIVE by default until they accept an invitation to join a company, at which point the user becomes ACTIVE.
contactObjectAn object that stores information about different methods to contact the user.
contact:phoneNumberStringPrimary phone number for the user.
contact:imsStringAn Instant Messaging Service identifier associated with the user.

Deprecated (the value is always "null").
contact:homePhoneStringThe user's home phone number.
contact:mobilePhoneStringThe user's mobile phone number.
contact:addressObjectAn object that stores information about a billing address for a payment method that is associated with the user.
{...}:address:street1StringThe first part of the street address.
{...}:address:street2StringOptional second line for the street address.
{...}:address:cityStringThe city in which the billing address is located.
{...}:address:stateStringThe state or province in which the billing address is located.
{...}:address:zipStringThe ZIP code or postal code.
{...}:address:countryStringThe country in which the user is located.
registrationCodeStringDeprecated (the value is always "null").
creationDateNumberThe time and date when this user was created on the marketplace, represented in UNIX Epoch milliseconds.
lastSuccessfulLoginNumberThe time and date when the user most recently logged in to the marketplace, as represented in UNIX Epoch milliseconds.
titleEnumAn honorific by which the user may be addressed. Must be one of MR, MS, or COMPANY.
activationUrlStringDeprecated (the value is always "null").
internalIdStringThe universally unique identifier (uuid) for the user on the marketplace.

Equivalent to the V2 "uuid".
externalIdStringA unique identifier that an external identity provider (Idp) or other external system uses for this user.

This identifier may be in any format.
idpUuidStringA universally unique identifier that an external identity provider (Idp) or other external system uses for this user.

This identifier must be a uuid.
customAttributesObjectA list of user custom attributes that have been defined on the marketplace.

For users, these are all in the format customAttributes.x, where x is the name of the attribute.
roles ObjectAn array of roles that the user holds within the company, which defines what the user is permitted to do. Possible roles include:
  • CHANNEL_ADMIN
    (Marketplace Manager)
  • CHANNEL_PRODUCT_SUPPORT (Product Support)
  • SALES_SUPPORT
    (Sales Support
  • RESELLER_MANAGER
    (Reseller Manager)
  • RESELLER
    (Reseller)
  • CHANNEL_SUPPORT
    (Customer Support)
  • SYS_ADMIN
    (Company Administrator)
  • BILLING_ADMIN
    (Billing Administrator)
  • DEVELOPER (Developer)
  • USER (User)
For more information about roles, see the online help about how to manage roles.
enabled BooleanWhether the user is able to log in through this company. If false, the user is temporarily suspended, but may log in through membership in a different company.

Was this page helpful?