Create RFID
Description#
This endpoint is used to get create a new RFID card
Request format#
Method: POST
Endpoint: https://api.thor.tools/latest/integration/rfid/create
Body format: JSON
| Key | Type | Description |
|---|---|---|
| id | String | The unique RFID card identifier. |
| active | Boolean | The RFID card is set as active in the administration dashboard. |
| alias | String | The RFID card name. |
| budget | Object | The budget of the RFID card. If this field is null or not present th RFID card will be created with infinite budget. |
| budget.amount | Float | The amount of the budget of the RFID card. |
| budget.locked | Float | Part of the amount blocked by running transactions. |
Request schema:
Response format#
The response doesn't contain any field, but if it has an HTTP status code 200 - OK, it means that the request was completed successfully.
Error response#
The following errors are returned if something went wrong while processing the request:
| HTTP status code | Message | Description |
|---|---|---|
| 403 | APIKeyNotFound | An invalid API key was given in the header of the request. |
| 403 | RestAPINotEnabled | REST API integration is set as disabled in the administration dashboard. |
| 403 | InvalidSourceIPAddr | The request comes from an IP address that is different from the one given in the REST API integration configuration. |
| 404 | InvalidIDField | The type or content of the id parameter is invalid. |
| 500 | InternalServerError | Something unexpected went wrong while executing the request. |