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" }
Param name | Description |
---|---|
partner_account_id required |
partner account id Validations:
|
email required |
Validations:
|
If the parent account is PAID, do nothing and return paid = true. If parent account is FREE, disassociate the user and return paid = false.
REQUEST Authorization: Bearer <service jwt> Content-Type: application/json { "partner_account_id": "12345", "user_id": "1" } RESPONSE 200 (OK) { "paid": false }
Param name | Description |
---|---|
partner_account_id required |
partner account id Validations:
|
user_id required |
ID of user to be disassociated Validations:
|