Checkout machines are the point-of-sale (POS) terminals through which cashiers process invoices in Credith. Each machine has a numeric identifier, a human-readable name, and belongs to a specific store. Users (cashiers) are linked to a machine through theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/RoyGeova07/Credith/llms.txt
Use this file to discover all available pages before exploring further.
associate-user endpoint — a user may only be assigned to one machine at a time. A cashier must have an active checkout machine assigned before any bill can be created; the billing system reads the machine number and name directly onto the invoice at the time of sale.
A cashier user must have a checkout machine assigned to their account before they can process any bill. The machine’s
machineNumber and name are stamped onto the invoice at creation time and cannot be changed retroactively.Endpoints overview
| Method | Path | Description |
|---|---|---|
GET | /api/checkout-machines | List machines (paginated, includes user and store data) |
GET | /api/checkout-machines/:id | Get a single machine by UUID |
POST | /api/checkout-machines | Create a new checkout machine |
PUT | /api/checkout-machines/:id | Update machine fields |
PUT | /api/checkout-machines/activate/:id | Activate a machine |
PUT | /api/checkout-machines/deactivate/:id | Deactivate a machine |
PUT | /api/checkout-machines/:id/associate-user | Associate a user to a machine |
DELETE | /api/checkout-machines/:id | Permanently delete a machine |
List checkout machines
machineNumber ascending. Each record includes the associated users array and the nested store (with its parent company name).
Maximum number of records to return per page.
Number of records to skip before starting the page. Use with
limit for cursor-style pagination.Response 200
Get checkout machine by ID
UUID of the checkout machine to retrieve.
users and store inclusions as the list endpoint.
Responses
| Status | Description |
|---|---|
200 | Machine object returned. |
404 | No machine found with the given ID. |
Create a checkout machine
Request body
Numeric identifier for this POS terminal (e.g.,
1, 2, 3). Must be an integer — decimal values return a 400 error.Human-readable label for the machine, such as
"Caja Principal" or "Terminal 2". Maximum 50 characters. Cannot be blank.UUID of the store this machine belongs to. The store must already exist.
Example request
Responses
| Status | Description |
|---|---|
201 | Machine created successfully. Returns the new machine object. |
400 | Validation failed — missing/invalid machineNumber, blank name, or blank storeId. |
404 | Referenced store not found. |
500 | Unexpected server error. |
Update a checkout machine
UUID of the machine to update.
New machine number. Must be a valid integer if provided; cannot be set to empty.
New display name for the machine. Cannot be set to a blank string.
UUID of the store to reassign this machine to. The target store must exist.
Responses
| Status | Description |
|---|---|
200 | Machine updated successfully. |
400 | Validation failed — invalid machineNumber or blank name. |
404 | Machine or referenced store not found. |
Activate a checkout machine
isActive to true. Returns 400 if the machine is already active.
UUID of the machine to activate.
| Status | Description |
|---|---|
200 | Machine activated successfully. |
400 | Machine is already active. |
404 | Machine not found. |
Deactivate a checkout machine
isActive to false. Returns 400 if the machine is already inactive.
UUID of the machine to deactivate.
| Status | Description |
|---|---|
200 | Machine deactivated successfully. |
400 | Machine is already inactive. |
404 | Machine not found. |
Associate a user to a checkout machine
checkoutMachineId field on the user record. This is the mechanism that grants a cashier the ability to process bills on that terminal.
UUID of the checkout machine to associate the user with.
UUID of the user to link to this machine.
Example request
Responses
| Status | Description |
|---|---|
200 | User associated to the machine successfully. |
400 | userId is missing/blank, or the user already has a different machine assigned. |
404 | Checkout machine or user not found. |
Delete a checkout machine
UUID of the machine to delete.
Responses
| Status | Description |
|---|---|
200 | Machine deleted successfully. |
404 | Machine not found. |
Checkout machine object reference
UUID v4 primary key, auto-generated on creation.
Numeric identifier for the POS terminal. Indexed in the database for fast lookup.
Human-readable label for the machine. Maximum 50 characters.
Whether the machine is currently active. Defaults to
true. Only active machines can be used for billing.UUID of the store this machine is installed in.
Users currently assigned to this machine (populated on GET responses).
Embedded store object included in GET responses.
ISO 8601 timestamp of record creation.
ISO 8601 timestamp of the most recent update.