Sends a token to activate a user account.
User account activated.
Invalid data sent.
try { $client->users()->activate('token'); } catch (Rebilly\Http\Exception\DataValidationException $e) { print_r($e->getValidationErrors()); }
{- "status": 422,
- "title": "string",
- "detail": "string",
- "instance": "string",
- "invalidFields": [
- {
- "field": "field1",
- "message": "field1 is invalid"
}, - {
- "field": "subObject.field2",
- "message": "field2 is invalid"
}, - {
- "field": "subObject.field2",
- "message": "another error in the field2"
}
]
}