Registers
Register object
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.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
The number of resources to return in a single response.
Unique identifier.
^[a-zA-Z0-9-]+$Unique identifier.
^[a-zA-Z0-9-]+$Successful response with registers data in JSON:API format.
Bad request.
Unauthorized.
Too many requests.
Internal Server Error.
Service is unavailable.
GET /pos/v1/registers HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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"
}
}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.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
Universally unique ID UUID4.
5efa8b3c-b930-4b31-918d-95ab0e212e64include query parameter to allow the client to customize which related resource should be returned.
Successful response with registers data in JSON:API format.
Bad request.
Unauthorized.
Too many requests.
Internal Server Error.
Service is unavailable.
GET /pos/v1/registers/{id} HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"id": "31b14937-2524-491f-b0a0-dc0a7393ff3f",
"type": "registers",
"attributes": {
"name": "Main Register",
"invoicesCount": 1200,
"index": 3,
"virtual": false,
"createdAt": "2023-10-16T14:30:00Z",
"updatedAt": "2023-10-19T14:30:00Z"
},
"relationships": {
"outlet": {
"data": {
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e64",
"type": "outlets"
}
}
},
"links": {
"self": "https://api.mews-demo.com/pos/v1/registers/31b14937-2524-491f-b0a0-dc0a7393ff3f"
}
}
}Last updated
Was this helpful?