This endpoint is used to determine whether the given reseller has successfully integrated with Rackbeat. To integrate with Rackbeat, the reseller needs to have a valid bearer token.
When bearerToken is given, that token is tested instead of the one stored on the reseller.
| URL | https://api.telecomx.dk/integration/rackbeat/validate/reseller | |
|---|---|---|
| Method | GET | |
| Access level | RESELLER for their own customer. RESELLER_ADMIN or ADMIN for any reseller. |
|
| Query | reseller | [optional] Id of the reseller whose stored token is tested. Only used for RESELLER_ADMIN and ADMIN, defaults to the user's own customer |
| bearerToken | [optional] Token to test instead of the stored one, max. 512 characters |
|
https://api.telecomx.dk/integration/rackbeat/validate/reseller https://api.telecomx.dk/integration/rackbeat/validate/reseller?reseller=650000000000000000000001
| Json object | ||
|---|---|---|
| Property | Type | Description |
| success | Boolean | True if the Rackbeat integration is valid. |
Note that since this data is fetched from a third-party, the data returned can not be guaranteed.
{ "success": true }
| Error code | Message | Description |
|---|---|---|
| 422 | <property> | Invalid input for the named property - the request body, query or URL parameter failed validation |
| 403 | rackbeat | The integration is not valid. |
| 404 | reseller | Reseller not found |
| 404 | integrations.rackbeat.bearerToken | Bearer token not found |
| 500 | internal_error | <Unspecified> |