Create user and association upon opt-in
REQUEST
Authorization: Bearer <service jwt>
Content-Type: application/json
{
"partner_account_id": "12345",
"email": "name@example.com"
}
RESPONSE
200 (Created)
{
"user_id": "id",
"account_id": "id"
}
| Param name | Description |
|---|---|
|
partner_account_id required |
partner account id Validations:
|
|
email required |
Validations:
|
Updates a partner account user
| Param name | Description |
|---|---|
|
partner_account_id required |
partner account id Validations:
|
|
user_id required |
ID of the user to be associated Validations:
|
|
account_id required |
ID of the account the user association belongs to Validations:
|
If the parent account is PAID, do nothing and return locked = false. If parent account is FREE, disassociate the user and return locked = true.
REQUEST
Authorization: Bearer <service jwt>
Content-Type: application/json
{
"partner_account_id": "12345",
"user_id": "1"
}
RESPONSE
200 (OK)
{
"locked": true
}
| Param name | Description |
|---|---|
|
partner_account_id required |
partner account id Validations:
|
|
user_id required |
ID of user to be disassociated Validations:
|