Registers
Get registers
This operation returns a list of registers.
Note: This operation needs Authentication and supports the following JSON:API features:
Relationships -
outletusingincludequery parameter.Sparse fieldsets - supports all fields of
registersand related resources withfieldsquery parameter.
Request
GET [PlatformAddress]/v1/registers
Response
{
"data": [
{
"id": "5a43b8fa-8029-4093-895b-bddd8c74ebe1",
"type": "registers",
"attributes": {
"name": "Register 1",
"invoicesCount": 5,
"index": 1,
"virtual": true,
"createdAt": "2023-10-16T14:30:00Z",
"updatedAt": "2023-10-16T14:30:00Z"
},
"relationships": {
"outlet": {
"data": {
"id": "2bf58012-e340-478e-a123-dbe372ac86fb",
"type": "outlets"
}
}
},
"links": {
"self": "https://api.mews-demo.com/pos/v1/registers/5a43b8fa-8029-4093-895b-bddd8c74ebe1"
}
}
],
"links": {
"prev": "https://api.mews-demo.com/pos/v1/registers?page%5Bbefore%5D=NA&page%5Bsize%5D=1",
"next": "https://api.mews-demo.com/pos/v1/registers?page%5Bafter%5D=NA&page%5Bsize%5D=1"
}
}Below is a list of all possible fields this endpoint can return including relationships fields fetched with include query parameter.
included
array of object outlet
optional, max 1000 items
Details of the objects to which the registers are related.
register
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
relationships
required
A relationships object describing relationships between the resource and other JSON:API resources.
register_attributes
name
string
required, max length 255 characters
Name of the register.
invoicesCount
integer
required
Total number of invoices issued from this register.
index
integer
required
The index of a register within an outlet.
virtual
boolean
required
A boolean indicating whether the register is virtual true or physical false.
createdAt
string
required, max length 25 characters
Register created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Register updated at timestamp in RFC 3339 format.
register_relationships
outlet
object
required
Details of the outlet to which the register is associated.
outlet
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
outlet_attributes
name
string
required, max length 255 characters
The name of the outlet, representing the business or location.
address1
string,null
optional, max length 255 characters
The first line of the outlet's street address, typically including the street number and name.
address2
string,null
optional, max length 255 characters
The second line of outlet's address.
city
string,null
optional, max length 86 characters
The city where the outlet is located.
state
string,null
optional, max length 54 characters
The state or region where the outlet is located.
postalCode
string,null
optional, max length 10 characters
The postal or ZIP code for outlet's location.
index
integer
required
A unique sequential number representing the outlet number within the establishment.
createdAt
string
required, max length 25 characters
Outlet created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Outlet updated at timestamp in RFC 3339 format.
links
prev
string,null
optional, max length 1024 characters
The link to the previous page of results.
next
string,null
optional, max length 1024 characters
The link to the next page of results.
Get register
A register represents a terminal or cash register within an outlet, used to issue invoices. Each register is uniquely identified within its outlet and can either be physical or virtual.
Note: This operation needs Authentication and supports the following JSON:API features:
Relationships -
outletusingincludequery parameter.Sparse fieldsets - supports all fields of
registerand related resources withfieldsquery parameter.
Request
GET [PlatformAddress]/v1/registers/{id}
Response
Below is a list of all possible fields this endpoint can return including relationships fields fetched with include query parameter.
Last updated