User Activate

Customers and distributor's staff can activate deactivated users (see User Deactivate) through ActivePlatform. The User Activate notification URL allows a vendor service to receive notifications when a user is activated.

The general flow for the User Activate event includes the following steps:

  • A user was activated through ActivePlatform.
  • ActivePlatform calls the configured notification URL, passing the JSON with the user ID.
  • The vendor service validates the request, activates the user, confirms the operation or returns the details about the occurred error.
  • ActivePlatform completes the operation with the user.
POST /user/activate?ap_guid={ap_guid}&reseller_id={reseller_id}

Arguments

Name

Parameter type

Data type

Description

ap_guid

query

string

Auto-generated installation GUID (Globally Unique Identifier). The ap_guid is used to identify the ActivePlatform installation that called the entry point
reseller_idquerystringReseller ID who sold the user of the service plan through the ActivePlatform installation

Event body

Name

Data type

Description

id

string

User ID generated in the vendor service

Response model

If a user was successfully activated, the vendor service returns:

  • 200 HTTP code status.

If a user was not activated, the vendor service returns HTTP code and error message.

  • HTTP code status.
  • JSON with the following information:

Name

Data type

Description

taskobject



error_messagestringThe text message of the occurred error

Event example

POST http://example.com/user/activate
{
    "id": "1234567"
}

Response example

The user was successfully activated:

  • HTTP code status: 200 OK