Function prototype | account_decrypt_shared_key (shared_key, [language = “EN”]) |
---|---|
API Version | 2.6.12 and higher |
SOAP, REST |
Decrypts a shared key and returns information about the channel by which it was sent |
Input parameters: |
|
Output parameters: |
|
account_decrypt_shared_key ( “78csahi7chqw7r”, "ES"); |
The response format is XML when the function has been invoked via the SOAP API, and JSON when it has been invoked via the REST API
ERROR CODE | |
---|---|
SHAREDKEY.INVALID | The shared key indicated is not valid |
ACCOUNT.ACTIVATION_PENDING | Returned when the shared key is an ASSOCIATE INVITATION and the account is pending to be activated (using account_activate() ) |
ACCOUNT.ALREADY_ACTIVE | Returned when the shared key is an ACCOUNT VERIFICATION and the account is already active |
PROGRAM.NOT_FOUND | Returned when the shared key is a PROGRAM INVITATION but the information contained in the shared key does not correspond to an existing PROGRAM |
Type | Description | Example of XML returned | ||
---|---|---|---|---|
1 | ASSOCIATE_INVITATION | Generated when a CASE sends an invitation to an ASSOCIATE using the function case_insert_associate() |
| |
2 | PROGRAM_INVITATION | An invitation to a PROGRAM. This type of invitation allows a new User to create a SUBSCRIPTION to a PROGRAM. Generated by program_get_invitation() |
| |
3 | ACCOUNT_VERIFICATION | Generated when a new USER is registered in Linkcare WS and need to be activated. This shared key can be generated by |
|