authentication
Before calling the business API, It is always necessary to pass authentication first, Get the secrets and tokens assigned by the platform.
| parameter | description | Required |
|---|---|---|
| action | authSource | true |
| usr | The account number assigned by the platform | true |
| source | The user source is not transmitted by default to energy storage:1 | false |
| company-key | The vendor ID assigned by the platform | false |
more information about how to use the interface, seeinvoke Authentication interface.
Possible errors:
| Returns an error code | description | Detailed description |
|---|---|---|
| 0x0007 | ERR_MISSING_PARAMETER | Missing necessary parameters (incoming parameters may be empty) |
| 0x000F | ERR_NOT_FOUND_COMPANY_KEY | No manufacturer key found |
| 0x0010 | ERR_PASSWORD_VERIF_FAIL | Password validation failed (possibly incorrect password encryption) |
| 0x0105 | ERR_NOT_FOUND_USR | The user was not found |