These events are emitted by the Inventory API (btrz-api-inventory) when Getnet terminals are created, updated, or deleted.
Events
| Action |
Event name |
Endpoint |
| Creating a Getnet terminal |
getnetTerminals.created |
POST /getnet-terminals |
| Updating a Getnet terminal |
getnetTerminals.updated |
PUT /getnet-terminals/:getnetTerminalId |
| Deleting a Getnet terminal |
getnetTerminals.deleted |
DELETE /getnet-terminals/:getnetTerminalId |
Payload example (created)
{
"attemptId": "50ed4745-7922-4b2a-aee7-50bb767d434e",
"created": 1754317982,
"data": {
"_id": "6890c47499346c06f2965af2",
"accountId": "66cfac670bba74052b9e98ca",
"name": "Terminal 1",
"serialNumber": "SN123456",
"stationId": "637d56739a27aff80e99c242",
"createdBy": "67254d96a63f890539c5b0ea",
"updatedBy": "67254d96a63f890539c5b0ea",
"createdAt": { "offset": 0, "value": "2025-08-04T14:32:20.788Z" },
"updatedAt": { "offset": 0, "value": "2025-08-04T14:32:20.788Z" }
},
"event": "getnetTerminals.created",
"id": "5a104d9d-5cdf-4178-8fdd-480adb6093f7",
"livemode": false
}
Field descriptions — data (getnetTerminals.created / getnetTerminals.updated)
| Field |
Type |
Description |
| _id |
string |
Getnet terminal id (24 hex characters). |
| accountId |
string |
Account (provider) id. |
| name |
string |
Unique name to identify the terminal. |
| serialNumber |
string |
Serial number of the terminal. |
| stationId |
string |
Id of the station the terminal is associated with (24 hex characters). |
| createdBy |
string |
User id that created the resource. |
| updatedBy |
string |
User id that last updated the resource. |
| createdAt |
object |
Creation date (BzDate: value, offset). |
| updatedAt |
object |
Last update date (BzDate: value, offset). |
Payload example (deleted)
{
"attemptId": "4565e261-f9dc-4d54-8252-596d9d28f79b",
"created": 1754318232,
"data": {
"getnetTerminalId": "6890c47499346c06f2965af2"
},
"event": "getnetTerminals.deleted",
"id": "fb8f1a73-10dd-4dcc-90bc-2471ab35c8d8",
"livemode": false
}
Field descriptions — data (getnetTerminals.deleted)
| Field |
Type |
Description |
| getnetTerminalId |
string |
Id of the deleted Getnet terminal (24 hex characters). |