Skip to main content

Event attributes

AppDirect may pass several attributes as part of the request (JSON or XML) when it sends an event notification request to a vendor. The table contains all the possible attributes.

Supported request attributes

Request FieldFormatRequiredDescription
typeString EnumYesThe type of event triggered in the AppDirect marketplace. Can be SUBSCRIPTION_ORDER, SUBSCRIPTION_CHANGE, SUBSCRIPTION_CANCEL, SUBSCRIPTION_NOTICE, USER_ASSIGNMENT, or USER_UNASSIGNMENT.
marketplaceObjectYesInformation about the partner marketplace.
marketplace.partnerStringYesThe name of the marketplace. It defaults to APPDIRECT.
marketplace.baseUrlStringYesThe root URL for the partner marketplace.
applicationUuidStringNoThe unique identifier for the application.
flagString EnumNoFlag indicating how the event is used, may be STATELESS or DEVELOPMENT.
returnUrlStringNoAn optional redirect URL. This attribute is only populated when interactive endpoints are used.
creatorObjectNoThe identity of the admin creating the event. Note that this will be the original purchaser of the application for SUBSCRIPTION_ORDER, but may be other users for the other event types.
creator.emailStringYesEmail address for the creator.
creator.firstNameStringNoFirst name of the creator.
creator.languageStringNoDefault language for the creator.
creator.lastNameObjectNoLast name of the creator.
creator.localeStringNoDefault locale for the creator.
creator.openIdStringNoThe openId for the creator.
creator.uuidStringNoUnique user identifier for the creator.
creator.addressObjectNoThe creator's address
address.cityStringYes, if address specifiedCreator address city
address.countryStringYes, if address specifiedCreator address country
address.stateStringNoCreator address state
address.street1StringYes, if address specifiedCreator street address line 1
address.street2StringNoCreator street address line 2
address.zipStringYes, if address specifiedCreator address zip code
creator.attributesArrayNoOptional attributes about the creator.
payload
payload.userObjectYes, for USER_ASSIGNMENT, USER_UNASSIGNMENT, and USER_UDPATED eventsThe affected user; may or may not be the same as the creator.
user.emailStringYesEmail address for the user.
user.firstNameStringNoFirst name of the user.
user.languageStringNoDefault language for the user.
user.lastNameObjectNoLast name of the user.
user.localeStringNoDefault locale for the user.
user.openIdStringNoThe openId for the user.
user.uuidStringNoUnique user identifier for the user.
user.attributesArrayNoOptional attributes about the user.
payload.user.addressObjectNoThe user's address
address.cityStringYes, if address specifiedUser address city
address.countryStringYes, if address specifiedUser address country
address.stateStringNoUser address state
address.street1StringYes, if address specifiedUser street address line 1
address.street2StringNoUser street address line 2
address.zipStringYes, if address specifiedUser address zip code
payload.accountObjectYes, if account has been created.The account associated with the event, except for SUBSCRIPTION_ORDER (when account is created).
accountIdentifierStringYes, if account has been created.The unique account identifier.
statusStringYes, if account has been created.The current account status. Can be INITIALIZED, FAILED, FREE_TRIAL, FREE_TRIAL_EXPIRED, ACTIVE, SUSPENDED, or CANCELLED. The account will be in the INITIALIZED state until the Vendor provides a result to AppDirect indicating whether the account was successfully created or not. When success is true, for instance, the account will be put into an ACTIVE or FREE_TRIAL state as appropriate. When success is false, the account will be put into a FAILED state.
payload.companyObjectYes, for SUBSCRIPTION_ORDERInformation about the company associated with the event.
company.uuidStringYesThe unique identifier for the company.
company.externalIdStringNoThe external identifier for the company.
company.nameStringYesThe name of the company.
company.emailStringNoThe email associated with the company.
company.phoneNumberStringYesThe phone number associated with the company.
company.websiteStringYesThe company's website.
company.countryStringNoThe company's country.
ParentAccountIdentifierStringYes, for addon-related eventsThe unique account identifier account associated with the addon. You may see this field in other events but it may not have a value.
payload.orderObjectYes, for SUBSCRIPTION_ORDER and SUBSCRIPTION_CHANGEPart of payload, SUBSCRIPTION_ORDER and SUBSCRIPTION_CHANGE
order.editionCodeStringYesThe code for the edition associated with the subscription event.
order.AddonOfferingCodeStringNoThe code for the addon offering associated with the subscription event, if there is an addon.
order.pricingDurationStringYesThe pricing duration for the edition associated with the subscription event.
order.discountCodeStringNoThe optional vendor discount code created on the marketplace.
subscriptionIdStringNoA unique identifier for a subscription in the marketplace. It is an optional attribute for USER_ASSIGNMENT and USER_UNASSIGNMENT.
payload.AddonInstanceObjectYes, for addon-related eventsInformation about the addon.
AddonInstance.idStringYes, for addon-related eventsThe identifier for the addon instance.
payload.AddonBindingObjectYes, for addon-related eventsInformation about the addon binding.
AddonBinding.idStringYes, for addon-related eventsThe identifier for the addon binding.
payload.noticeObjectYes, for SUBSCRIPTION_NOTICE only.Information about the notice.
notice.typeString EnumYesType of notice; can be REACTIVATED, DEACTIVATED, or CLOSED
notice.messageStringNoA message containing additional information about the notice.
payload.configurationArrayYes, for SUBSCRIPTION_ORDER and SUBSCRIPTION_CHANGEThe configuration from the subscription's purchase order.

This table summarizes the attributes expected in the JSON or XML response.

Response attributes

Response ParameterDescription
accountIdentifierUnique account identifier for the customer on the vendor platform. Only required in the response to a Subscription Order Event.
userIdentifierAn optional unique user identifier for the user on the vendor platform.
errorCodeA mandatory error code as described in Event error codes when success is false.
messageAn optional message string to use in conjunction with the errorCode.
successA required boolean value - true when success, false when error.

Was this page helpful?