Creates new session and return access and refresh tokens.
include | Array of strings Items Enum: "worker" "worker.position" "worker.user" "worker.user.roles" "worker.user.roles.permissions" Comma-separated list of related resources that should be included into response |
Create access token request
object |
{- "data": {
- "type": "sessions",
- "attributes": {
- "username": "test@posiflora.com",
- "password": "some_password"
}
}
}
{- "data": {
- "type": "sessions",
- "id": "current",
- "attributes": {
- "expireAt": "2022-06-14T16:32:59+00:00",
- "refreshExpireAt": "2022-07-14T15:32:59+00:00",
- "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NTUyMjA3NzksImV4cCI6MTY1NTIyNDM3OSwiY3VzdG9tZXIiOiIxIiwiaWQiOiI4YzdhNzcxMi1mZDNhLTQxYjMtYjEyZi05N2Y1YWVjMmY2ZjUiLCJsb2dpbiI6InRlc3RAbG9jYWxob3N0LnJ1In0.PlCVojdVzOAHZ6QsPnG7rVf4Xb_vtXqiYTHgWebo_ffWIoZrQzWI13iCtmHGeCw5ic1-BLipjHsAMw1oSmtxvkZQst_QBcZfsw8SPoSZdq5GLtOD1yq9XoFKc-X31sUconFbhj0wrRg8GaFxAdRtQBZBUrqZxS20x6R4jzAocMXMiKSz_C5wcYJGrxmcj_ce9gAWpd-f4xEj09NRu4LwvcTaY5ExHSWtP6uQz-Z-ihTVMubEBHs5YZ8z3ozP35yxotXl6Oof7LfAC-WQ35QbdDlD_7Ms-i0o-lJLHNPDOIZHnzCrHRTvEtlLTPBhUnXTmb4DSxK4OXCIEX0MB1G-Qg",
- "refreshToken": "255941cb-db38-4e81-a0b7-466d1ba721b1",
- "saasCustomerId": 1
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "99eaff96-2f12-4c62-88cf-b945562b4bff"
}
}
}
}, - "included": [
- {
- "type": "permissions",
- "id": "43",
- "attributes": {
- "code": "retail.stores.new",
- "title": "Точки продаж - Создать точку продаж"
}
}, - {
- "type": "roles",
- "id": "1",
- "attributes": {
- "title": "ADMIN"
}, - "relationships": {
- "permissions": {
- "data": [
- {
- "type": "permissions",
- "id": "43"
}
]
}
}
}, - {
- "type": "users",
- "id": "8c7a7712-fd3a-41b3-b12f-97f5aec2f6f5",
- "attributes": {
- "status": "on",
- "login": "test@localhost.ru",
- "pin": "1234"
}, - "relationships": {
- "roles": {
- "data": [
- {
- "type": "roles",
- "id": "1"
}
]
}, - "worker": {
- "data": {
- "type": "workers",
- "id": "99eaff96-2f12-4c62-88cf-b945562b4bff"
}
}
}
}, - {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9",
- "attributes": {
- "title": "Директор"
}
}, - {
- "type": "workers",
- "id": "99eaff96-2f12-4c62-88cf-b945562b4bff",
- "attributes": {
- "firstName": "Октавиан",
- "lastName": "Август",
- "middleName": null,
- "countryCode": 7,
- "phone": "79001234567",
- "email": "octavian.a@posiflora.com",
- "salary": 0,
- "salaryPeriod": "month",
- "validPhone": false,
- "revision": 0
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "8c7a7712-fd3a-41b3-b12f-97f5aec2f6f5"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9"
}
}
}
}
]
}
Refresh session and returns new access token.
include | Array of strings Items Enum: "worker" "worker.position" "worker.user" "worker.user.roles" "worker.user.roles.permissions" Comma-separated list of related resources that should be included into response |
Refresh session request
object |
{- "data": {
- "type": "sessions",
- "attributes": {
- "refreshToken": "some_refresh_token"
}
}
}
{- "data": {
- "type": "sessions",
- "id": "current",
- "attributes": {
- "expireAt": "2022-06-14T16:32:59+00:00",
- "refreshExpireAt": "2022-07-14T15:32:59+00:00",
- "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NTUyMjA3NzksImV4cCI6MTY1NTIyNDM3OSwiY3VzdG9tZXIiOiIxIiwiaWQiOiI4YzdhNzcxMi1mZDNhLTQxYjMtYjEyZi05N2Y1YWVjMmY2ZjUiLCJsb2dpbiI6InRlc3RAbG9jYWxob3N0LnJ1In0.PlCVojdVzOAHZ6QsPnG7rVf4Xb_vtXqiYTHgWebo_ffWIoZrQzWI13iCtmHGeCw5ic1-BLipjHsAMw1oSmtxvkZQst_QBcZfsw8SPoSZdq5GLtOD1yq9XoFKc-X31sUconFbhj0wrRg8GaFxAdRtQBZBUrqZxS20x6R4jzAocMXMiKSz_C5wcYJGrxmcj_ce9gAWpd-f4xEj09NRu4LwvcTaY5ExHSWtP6uQz-Z-ihTVMubEBHs5YZ8z3ozP35yxotXl6Oof7LfAC-WQ35QbdDlD_7Ms-i0o-lJLHNPDOIZHnzCrHRTvEtlLTPBhUnXTmb4DSxK4OXCIEX0MB1G-Qg",
- "refreshToken": "255941cb-db38-4e81-a0b7-466d1ba721b1",
- "saasCustomerId": 1
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "99eaff96-2f12-4c62-88cf-b945562b4bff"
}
}
}
}, - "included": [
- {
- "type": "permissions",
- "id": "43",
- "attributes": {
- "code": "retail.stores.new",
- "title": "Точки продаж - Создать точку продаж"
}
}, - {
- "type": "roles",
- "id": "1",
- "attributes": {
- "title": "ADMIN"
}, - "relationships": {
- "permissions": {
- "data": [
- {
- "type": "permissions",
- "id": "43"
}
]
}
}
}, - {
- "type": "users",
- "id": "8c7a7712-fd3a-41b3-b12f-97f5aec2f6f5",
- "attributes": {
- "status": "on",
- "login": "test@localhost.ru",
- "pin": "1234"
}, - "relationships": {
- "roles": {
- "data": [
- {
- "type": "roles",
- "id": "1"
}
]
}, - "worker": {
- "data": {
- "type": "workers",
- "id": "99eaff96-2f12-4c62-88cf-b945562b4bff"
}
}
}
}, - {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9",
- "attributes": {
- "title": "Директор"
}
}, - {
- "type": "workers",
- "id": "99eaff96-2f12-4c62-88cf-b945562b4bff",
- "attributes": {
- "firstName": "Октавиан",
- "lastName": "Август",
- "middleName": null,
- "countryCode": 7,
- "phone": "79001234567",
- "email": "octavian.a@posiflora.com",
- "salary": 0,
- "salaryPeriod": "month",
- "validPhone": false,
- "revision": 0
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "8c7a7712-fd3a-41b3-b12f-97f5aec2f6f5"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9"
}
}
}
}
]
}
Returns list of customers according to specified params.
from | string <date-time> Filter by customer update date. If specified return customers updated after specified time. |
search | string Search filter. Search customers by name, phone or bonus card number. |
filter[idBonus] | string Filter by bonus group. |
filter[createdBy] | string Filter by worker who registered customer. |
filter[ordersCount][from] | integer <int32> Filter by order number (min value). |
filter[ordersCount][to] | integer <int32> Filter by orders number (max value). |
filter[discount] | string Filter by discount group. |
filter[moreBonus] | integer <int32> Filter by bonuses amount (min value). |
filter[lessBonus] | integer <int32> Filter by bonuses amount (max value). |
filter[moreAvg] | integer <int32> Filter by average check (min value). |
filter[lessAvg] | integer <int32> Filter by average check (max value). |
filter[create][from] | string <date> Filter by customer registration date (start date). |
filter[create][to] | string <date> Filter by customer registration date (end date). |
filter[birthday][from] | string <date> Filter by customer birthday (start date). |
filter[birthday][to] | string <date> Filter by customer birthday (end date). |
filter[buy][from] | string <date> Filter by date of buys of customers (start date). |
filter[buy][to] | string <date> Filter by date of buys of customers (end date). |
filter[notBuy][from] | string <date> Filter buy customers who does not made any orders (start date) |
filter[notBuy][to] | string <date> Filter buy customers who does not made any orders (end date) |
filter[celebrations] | string Filter by customer celebrations (comma separated array of celebration IDS). |
filter[preferences] | string Filter by customer preferences (comma separated array of preference IDS). |
filter[sources] | string Filter by customer sources (comma separated array of customer source IDS). |
filter[isPerson] | boolean Filter by 'individual' customers. |
filter[event][from] | string <date> Filter by customer events (start date). |
filter[event][to] | string <date> Filter by customer events (end date). |
filter[gender] | string Enum: "male" "female" Filter by gender. |
filter[createdAt][from] | string <date> Filter by created at (start date) |
filter[createdAt][to] | string <date> Filter by created at (end date) |
filter[updatedAt][from] | string <date> Filter by updated at (start date) |
filter[updatedAt][to] | string <date> Filter by updated at (start date) |
filter[revision] | integer <int32> Filter by customer revision (min value). |
include | Array of strings Items Enum: "person" "bonusGroup" "bonusGroup.rules" "discountGroups" "discountGroups.rules" "customerSources" "customerPreferences" "customerEvents" "createdBy" Available entity includes. |
{- "data": [
- {
- "id": "string",
- "type": "customers",
- "attributes": {
- "title": "string",
- "birthday": "2019-08-24",
- "email": "user@example.com",
- "instagram": "string",
- "status": "on",
- "isPerson": true,
- "bonusCard": "string",
- "notes": "string",
- "averageCheck": 0,
- "ordersAmount": 0,
- "ordersQty": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "spentPoints": 0,
- "currentPoints": 0,
- "gender": "male",
- "phone": "string",
- "revision": 0,
- "countryCode": 0
}, - "relationships": {
- "person": {
- "data": {
- "id": "string",
- "type": "person"
}
}, - "discountGroups": {
- "data": [
- {
- "id": "string",
- "type": "discount-group"
}
]
}, - "bonusGroup": {
- "data": {
- "id": "string",
- "type": "bonus-groups"
}
}, - "customerSources": {
- "data": [
- {
- "id": "string",
- "type": "customer-sources"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "id": "string",
- "type": "customer-preferences"
}
]
}, - "customerEvents": {
- "data": [
- {
- "id": "string",
- "type": "customer-events"
}
]
}, - "createdBy": {
- "data": {
- "id": "string",
- "type": "workers"
}
}
}, - "links": {
- "self": "string"
}
}
], - "meta": {
- "avgAmountActiveCustomers": 0,
- "qtyActiveCustomers": 0,
- "qtyAllCustomers": 0,
- "total": 0,
- "page": {
- "number": 1,
- "size": 10
}
}
}
Creates new customer.
include | Array of strings Items Enum: "person" "bonusGroup" "bonusGroup.rules" "discountGroups" "discountGroups.rules" "customerSources" "customerPreferences" "customerEvents" "createdBy" Available entity includes. |
Customer data
object Customer resource |
{- "data": {
- "type": "customers",
- "attributes": {
- "birthday": "1996-05-16",
- "bonusCard": "1234567890",
- "countryCode": 7,
- "email": "bob-ross@posiflora.com",
- "gender": "male",
- "instagram": "bob-ross96",
- "isPerson": true,
- "notes": "Bob ross is a famous painter",
- "phone": "9268693654",
- "status": "on",
- "title": "Bob Ross"
}, - "relationships": {
- "bonusGroup": {
- "data": null
}, - "customerPreferences": {
- "data": [
- {
- "id": 1,
- "type": "customer-preferences"
}, - {
- "id": 2,
- "type": "customer-preferences"
}
]
}, - "customerSources": {
- "data": [
- {
- "id": 3,
- "type": "customer-sources"
}
]
}, - "discountGroups": {
- "data": [ ]
}
}
}
}
{- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79",
- "attributes": {
- "title": "Bob Ross",
- "birthday": "1996-05-16",
- "email": "bob-ross@posiflora.com",
- "instagram": "bob-ross96",
- "status": "on",
- "isPerson": true,
- "bonusCard": "1234567890",
- "notes": "Bob ross is a famous painter",
- "averageCheck": 0,
- "ordersAmount": 0,
- "ordersQty": 0,
- "createdAt": "2022-07-15T11:55:19+00:00",
- "updatedAt": "2022-07-15T11:55:19+00:00",
- "spentPoints": 0,
- "currentPoints": 0,
- "gender": "male",
- "phone": "9268693654",
- "revision": 3,
- "countryCode": 7
}, - "relationships": {
- "person": {
- "data": null
}, - "discountGroups": {
- "data": [ ]
}, - "bonusGroup": {
- "data": {
- "type": "bonus-groups",
- "id": "1"
}
}, - "customerSources": {
- "data": [
- {
- "type": "customer-sources",
- "id": "3"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "type": "customer-preferences",
- "id": "1"
}, - {
- "type": "customer-preferences",
- "id": "2"
}
]
}, - "customerEvents": {
- "data": [ ]
}
}, - "links": {
- "self": "/customers/8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}
}
Update several customers data
Bulk update customer data
Array of objects |
{- "data": [
- {
- "type": "customers",
- "id": "0b655f42-70f5-483d-8519-29547c294604",
- "attributes": {
- "createdAt": "2022-07-15T14:04:13+03:00",
- "birthday": "1996-05-16"
}, - "relationships": {
- "bonusGroup": {
- "data": {
- "id": "4",
- "type": "bonus-groups"
}
}
}
}, - {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79",
- "attributes": {
- "createdAt": "2022-07-15T14:55:19+03:00",
- "birthday": "1996-05-16"
}, - "relationships": {
- "bonusGroup": {
- "data": {
- "id": "4",
- "type": "bonus-groups"
}
}
}
}, - {
- "type": "customers",
- "id": "92463640-79be-406f-ae00-d108fa3ae43f",
- "attributes": {
- "createdAt": "2022-07-06T16:50:52+03:00",
- "birthday": "1968-02-10"
}, - "relationships": {
- "bonusGroup": {
- "data": {
- "id": "4",
- "type": "bonus-groups"
}
}
}
}
]
}
{- "data": [
- {
- "type": "customers",
- "id": "0b655f42-70f5-483d-8519-29547c294604",
- "attributes": {
- "title": "Jason Becker",
- "birthday": "1996-05-16",
- "email": "jason-becker@gmail.com",
- "instagram": "jason_becker",
- "status": "on",
- "isPerson": true,
- "bonusCard": "52684596",
- "notes": "Jason Becker is a famous musician. He likes white roses.",
- "averageCheck": 0,
- "ordersAmount": 0,
- "ordersQty": 0,
- "createdAt": "2022-07-15T11:04:13+00:00",
- "updatedAt": "2022-07-15T11:04:13+00:00",
- "spentPoints": 0,
- "currentPoints": 0,
- "gender": "male",
- "phone": "928626",
- "revision": 2,
- "countryCode": 7
}, - "relationships": {
- "person": {
- "data": null
}, - "discountGroups": {
- "data": [ ]
}, - "bonusGroup": {
- "data": {
- "type": "bonus-groups",
- "id": "4"
}
}, - "customerSources": {
- "data": [
- {
- "type": "customer-sources",
- "id": "3"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "type": "customer-preferences",
- "id": "1"
}
]
}, - "customerEvents": {
- "data": [ ]
}
}, - "links": {
- "self": "/customers/0b655f42-70f5-483d-8519-29547c294604"
}
}, - {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79",
- "attributes": {
- "title": "Bob Ross",
- "birthday": "1996-05-16",
- "email": "bob-ross@posiflora.com",
- "instagram": "bob-ross96",
- "status": "on",
- "isPerson": true,
- "bonusCard": "1234567890",
- "notes": "Bob ross is a famous painter",
- "averageCheck": 0,
- "ordersAmount": 0,
- "ordersQty": 0,
- "createdAt": "2022-07-15T11:55:19+00:00",
- "updatedAt": "2022-07-15T12:28:01+00:00",
- "spentPoints": 0,
- "currentPoints": 0,
- "gender": "male",
- "phone": "9268693645",
- "revision": 4,
- "countryCode": 7
}, - "relationships": {
- "person": {
- "data": null
}, - "discountGroups": {
- "data": [ ]
}, - "bonusGroup": {
- "data": {
- "type": "bonus-groups",
- "id": "4"
}
}, - "customerSources": {
- "data": [
- {
- "type": "customer-sources",
- "id": "3"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "type": "customer-preferences",
- "id": "1"
}, - {
- "type": "customer-preferences",
- "id": "2"
}
]
}, - "customerEvents": {
- "data": [ ]
}
}, - "links": {
- "self": "/customers/8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}, - {
- "type": "customers",
- "id": "92463640-79be-406f-ae00-d108fa3ae43f",
- "attributes": {
- "title": "OOO FLOWERS",
- "birthday": "1968-02-10",
- "email": "flowers-company@gmail.com",
- "instagram": null,
- "status": "on",
- "isPerson": true,
- "bonusCard": null,
- "notes": "",
- "averageCheck": 0,
- "ordersAmount": 0,
- "ordersQty": 0,
- "createdAt": "2022-07-06T13:50:52+00:00",
- "updatedAt": "2022-07-06T13:50:52+00:00",
- "spentPoints": 0,
- "currentPoints": 0,
- "gender": "male",
- "phone": "9286264563",
- "revision": 1,
- "countryCode": 7
}, - "relationships": {
- "person": {
- "data": null
}, - "discountGroups": {
- "data": [ ]
}, - "bonusGroup": {
- "data": {
- "type": "bonus-groups",
- "id": "4"
}
}, - "customerSources": {
- "data": [
- {
- "type": "customer-sources",
- "id": "1"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "type": "customer-preferences",
- "id": "2"
}, - {
- "type": "customer-preferences",
- "id": "3"
}, - {
- "type": "customer-preferences",
- "id": "4"
}
]
}, - "customerEvents": {
- "data": [ ]
}
}, - "links": {
- "self": "/customers/92463640-79be-406f-ae00-d108fa3ae43f"
}
}
]
}
Returns information about customer with specified ID.
id required | string Customer ID |
include | Array of strings Items Enum: "person" "bonusGroup" "bonusGroup.rules" "discountGroups" "discountGroups.rules" "customerSources" "customerPreferences" "customerEvents" "createdBy" Available entity includes. |
{- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79",
- "attributes": {
- "title": "Bob Ross",
- "birthday": "1996-05-16",
- "email": "bob-ross@posiflora.com",
- "instagram": "bob-ross96",
- "status": "on",
- "isPerson": true,
- "bonusCard": "1234567890",
- "notes": "Bob ross is a famous painter",
- "averageCheck": 0,
- "ordersAmount": 0,
- "ordersQty": 0,
- "createdAt": "2022-07-15T11:55:19+00:00",
- "updatedAt": "2022-07-15T11:55:19+00:00",
- "spentPoints": 0,
- "currentPoints": 0,
- "gender": "male",
- "phone": "9268693654",
- "revision": 3,
- "countryCode": 7
}, - "relationships": {
- "person": {
- "data": null
}, - "discountGroups": {
- "data": [ ]
}, - "bonusGroup": {
- "data": {
- "type": "bonus-groups",
- "id": "1"
}
}, - "customerSources": {
- "data": [
- {
- "type": "customer-sources",
- "id": "3"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "type": "customer-preferences",
- "id": "1"
}, - {
- "type": "customer-preferences",
- "id": "2"
}
]
}, - "customerEvents": {
- "data": [ ]
}
}, - "links": {
- "self": "/customers/8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}, - "meta": {
- "last_order": null
}
}
Updates customer with specified ID.
id required | string Customer ID |
include | Array of strings Items Enum: "person" "bonusGroup" "bonusGroup.rules" "discountGroups" "discountGroups.rules" "customerSources" "customerPreferences" "customerEvents" "createdBy" Available entity includes. |
Update customer data
object Customer resource |
{- "data": {
- "type": "customers",
- "attributes": {
- "phone": "9268693645",
- "createdAt": "2022-07-15T14:55:19+03:00",
- "birthday": "1996-05-16"
}, - "relationships": {
- "customerSources": {
- "data": [
- {
- "id": "3",
- "type": "customer-sources"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "id": "1",
- "type": "customer-preferences"
}, - {
- "id": "2",
- "type": "customer-preferences"
}
]
}
}
}
}
{- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79",
- "attributes": {
- "title": "Bob Ross",
- "birthday": "1996-05-16",
- "email": "bob-ross@posiflora.com",
- "instagram": "bob-ross96",
- "status": "on",
- "isPerson": true,
- "bonusCard": "1234567890",
- "notes": "Bob ross is a famous painter",
- "averageCheck": 0,
- "ordersAmount": 0,
- "ordersQty": 0,
- "createdAt": "2022-07-15T11:55:19+00:00",
- "updatedAt": "2022-07-15T11:55:19+00:00",
- "spentPoints": 0,
- "currentPoints": 0,
- "gender": "male",
- "phone": "9268693654",
- "revision": 3,
- "countryCode": 7
}, - "relationships": {
- "person": {
- "data": null
}, - "discountGroups": {
- "data": [ ]
}, - "bonusGroup": {
- "data": {
- "type": "bonus-groups",
- "id": "1"
}
}, - "customerSources": {
- "data": [
- {
- "type": "customer-sources",
- "id": "3"
}
]
}, - "customerPreferences": {
- "data": [
- {
- "type": "customer-preferences",
- "id": "1"
}, - {
- "type": "customer-preferences",
- "id": "2"
}
]
}, - "customerEvents": {
- "data": [ ]
}
}, - "links": {
- "self": "/customers/8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}, - "meta": {
- "last_order": null
}
}
Returns history for customer bonuses.
id required | string Customer ID |
{- "meta": {
- "total": 2,
- "pageNumber": 1,
- "pageSize": 10
}, - "data": [
- {
- "type": "customer-bonus-history-lines",
- "id": "1",
- "attributes": {
- "amount": 1500,
- "admin": true,
- "createdAt": "2022-07-18T07:03:00+00:00"
}, - "relationships": {
- "order": {
- "data": null
}
}, - "links": {
- "self": "/customer-bonus-history-lines/1"
}
}, - {
- "type": "customer-bonus-history-lines",
- "id": "2",
- "attributes": {
- "amount": -120,
- "admin": true,
- "createdAt": "2022-07-18T07:03:08+00:00"
}, - "relationships": {
- "order": {
- "data": null
}
}, - "links": {
- "self": "/customer-bonus-history-lines/2"
}
}
]
}
Discount groups data
Array of objects |
{- "data": [
- {
- "type": "customer-discount-groups",
- "attributes": {
- "discountGroup": 2
}, - "relationships": {
- "customer": {
- "data": {
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79",
- "type": "customers"
}
}
}
}, - {
- "type": "customer-discount-groups",
- "attributes": {
- "discountGroup": 2
}, - "relationships": {
- "customer": {
- "data": {
- "id": "92463640-79be-406f-ae00-d108fa3ae43f",
- "type": "customers"
}
}
}
}
]
}
{- "data": [
- {
- "type": "customer-discount-groups",
- "id": "3",
- "attributes": {
- "discountGroup": 2
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}
}, - "links": {
- "self": "/customer-discount-groups/3"
}
}, - {
- "type": "customer-discount-groups",
- "id": "4",
- "attributes": {
- "discountGroup": 2
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "92463640-79be-406f-ae00-d108fa3ae43f"
}
}
}, - "links": {
- "self": "/customer-discount-groups/4"
}
}
]
}
Phone numbers data
object |
{- "data": {
- "attributes": {
- "phoneNumbers": [
- "77779208653",
- "77779208653",
- "77472291318",
- "77472291318",
- "3752557278996",
- "375293623231"
]
}, - "type": "customer-phone-numbers"
}
}
{- "data": {
- "type": "customer-phone-numbers",
- "id": "current",
- "attributes": {
- "phoneNumbers": [
- "3752557278996",
- "375293623231"
]
}, - "links": {
- "self": "/customer-phone-numbers/current"
}
}
}
Imports customer from a custom csv file.
Import data
file | string <binary> file |
format | string Default: "csv" Enum: "csv" "xls" "xlsx" "ods" File format |
delimiter | string Default: "," Columns delimiter |
ignoreFirst | integer Default: 1 Enum: 0 1 |
{ "file": "(binary)", "format": "csv", "delimiter": ",", "ignoreFirst": 1 }
{- "data": {
- "type": "customer-import",
- "id": "bd05f40f-708b-4726-be9b-86a95564a476",
- "attributes": {
- "total": 0,
- "status": "created",
- "createdAt": "2022-07-15T12:53:54+00:00"
}, - "relationships": [
- {
- "type": "customer-import-row",
- "id": "874432df-8e74-4ab0-a9e5-3aa2213cfda6",
- "attributes": {
- "fields": [
- "Herman Li",
- "9012345678",
- "herman-li@gmail.com",
- "bonus_card124518",
- "Famous musician"
]
}
}
]
}
}
{- "data": [
- {
- "type": "customer-import",
- "id": "ab19b056-696e-4b35-8733-60e0052481bc",
- "attributes": {
- "total": 0,
- "status": "created",
- "createdAt": "2022-07-15T14:09:26+00:00"
}
}, - {
- "type": "customer-import",
- "id": "f408069c-2595-4ac0-ae69-b37b6c6972a6",
- "attributes": {
- "total": 0,
- "status": "created",
- "createdAt": "2022-07-15T13:48:34+00:00"
}
}
]
}
Get import info.
id required | string Import ID |
{- "data": {
- "type": "customer-import",
- "id": "022760b6-a39b-4e51-8ca3-f5a6238d5775",
- "attributes": {
- "total": 0,
- "status": "created",
- "createdAt": "2022-07-15T14:22:59+00:00"
}
}
}
Map fields from file to customers fields.
Validation import data
object |
{- "data": {
- "type": "mapping-customers",
- "attributes": {
- "title": [
- 0
], - "phone": 1,
- "email": 2,
- "bonusCard": 3,
- "notes": [
- 4
]
}
}
}
{- "data": {
- "type": "customer-import",
- "id": "72a0969c-f355-482f-a438-5117b301a83d",
- "attributes": {
- "total": 0,
- "status": "waiting",
- "createdAt": "2022-07-15T13:52:42+00:00",
- "queue": true
}
}
}
Get customers stats during specific period.
id required | string Customer ID |
filter[startDate] | string <date> Filter by date (start date) |
filter[endDate] | string <date> Filter by date (end date) |
filter[format] | string Enum: "year" "month" "week" "day" Group by period |
{- "meta": {
- "total": 0,
- "format": "week"
}, - "data": [
- {
- "type": "customer-stats",
- "id": "1",
- "attributes": {
- "date": "2022-07-01",
- "amount": 0
}, - "links": {
- "self": "/customer-stats/1"
}
}, - {
- "type": "customer-stats",
- "id": "2",
- "attributes": {
- "date": "2022-07-04",
- "amount": 0
}, - "links": {
- "self": "/customer-stats/2"
}
}, - {
- "type": "customer-stats",
- "id": "3",
- "attributes": {
- "date": "2022-07-11",
- "amount": 0
}, - "links": {
- "self": "/customer-stats/3"
}
}, - {
- "type": "customer-stats",
- "id": "4",
- "attributes": {
- "date": "2022-07-18",
- "amount": 0
}, - "links": {
- "self": "/customer-stats/4"
}
}, - {
- "type": "customer-stats",
- "id": "5",
- "attributes": {
- "date": "2022-07-25",
- "amount": 0
}, - "links": {
- "self": "/customer-stats/5"
}
}
]
}
Get stats during specific period for all customers.
filter[rangeFrom] | string <date> Filter by date (start date) |
filter[rangeTo] | string <date> Filter by date (end date) |
filter[range] | string Enum: "year" "month" "week" "day" Group by period |
{- "meta": {
- "repeatedSalesRevenuePercentage": 0,
- "repeatedSalesRevenue": 0,
- "ordersWithCustomersPercentage": 0,
- "calculatedAt": "2022-07-18 10:25:01"
}, - "data": [
- {
- "type": "stats-customers",
- "id": "0",
- "attributes": {
- "date": "2022-07-18",
- "newCustomersCount": 0,
- "bonusesSpent": 120,
- "bonusesAccumulated": 1500
}, - "links": {
- "self": "/stats-customers/0"
}
}
]
}
Returns list of customers preferences.
filter[onlyActive] | boolean Filter by active custom preferences (show deleted or not). |
filter[revision] | integer <int32> Filter by customer preferences revision (min value). |
{- "meta": {
- "page": {
- "number": 1,
- "size": null
}, - "total": 6,
- "revision": 9
}, - "data": [
- {
- "type": "customer-preferences",
- "id": "1",
- "attributes": {
- "title": "Loves roses",
- "deleted": true,
- "revision": 2
}, - "links": {
- "self": "/customer-preferences/1"
}
}, - {
- "type": "customer-preferences",
- "id": "2",
- "attributes": {
- "title": "Only fresh flowers",
- "deleted": false,
- "revision": 3
}, - "links": {
- "self": "/customer-preferences/2"
}
}, - {
- "type": "customer-preferences",
- "id": "3",
- "attributes": {
- "title": "Only pays via cash",
- "deleted": true,
- "revision": 8
}, - "links": {
- "self": "/customer-preferences/3"
}
}, - {
- "type": "customer-preferences",
- "id": "4",
- "attributes": {
- "title": "Usually make orders after 7pm",
- "deleted": true,
- "revision": 9
}, - "links": {
- "self": "/customer-preferences/4"
}
}, - {
- "type": "customer-preferences",
- "id": "5",
- "attributes": {
- "title": "Usually order with delivery",
- "deleted": false,
- "revision": 6
}, - "links": {
- "self": "/customer-preferences/5"
}
}, - {
- "type": "customer-preferences",
- "id": "6",
- "attributes": {
- "title": "Hates purple flowers",
- "deleted": false,
- "revision": 7
}, - "links": {
- "self": "/customer-preferences/6"
}
}
]
}
Creates new customer preference.
Create customer preference
object |
{- "data": {
- "type": "customer-preferences",
- "attributes": {
- "title": "Loves white peonies"
}
}
}
{- "data": {
- "type": "customer-preferences",
- "id": "7",
- "attributes": {
- "title": "Loves white peonies",
- "deleted": false,
- "revision": 10
}, - "links": {
- "self": "/customer-preferences/7"
}
}
}
Delete customer preferences
Delete customer preference data
Array of objects |
{- "data": [
- {
- "type": "customer-preferences",
- "id": 7
}
]
}
{ }
Updates customer preference.
id required | string Customer preference ID |
Update customer preference
object |
{- "data": {
- "type": "customer-preferences",
- "attributes": {
- "title": "Loves white peonies"
}, - "id": 7
}
}
{- "data": {
- "type": "customer-preferences",
- "id": "7",
- "attributes": {
- "title": "Loves white peonies",
- "deleted": false,
- "revision": 10
}, - "links": {
- "self": "/customer-preferences/7"
}
}
}
Returns list of customers sources.
filter[disabled] | boolean Filter by active custom preferences (show deleted or not). |
filter[revision] | integer <int32> Filter by customer preferences revision (min value). |
{- "meta": {
- "page": {
- "number": 1,
- "size": null
}, - "total": 5,
- "revision": 10
}, - "data": [
- {
- "type": "customer-sources",
- "id": "1",
- "attributes": {
- "title": "Social network",
- "deleted": false,
- "revision": 1
}, - "links": {
- "self": "/customer-sources/1"
}
}, - {
- "type": "customer-sources",
- "id": "2",
- "attributes": {
- "title": "Street advertisements",
- "deleted": true,
- "revision": 10
}, - "links": {
- "self": "/customer-sources/2"
}
}, - {
- "type": "customer-sources",
- "id": "3",
- "attributes": {
- "title": "Online advertisements",
- "deleted": false,
- "revision": 3
}, - "links": {
- "self": "/customer-sources/3"
}
}, - {
- "type": "customer-sources",
- "id": "4",
- "attributes": {
- "title": "Cold calls advertisements",
- "deleted": true,
- "revision": 9
}, - "links": {
- "self": "/customer-sources/4"
}
}, - {
- "type": "customer-sources",
- "id": "5",
- "attributes": {
- "title": "Friends",
- "deleted": true,
- "revision": 8
}, - "links": {
- "self": "/customer-sources/5"
}
}
]
}
Creates new customer source.
Create customer source
object |
{- "data": {
- "type": "customer-sources",
- "attributes": {
- "title": "Instagram"
}
}
}
{- "data": {
- "type": "customer-sources",
- "id": "6",
- "attributes": {
- "title": "Instagram",
- "deleted": false,
- "revision": 11
}, - "links": {
- "self": "/customer-sources/6"
}
}
}
Delete customer sources
Update customer source
Array of objects |
{- "data": [
- {
- "type": "customer-sources",
- "id": 7
}
]
}
{ }
Updates customer source.
id required | string Customer source ID |
Customer data
object |
{- "data": {
- "type": "customer-sources",
- "attributes": {
- "title": "Instagram"
}, - "id": 6
}
}
{- "data": {
- "type": "customer-sources",
- "id": "6",
- "attributes": {
- "title": "Instagram",
- "deleted": false,
- "revision": 11
}, - "links": {
- "self": "/customer-sources/6"
}
}
}
Returns list of customers celebrations.
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 1,
- "minYear": "2022"
}, - "data": [
- {
- "type": "customer-celebrations",
- "id": "1",
- "attributes": {
- "title": "Shop birthday"
}, - "relationships": {
- "dates": {
- "data": [
- {
- "type": "celebration-dates",
- "id": "1"
}
]
}
}, - "links": {
- "self": "/customer-celebrations/1"
}
}
], - "included": [
- {
- "type": "celebration-dates",
- "id": "1",
- "attributes": {
- "dateFrom": "2022-07-19",
- "dateUntil": "2022-07-19"
}
}
]
}
Creates new customer celebration.
Customer celebration data
object |
{- "data": {
- "type": "customer-celebrations",
- "attributes": {
- "title": "Shop birthday"
}, - "relationships": {
- "dates": {
- "data": [
- {
- "type": "celebration-dates",
- "attributes": {
- "dateFrom": "2022-07-19",
- "dateUntil": "2022-07-19"
}
}
]
}
}
}
}
{- "data": {
- "type": "customer-celebrations",
- "id": "1",
- "attributes": {
- "title": "Shop birthday"
}, - "relationships": {
- "dates": {
- "data": [
- {
- "type": "celebration-dates",
- "id": "1"
}
]
}
}, - "links": {
- "self": "/customer-celebrations/1"
}
}
}
Deletes customer celebration.
Delete customer celebration data
Array of objects |
{- "data": [
- {
- "id": "1",
- "type": "customer-celebrations"
}
]
}
{ }
Get info about customer celebration.
id required | string Celebration ID |
{- "data": {
- "type": "customer-celebrations",
- "id": "2",
- "attributes": {
- "title": "Shop birthday"
}, - "relationships": {
- "dates": {
- "data": [
- {
- "type": "celebration-dates",
- "id": "2"
}
]
}
}, - "links": {
- "self": "/customer-celebrations/2"
}
}
}
Updates customer celebration.
id required | string Celebration ID |
Update customer celebration data
object |
{- "data": {
- "type": "customer-celebrations",
- "id": "1",
- "attributes": {
- "title": "Shop birthday"
}, - "relationships": {
- "dates": {
- "data": [
- {
- "type": "celebration-dates",
- "id": "1",
- "attributes": {
- "dateFrom": "2022-07-22",
- "dateUntil": "2022-07-22"
}
}
]
}
}
}
}
{- "data": {
- "type": "customer-celebrations",
- "id": "1",
- "attributes": {
- "title": "Shop birthday"
}, - "relationships": {
- "dates": {
- "data": [
- {
- "type": "celebration-dates",
- "id": "1"
}
]
}
}, - "links": {
- "self": "/customer-celebrations/1"
}
}
}
{- "meta": {
- "page": {
- "number": 1,
- "size": null
}
}, - "data": [
- {
- "type": "customer-celebration-dates",
- "id": "2-8096a6f8-395a-45b4-b87e-9bfbc0f30e79",
- "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}, - "dateCelebration": {
- "data": {
- "type": "celebration-dates",
- "id": "2"
}
}, - "celebration": {
- "data": {
- "type": "customer-celebrations",
- "id": "2"
}
}
}, - "links": {
- "self": "/customer-celebration-dates/2-8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}
]
}
filter[customer] | string <date> Filter by customer |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 1
}, - "data": [
- {
- "type": "customer-events",
- "id": "f8857c29-5896-4c5b-a65e-84e57f7af310",
- "attributes": {
- "title": "Daughter birthday",
- "dateFrom": "2022-10-12",
- "dateUntil": "2022-10-12"
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "ca08f296-efad-4883-b407-591e7139d62a"
}
}
}, - "links": {
- "self": "/customer-events/f8857c29-5896-4c5b-a65e-84e57f7af310"
}
}
]
}
Create customer event data
object |
{- "data": {
- "type": "customer-events",
- "id": "7b7b5892-2853-4be9-abe4-caa3d6f7b916",
- "attributes": {
- "title": "Mother birthday",
- "dateFrom": "2022-07-28",
- "dateUntil": "2022-07-28"
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}
}
}
}
{- "data": {
- "type": "customer-events",
- "id": "7b7b5892-2853-4be9-abe4-caa3d6f7b916",
- "attributes": {
- "title": "Mother birthday",
- "dateFrom": "2022-07-28",
- "dateUntil": "2022-07-28"
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}
}, - "links": {
- "self": "/customer-events/7b7b5892-2853-4be9-abe4-caa3d6f7b916"
}
}
}
Delete customer event data
object |
{- "data": [
- {
- "type": "customer-events",
- "id": "7b7b5892-2853-4be9-abe4-caa3d6f7b916"
}
]
}
{ }
id required | string Customer event ID |
{- "data": {
- "type": "customer-events",
- "id": "f8857c29-5896-4c5b-a65e-84e57f7af310",
- "attributes": {
- "title": "Daughter birthday",
- "dateFrom": "2022-10-12",
- "dateUntil": "2022-10-12"
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "ca08f296-efad-4883-b407-591e7139d62a"
}
}
}, - "links": {
- "self": "/customer-events/f8857c29-5896-4c5b-a65e-84e57f7af310"
}
}
}
id required | string Customer event ID |
Update customer event data
object |
{- "data": {
- "type": "customer-events",
- "id": "7b7b5892-2853-4be9-abe4-caa3d6f7b916",
- "attributes": {
- "title": "Sister birthday",
- "dateFrom": "2022-07-28",
- "dateUntil": "2022-07-28"
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}
}
}
}
{- "data": {
- "type": "customer-events",
- "id": "7b7b5892-2853-4be9-abe4-caa3d6f7b916",
- "attributes": {
- "title": "Sister birthday",
- "dateFrom": "2022-07-28",
- "dateUntil": "2022-07-28"
}, - "relationships": {
- "customer": {
- "data": {
- "type": "customers",
- "id": "8096a6f8-395a-45b4-b87e-9bfbc0f30e79"
}
}
}, - "links": {
- "self": "/customer-events/7b7b5892-2853-4be9-abe4-caa3d6f7b916"
}
}
}
Get list of inventory items
filter[dataSource] | string Enum: "catalog" "both" Data source for retrieving data. Null - api, both - api and catalog |
filter[id] | Array of strings Filter by inventory items |
filter[globalId] | string Filter by uuid |
search | string Filter by search term |
filter[categories] | Array of strings Filter by categories |
recursive | boolean Recursive output |
type | string Enum: "item" "service" Filter by type |
from | string <date-time> Filter by date time from |
filter[store] | string Filter by store ID |
filter[storePrice] | string Filter by store price ID |
filter[sold][from] | string <date-time> Filter by sold items from date |
filter[sold][to] | string <date-time> Filter by sold items to date |
filter[available] | boolean Return only items which have entries in InventItemLocationSumTrans and quantity > 0. Cannot be used simultaneously with nonzeroBalances filter |
filter[balances][nonzero] | boolean Filter by nonzero balances on warehouse. False - everything, true - everything except zero balances. Cannot be used simultaneously with available filter |
filter[hasTransactions] | boolean Return only items which have transactions |
filter[hasActivePrices] | boolean Return only items which have active price at any store or by specified store |
public | boolean Return only items which have "public" flag is enabled |
filter[onWindow] | boolean Default: false Return only retail items |
filter[exclude][journal] | string Exclude inventory items from specified journal |
filter[vendors] | Array of integers <int32> [ items <int32 > ] Filter by vendors |
{- "meta": {
- "page": {
- "number": 1,
- "size": null
}, - "total": 1
}, - "data": [
- {
- "type": "inventory-items",
- "id": "a905a878-8791-4ab4-aa88-298ec527f3d3",
- "attributes": {
- "title": "White rose",
- "description": "White rose is a... white rose?",
- "itemType": "item",
- "globalId": null,
- "updatedAt": "2022-07-18T13:08:14+00:00",
- "added": null,
- "public": false,
- "fractional": false,
- "priceMin": 0,
- "priceMax": 0
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "category": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "measure": {
- "data": {
- "type": "measures",
- "id": "28194ad5-b655-478f-9e2d-6587cb013be0"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
}
}
}
]
}
Creates new inventory item.
Inventory Item data
object |
{- "data": {
- "type": "inventory-items",
- "id": "a905a878-8791-4ab4-aa88-298ec527f3d3",
- "attributes": {
- "title": "White rose",
- "description": "White rose is a... white rose?",
- "itemType": "item",
- "fractional": false
}, - "relationships": {
- "group": {
- "data": {
- "id": "1",
- "type": "inventory-groups"
}
}, - "category": {
- "data": {
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d",
- "type": "categories"
}
}, - "images": {
- "data": [
- {
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f",
- "type": "images"
}
]
}, - "logo": {
- "data": {
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f",
- "type": "images"
}
}, - "vendorCodes": {
- "data": [
- {
- "type": "inventory-vendor-codes",
- "attributes": {
- "vendorCode": "white-rose-art1"
}
}, - {
- "type": "inventory-vendor-codes",
- "attributes": {
- "vendorCode": "beautiful-white-rose-art1"
}
}
]
}, - "barcodes": {
- "data": [
- {
- "type": "inventory-barcodes",
- "attributes": {
- "barcodeType": "upc",
- "barcode": "725272730706",
- "spawn": false
}
}, - {
- "type": "inventory-barcodes",
- "attributes": {
- "barcodeType": "ean13",
- "barcode": "9780201379624",
- "spawn": false
}
}, - {
- "type": "inventory-barcodes",
- "attributes": {
- "barcodeType": "ean8",
- "barcode": "90311017",
- "spawn": false
}
}
]
}
}
}
}
{- "data": {
- "type": "inventory-items",
- "id": "a905a878-8791-4ab4-aa88-298ec527f3d3",
- "attributes": {
- "title": "White rose",
- "description": "White rose is a... white rose?",
- "itemType": "item",
- "globalId": null,
- "updatedAt": "2022-07-18T13:08:14+00:00",
- "added": null,
- "public": false,
- "fractional": false,
- "priceMin": 0,
- "priceMax": 0
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "category": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "measure": {
- "data": {
- "type": "measures",
- "id": "28194ad5-b655-478f-9e2d-6587cb013be0"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
}
}
}
}
Bulk Update Inventory Item data
object |
{- "data": [
- {
- "type": "inventory-items",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "attributes": {
- "public": true
}
}, - {
- "type": "inventory-items",
- "id": "a905a878-8791-4ab4-aa88-298ec527f3d3",
- "attributes": {
- "public": true
}
}
]
}
{- "data": [
- {
- "type": "inventory-items",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "attributes": {
- "title": "Black rose",
- "description": "Black rose is a beautiful flower",
- "itemType": "item",
- "globalId": null,
- "updatedAt": "2022-07-18T14:23:00+00:00",
- "added": null,
- "public": true,
- "fractional": true,
- "priceMin": 0,
- "priceMax": 0
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "category": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "measure": {
- "data": {
- "type": "measures",
- "id": "28194ad5-b655-478f-9e2d-6587cb013be0"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
}
}
}, - {
- "type": "inventory-items",
- "id": "a905a878-8791-4ab4-aa88-298ec527f3d3",
- "attributes": {
- "title": "White rose",
- "description": "White rose is a... white rose?",
- "itemType": "item",
- "globalId": null,
- "updatedAt": "2022-07-18T14:23:00+00:00",
- "added": null,
- "public": true,
- "fractional": false,
- "priceMin": 0,
- "priceMax": 0
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "category": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "measure": {
- "data": {
- "type": "measures",
- "id": "28194ad5-b655-478f-9e2d-6587cb013be0"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
}
}
}
]
}
Delete inventory items
Array of objects |
{- "data": [
- {
- "id": "a905a878-8791-4ab4-aa88-298ec527f3d3",
- "type": "inventory-items"
}
]
}
{ }
id required | string Inventory item ID |
Update Inventory Item data
object |
{- "data": {
- "type": "inventory-items",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "attributes": {
- "title": "Black rose",
- "description": "Black rose is a beautiful flower",
- "fractional": true
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "category": {
- "data": {
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d",
- "type": "categories"
}
}, - "images": {
- "data": [
- {
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f",
- "type": "images"
}
]
}, - "logo": {
- "data": {
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f",
- "type": "images"
}
}, - "vendorCodes": {
- "data": [
- {
- "type": "inventory-vendor-codes",
- "attributes": {
- "vendorCode": "black-rose-art"
}
}, - {
- "type": "inventory-vendor-codes",
- "attributes": {
- "vendorCode": "beautiful-black-rose-art"
}
}
]
}, - "barcodes": {
- "data": [
- {
- "type": "inventory-barcodes",
- "id": "178af4e3-6380-4496-97fa-7e6f8c0de84b",
- "attributes": {
- "barcode": "400001347485"
}
}, - {
- "type": "inventory-barcodes",
- "id": "bd00b593-8ab3-48cc-8e59-7ca0c10b6d30",
- "attributes": {
- "barcode": "01466171"
}
}, - {
- "type": "inventory-barcodes",
- "id": "fc913ecf-7686-4d34-8745-c01798e8075b",
- "attributes": {
- "barcode": "2000000749693"
}
}
]
}
}
}
}
{- "data": {
- "type": "inventory-items",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "attributes": {
- "title": "Black rose",
- "description": "Black rose is a beautiful flower",
- "itemType": "item",
- "globalId": null,
- "updatedAt": "2022-07-18T13:43:44+00:00",
- "added": null,
- "public": true,
- "fractional": true,
- "priceMin": 0,
- "priceMax": 0
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "category": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "measure": {
- "data": {
- "type": "measures",
- "id": "28194ad5-b655-478f-9e2d-6587cb013be0"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
}, - "images": {
- "data": [
- {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
]
}, - "barcodes": {
- "data": [
- {
- "type": "inventory-barcodes",
- "id": "178af4e3-6380-4496-97fa-7e6f8c0de84b"
}, - {
- "type": "inventory-barcodes",
- "id": "bd00b593-8ab3-48cc-8e59-7ca0c10b6d30"
}, - {
- "type": "inventory-barcodes",
- "id": "fc913ecf-7686-4d34-8745-c01798e8075b"
}
]
}
}
}
}
id required | string Inventory item ID |
{- "data": {
- "type": "inventory-items",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "attributes": {
- "title": "Black rose",
- "description": "Black rose is a beautiful flower",
- "itemType": "item",
- "globalId": null,
- "updatedAt": "2022-07-18T14:23:00+00:00",
- "added": null,
- "public": true,
- "fractional": true,
- "priceMin": 0,
- "priceMax": 0
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "category": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "measure": {
- "data": {
- "type": "measures",
- "id": "28194ad5-b655-478f-9e2d-6587cb013be0"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
}
}
}
}
id required | string Inventory item ID |
Update Inventory Item data
object |
{- "data": {
- "type": "prices",
- "attributes": {
- "price": 100,
- "status": "off"
}, - "relationships": {
- "store": {
- "data": {
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642",
- "type": "stores"
}
}
}
}
}
{- "data": {
- "type": "prices",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767-41ac812c-c2fd-41e1-809a-fc709e756642",
- "attributes": {
- "price": 100,
- "cost": 0,
- "quantity": 0,
- "status": "off",
- "setAt": "2022-07-19T07:58:35+00:00"
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642"
}
}
}
}
}
id required | string Inventory item ID |
Update Inventory Item data
object |
{- "data": {
- "type": "prices",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767-41ac812c-c2fd-41e1-809a-fc709e756642",
- "attributes": {
- "status": "on",
- "setAt": "2022-07-19T10:58:26+03:00"
}
}
}
{- "data": {
- "type": "prices",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767-41ac812c-c2fd-41e1-809a-fc709e756642",
- "attributes": {
- "price": 150,
- "cost": 0,
- "quantity": 0,
- "status": "on",
- "setAt": "2022-07-19T08:13:29+00:00"
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642"
}
}
}
}
}
id required | string Inventory item ID |
Update Inventory Item data
Array of objects |
{- "data": [
- {
- "type": "prices",
- "attributes": {
- "price": 1500,
- "status": "on"
}, - "relationships": {
- "store": {
- "data": {
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf",
- "type": "stores"
}
}
}
}, - {
- "type": "prices",
- "attributes": {
- "price": 1500,
- "status": "on"
}, - "relationships": {
- "store": {
- "data": {
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642",
- "type": "stores"
}
}
}
}
]
}
{- "data": [
- {
- "type": "prices",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767-af32a044-3ae6-40bb-9ffc-d9f609ee39bf",
- "attributes": {
- "price": 1500,
- "cost": 0,
- "quantity": 0,
- "status": "on",
- "setAt": "2022-07-19T08:20:11+00:00"
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
}
}
}, - {
- "type": "prices",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767-41ac812c-c2fd-41e1-809a-fc709e756642",
- "attributes": {
- "price": 1500,
- "cost": 0,
- "quantity": 0,
- "status": "on",
- "setAt": "2022-07-19T08:20:11+00:00"
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642"
}
}
}
}
]
}
Get analytics data of price dynamics
id required | string Inventory item ID |
price required | string Price inventory item ID |
filter[sold][startDate] | string <date-time> Start date |
filter[sold][endDate] | string <date-time> End date |
filter[format] | string Enum: "year" "month" "week" "day" Group by date range |
{- "data": [
- {
- "type": "item-price-ratio",
- "id": "1",
- "attributes": {
- "date": "2022-06-13T08:33:55+00:00",
- "price": 0,
- "sellingPrice": 0,
- "cost": 0
}
}, - {
- "type": "item-price-ratio",
- "id": "2",
- "attributes": {
- "date": "2022-06-20T08:33:55+00:00",
- "price": 0,
- "sellingPrice": 0,
- "cost": 0
}
}, - {
- "type": "item-price-ratio",
- "id": "3",
- "attributes": {
- "date": "2022-06-27T08:33:55+00:00",
- "price": 0,
- "sellingPrice": 0,
- "cost": 0
}
}, - {
- "type": "item-price-ratio",
- "id": "4",
- "attributes": {
- "date": "2022-07-04T08:33:55+00:00",
- "price": 0,
- "sellingPrice": 0,
- "cost": 0
}
}, - {
- "type": "item-price-ratio",
- "id": "5",
- "attributes": {
- "date": "2022-07-11T08:33:55+00:00",
- "price": 0,
- "sellingPrice": 0,
- "cost": 0
}
}, - {
- "type": "item-price-ratio",
- "id": "6",
- "attributes": {
- "date": "2022-07-18T08:33:55+00:00",
- "price": 1500,
- "sellingPrice": 0,
- "cost": 0
}
}
], - "meta": {
- "price": 1500,
- "cost": 0,
- "format": "week"
}
}
Get stats for price by store
id required | string Inventory item ID |
price required | string Price inventory item ID |
{- "data": {
- "type": "stats-by-store",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf",
- "attributes": {
- "qty": 0,
- "optQty": 0,
- "cost": null,
- "amount": null,
- "prevCost": null,
- "price": 1500,
- "prevPrice": 1500
}
}
}
id required | string Item ID |
storeId required | string Store ID |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 1,
- "qtySalesOrder": 0,
- "qtyReturnOrder": 0,
- "qtyInventoryCounting": 0,
- "qtyTransferShipment": 0,
- "qtyTransferReceive": 0,
- "qtyInventoryTransaction": 1121,
- "qtyLossProfit": 0
}, - "data": [
- {
- "type": "item-warehouse-movements",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767-1",
- "attributes": {
- "date": "2022-07-28T12:30:00+00:00",
- "qty": 1121,
- "remainderQty": 1121,
- "amount": 16815,
- "transType": "inventoryTransaction",
- "documentId": "3",
- "documentNumber": "ec-000000003",
- "documentStatus": "active",
- "inventoryId": "2"
}
}
]
}
Net costs request data
object |
{- "data": {
- "type": "search-net-costs",
- "attributes": {
- "qty": [
- 500
], - "date": "2022-07-28",
- "items": [
- "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767"
]
}, - "relationships": {
- "store": {
- "data": {
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642",
- "type": "stores"
}
}
}
}
}
{- "data": [
- {
- "type": "net-costs",
- "id": "cba0f2da-52ea-4b2a-b51c-15f34d48cc2d",
- "attributes": {
- "cost": 15,
- "leftQty": 1121,
- "date": "2022-07-28"
}, - "relationships": {
- "item": {
- "data": {
- "type": "inventory-items",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642"
}
}
}, - "links": {
- "self": "/net-costs/cba0f2da-52ea-4b2a-b51c-15f34d48cc2d"
}
}
]
}
Last costs request data
object |
{- "data": {
- "type": "search-last-costs",
- "attributes": {
- "dateTime": "2021-07-28T00:00:00Z",
- "items": [
- "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767"
]
}, - "relationships": {
- "store": {
- "data": {
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642",
- "type": "stores"
}
}
}
}
}
{- "data": [
- {
- "type": "last-costs",
- "id": "7ce4ab5b-d7ab-4354-bcdd-6283093ade91",
- "attributes": {
- "purchasePrice": null,
- "costPrice": null
}, - "relationships": {
- "item": {
- "data": {
- "type": "inventory-items",
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "41ac812c-c2fd-41e1-809a-fc709e756642"
}
}
}, - "links": {
- "self": "/last-costs/7ce4ab5b-d7ab-4354-bcdd-6283093ade91"
}
}
]
}
{- "meta": {
- "total": 9,
- "revision": 2
}, - "data": [
- {
- "type": "categories",
- "id": "26f4c2bb-7195-4995-8c42-8f89fbf342e5",
- "attributes": {
- "title": "Biennials",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "eeeeee",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "9"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/26f4c2bb-7195-4995-8c42-8f89fbf342e5"
}
}, - {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d",
- "attributes": {
- "title": "Red roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "388e3c",
- "countPublicItems": 1,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - {
- "type": "categories",
- "id": "df99a11e-f059-4709-af50-9571dc3513e8",
- "attributes": {
- "title": "White roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "0097a7",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "2"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/df99a11e-f059-4709-af50-9571dc3513e8"
}
}, - {
- "type": "categories",
- "id": "8ddfd501-4705-4895-8e17-2a64578bcbbc",
- "attributes": {
- "title": "Black roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "c2185b",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/8ddfd501-4705-4895-8e17-2a64578bcbbc"
}
}, - {
- "type": "categories",
- "id": "dd5f2d14-d7b0-4232-bba2-05341888b2d8",
- "attributes": {
- "title": "Blue roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "00796b",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "4"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/dd5f2d14-d7b0-4232-bba2-05341888b2d8"
}
}, - {
- "type": "categories",
- "id": "cb8ba0c3-fd9c-4793-8a30-b749831f4d39",
- "attributes": {
- "title": "Green roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "d32f2f",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "5"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/cb8ba0c3-fd9c-4793-8a30-b749831f4d39"
}
}, - {
- "type": "categories",
- "id": "3fd7f790-ea11-46aa-a61a-25acaf408cad",
- "attributes": {
- "title": "Yellow roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "303f9f",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "6"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/3fd7f790-ea11-46aa-a61a-25acaf408cad"
}
}, - {
- "type": "categories",
- "id": "1181118f-ae79-429f-b1ff-a9223e6473df",
- "attributes": {
- "title": "Big roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "1976d2",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "7"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/1181118f-ae79-429f-b1ff-a9223e6473df"
}
}, - {
- "type": "categories",
- "id": "5dd7fa84-7d4b-4342-baad-7b46aeb4e874",
- "attributes": {
- "title": "Small roses",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "7b1fa2",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 0
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "8"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/5dd7fa84-7d4b-4342-baad-7b46aeb4e874"
}
}
]
}
Creates new category
Create category request
object |
{- "data": {
- "type": "categories",
- "id": "d48ef9f1-b6cb-4ecd-aacc-a5d3e48ff385",
- "attributes": {
- "title": "Roses",
- "status": "on",
- "color": "880e4f"
}, - "relationships": {
- "group": {
- "data": null
}, - "parent": {
- "data": {
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d",
- "type": "categories"
}
}, - "image": {
- "data": null
}
}
}
}
{- "data": {
- "type": "categories",
- "id": "d48ef9f1-b6cb-4ecd-aacc-a5d3e48ff385",
- "attributes": {
- "title": "Roses",
- "status": "on",
- "path": [
- "Цветы"
], - "pathIds": [
- "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
], - "color": "880e4f",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 5
}, - "relationships": {
- "parent": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "1"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/d48ef9f1-b6cb-4ecd-aacc-a5d3e48ff385"
}
}, - "included": [
- {
- "type": "inventory-groups",
- "id": "1",
- "attributes": {
- "title": "Цветы",
- "groupType": "flowers"
}
}
]
}
id required | string Category ID |
Update category request
object |
{- "data": {
- "type": "categories",
- "id": "edb8e16e-df23-4fd7-bd5e-9dc43afe59ec",
- "attributes": {
- "status": "off",
- "color": "eeeeee"
}
}
}
{- "data": {
- "type": "categories",
- "id": "edb8e16e-df23-4fd7-bd5e-9dc43afe59ec",
- "attributes": {
- "title": "child",
- "status": "off",
- "path": [
- "Рецепты"
], - "pathIds": [
- "26f4c2bb-7195-4995-8c42-8f89fbf342e5"
], - "color": "eeeeee",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 4
}, - "relationships": {
- "parent": {
- "data": {
- "type": "categories",
- "id": "26f4c2bb-7195-4995-8c42-8f89fbf342e5"
}
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "9"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/edb8e16e-df23-4fd7-bd5e-9dc43afe59ec"
}
}, - "included": [
- {
- "type": "inventory-groups",
- "id": "9",
- "attributes": {
- "title": "Рецепты",
- "groupType": "specification"
}
}
]
}
category required | string Category ID |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 1,
- "revision": 76
}, - "data": [
- {
- "type": "catalog-items",
- "id": "item-a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "attributes": {
- "itemId": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "itemType": "item",
- "title": "Black rose",
- "globalId": null,
- "activePoints": 2,
- "minPrice": 1500,
- "maxPrice": 1500,
- "updatedAt": "2022-07-25T06:53:13+00:00",
- "public": true,
- "fractional": true,
- "revision": 76
}, - "relationships": {
- "category": {
- "data": {
- "type": "categories",
- "id": "8d48b9d1-a4f1-42e2-a2dd-763e6e29d82d"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "a36b9040-3207-458a-b267-0ae20d19da0f"
}
}
}
}
]
}
{- "meta": {
- "total": 5
}, - "data": [
- {
- "type": "categories",
- "id": "1",
- "attributes": {
- "title": "Flowers",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "388e3c",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 1
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/1"
}
}, - {
- "type": "categories",
- "id": "12",
- "attributes": {
- "title": "Dianthus",
- "status": "on",
- "path": [
- "Flowers"
], - "pathIds": [
- "1"
], - "color": "e53935",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 1
}, - "relationships": {
- "parent": {
- "data": {
- "type": "categories",
- "id": "1"
}
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/12"
}
}, - {
- "type": "categories",
- "id": "15",
- "attributes": {
- "title": "Roses",
- "status": "on",
- "path": [
- "Flowers"
], - "pathIds": [
- "1"
], - "color": "d50000",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 1
}, - "relationships": {
- "parent": {
- "data": {
- "type": "categories",
- "id": "1"
}
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/15"
}
}, - {
- "type": "categories",
- "id": "18",
- "attributes": {
- "title": "Bush Roses",
- "status": "on",
- "path": [
- "Flowers",
- "Roses"
], - "pathIds": [
- "1",
- "15"
], - "color": "ef9a9a",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 1
}, - "relationships": {
- "parent": {
- "data": {
- "type": "categories",
- "id": "15"
}
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/18"
}
}, - {
- "type": "categories",
- "id": "21",
- "attributes": {
- "title": "Tulip",
- "status": "on",
- "path": [
- "Flowers"
], - "pathIds": [
- "1"
], - "color": "eeeeee",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 1
}, - "relationships": {
- "parent": {
- "data": {
- "type": "categories",
- "id": "1"
}
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/21"
}
}
]
}
category required | string Category ID |
{- "data": {
- "type": "categories",
- "id": "1",
- "attributes": {
- "title": "Flowers",
- "status": "on",
- "path": [ ],
- "pathIds": [ ],
- "color": "388e3c",
- "countPublicItems": 0,
- "deleted": false,
- "revision": 1
}, - "relationships": {
- "parent": {
- "data": null
}, - "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "image": {
- "data": null
}
}, - "links": {
- "self": "/categories/1"
}
}
}
{- "data": {
- "type": "inventory-items",
- "id": "00ca6e29-3359-48f3-b3d9-ef4829350757",
- "attributes": {
- "title": "Oxypetalum Tanioka Pure Blue",
- "description": null,
- "itemType": "item",
- "updatedAt": "2022-07-28T11:22:41+00:00",
- "added": null
}, - "relationships": {
- "group": {
- "data": {
- "type": "inventory-groups",
- "id": "3"
}
}, - "category": {
- "data": {
- "type": "categories",
- "id": "1"
}
}, - "measure": {
- "data": {
- "type": "measures",
- "id": "9"
}
}, - "logo": {
- "data": {
- "type": "images",
- "id": "1d48e0e6-efd6-4b2a-8780-e34a12a84033"
}
}
}, - "links": {
- "self": "/inventory-items/00ca6e29-3359-48f3-b3d9-ef4829350757"
}
}
}
category required | string Category ID |
{- "data": {
- "type": "export-items",
- "id": "5b3b63b9-1fa1-4e43-b76d-ecc6da5d2a93",
- "attributes": {
- "status": "created",
- "updatedAt": "2022-07-28T11:33:03+00:00"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "9a66bfa5-6512-427f-9157-9a7241f89725"
}
}
}
}
}
Returns list of orders according to specified params.
filter[customer] | string Filter by customer id. |
filter[modifiedAt][from] | string <date-time> Filter by modifiedAt (start date) |
filter[modifiedAt][to] | string <date-time> Filter by modifiedAt (end date) |
filter[dueTime][from] | string <date-time> Filter by due time (start date) |
filter[dueTime][to] | string <date-time> Filter by due time (end date) |
filter[createdAt][from] | string <date-time> Filter by createdAt (start date) |
filter[createdAt][to] | string <date-time> Filter by createdAt (end date) |
filter[updatedAt][from] | string <date-time> Filter by updatedAt (start date) |
filter[updatedAt][to] | string <date-time> Filter by updatedAt (end date) |
filter[statuses] | Array of strings Items Enum: "new" "done" "canceled" "returned" "courier" "assembled" "notAccepted" Filter by order status |
filter[stores] | Array of strings Filter by store ids |
filter[sources] | Array of strings Filter by source ids |
filter[sources] | Array of strings Items Enum: "discount" "markup" Filter by orders with discounts and\or markup |
filter[postedBy] | Array of strings Filter by user who closed the order |
filter[createdBy] | Array of strings Filter by user who created the order |
filter[items] | Array of strings Filter by items |
search | string Search by client name, order number, phone or card number |
filter[delivery] | boolean Filter by delivery |
filter[fiscalized] | boolean Filter by fiscalized |
filter[amount][min] | number <float> Order amount from |
filter[amount][max] | number <float> Order amount from |
filter[bonuses] | boolean Filter orders paid by bonuses |
filter[paymentMethods] | Array of strings Filter by order payments that paid by specified payment methods |
filter[onlyExternal] | boolean Select only external orders |
filter[externalSystem] | string Filter external orders by Synced System ID which belongs to |
filter[excludedSessions] | Array of integers Exclude external orders which created during specified sync sessions |
addMetaStatuses | boolean Include statuses statistic to response meta |
filter[postedAt][from] | string <date-time> Filter by postedAt (start date) |
filter[postedAt][to] | string <date-time> Filter by postedAt (end date) |
filter[paymentPostedAt][from] | string <date-time> Orders with payments which postedAt more than specified date |
filter[paymentPostedAt][to] | string <date-time> Orders with payments which postedAt less than specified date |
filter[docNo] | Array of strings Filter by document numbers |
filter[couriers] | Array of strings Filter by couriers |
filter[withoutCouriers] | boolean Default: false Filter by orders without couriers |
filter[florists] | Array of strings Filter by florists |
filter[withoutFlorists] | boolean Default: false Filter by orders without florists |
filter[shift] | string Filter by specific shift |
filter[fiscalShift] | string Filter by specific fiscal shift |
filter[withReturned] | boolean Default: false Include returned orders |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 382,
- "revision": 137208,
- "statuses": {
- "all": "382",
- "notAccepted": "0",
- "new": "1",
- "assembled": "0",
- "canceled": "19",
- "done": "360",
- "returned": "2",
- "credit": "0",
- "courier": "0"
}, - "orders_amounts": {
- "ordersAmount": "491519.50",
- "budgetsAmount": "20500.00",
- "paymentsAmount": "462799.50",
- "creditsAmount": "0.00",
- "bonusesAmount": "14022.00",
- "discountsAmount": "1466.00",
- "markupsAmount": "2561.00"
}
}, - "data": [
- {
- "type": "orders",
- "id": "00a70674-6dd3-4231-8f34-0540e1ea58e6",
- "attributes": {
- "status": "done",
- "date": "2022-07-15",
- "docNo": "aaad22003858",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-07-15T17:20:06+00:00",
- "updatedAt": "2022-07-15T17:31:02+00:00",
- "updatedStatusAt": "2022-07-15T17:31:02+00:00",
- "modifiedAt": "2022-07-15T17:31:06+00:00",
- "fiscal": false,
- "fiscalized": false,
- "byBonuses": true,
- "posted": true,
- "postedAt": "2022-07-15T17:31:02+00:00",
- "cancelComment": null,
- "totalAmount": 150,
- "paymentsAmount": 150,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 135220,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "d13a2fd4-27e9-44c0-9583-c21c14403ea2"
}
}, - "customer": {
- "data": {
- "type": "customers",
- "id": "a533cffd-9892-4c29-b2a0-35bfac0b4df8"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "230d985d-626f-40b8-bec0-975307309dce"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "230d985d-626f-40b8-bec0-975307309dce"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}, - "payments": {
- "data": [
- {
- "type": "order-payments",
- "id": "2395e6c8-def0-4ac0-9f70-a2341197d4b9"
}, - {
- "type": "order-payments",
- "id": "b229caac-b65b-423d-ac3d-57a714f2f3c6"
}
]
}, - "discounts": {
- "data": [ ]
}, - "courier": {
- "data": null
}, - "florist": {
- "data": {
- "type": "workers",
- "id": "230d985d-626f-40b8-bec0-975307309dce"
}
}
}, - "links": {
- "self": "/orders/00a70674-6dd3-4231-8f34-0540e1ea58e6"
}
}, - {
- "type": "orders",
- "id": "00fe7676-8dda-4ca9-979e-0b87bd44b0e3",
- "attributes": {
- "status": "done",
- "date": "2022-07-16",
- "docNo": "aaab22002725",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-07-16T09:05:48+00:00",
- "updatedAt": "2022-07-16T09:05:49+00:00",
- "updatedStatusAt": "2022-07-16T09:05:49+00:00",
- "modifiedAt": "2022-07-16T09:06:11+00:00",
- "fiscal": false,
- "fiscalized": false,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-07-16T09:05:49+00:00",
- "cancelComment": null,
- "totalAmount": 50,
- "paymentsAmount": 50,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 135530,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "f54d270d-6b83-48bb-aa4b-2efcf6dd8cfa"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "e7e6ab33-40a2-4c55-8bda-02c23ea3188f"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "e7e6ab33-40a2-4c55-8bda-02c23ea3188f"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}, - "payments": {
- "data": [
- {
- "type": "order-payments",
- "id": "2bb09656-8f01-4207-a9fe-a9dcb9436dad"
}
]
}, - "discounts": {
- "data": [ ]
}, - "courier": {
- "data": null
}, - "florist": {
- "data": null
}
}, - "links": {
- "self": "/orders/00fe7676-8dda-4ca9-979e-0b87bd44b0e3"
}
}
]
}
Creates new order.
Create order body
object |
{- "data": {
- "attributes": {
- "budget": 0,
- "byBonuses": false,
- "createdAt": "2022-07-19T09:01:55Z",
- "date": "2022-07-19",
- "delivery": false,
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryCity": "",
- "deliveryComments": "",
- "deliveryContact": "",
- "deliveryHouse": "",
- "deliveryPhoneCode": "",
- "deliveryPhoneNumber": "",
- "deliveryStreet": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "description": "",
- "docNo": "aabn22000008",
- "dueTime": null,
- "fiscal": false,
- "status": "new",
- "updatedAt": "2022-07-19T09:01:55Z"
}, - "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "relationships": {
- "courier": {
- "data": null
}, - "createdBy": {
- "data": {
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054",
- "type": "workers"
}
}, - "customer": {
- "data": null
}, - "discounts": {
- "data": [ ]
}, - "florist": {
- "data": null
}, - "images": {
- "data": [ ]
}, - "lines": {
- "data": [
- {
- "attributes": {
- "amount": "800.00",
- "discountPrice": "800.00",
- "manualSetting": false,
- "price": "800.00",
- "qty": "1.00",
- "totalAmount": "800.00",
- "totalAmountWithDiscount": "800.00"
}, - "id": "1b5d8282-4cf1-4d23-9d33-b8ce080a83bb",
- "relationships": {
- "bouquet": {
- "data": null
}, - "item": {
- "data": {
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "type": "inventory-items"
}
}
}, - "type": "order-lines"
}
]
}, - "source": {
- "data": {
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c",
- "type": "order-sources"
}
}, - "store": {
- "data": {
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf",
- "type": "stores"
}
}, - "updatedBy": {
- "data": null
}
}, - "type": "orders"
}
}
{- "data": {
- "type": "orders",
- "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "attributes": {
- "status": "new",
- "date": "2022-07-19",
- "docNo": "aabn22000008",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-07-19T09:01:55+00:00",
- "updatedAt": "2022-07-19T09:01:55+00:00",
- "updatedStatusAt": "2022-07-19T09:01:55+00:00",
- "modifiedAt": "2022-07-21T13:55:37+00:00",
- "fiscal": false,
- "fiscalized": false,
- "byBonuses": false,
- "posted": false,
- "postedAt": null,
- "cancelComment": null,
- "totalAmount": 800,
- "paymentsAmount": 0,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 11,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": null
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}, - "images": {
- "data": [ ]
}, - "history": {
- "data": [
- {
- "type": "order-history-lines",
- "id": "4"
}
]
}, - "payments": {
- "data": [ ]
}, - "discounts": {
- "data": [ ]
}, - "lines": {
- "data": [
- {
- "type": "order-lines",
- "id": "1b5d8282-4cf1-4d23-9d33-b8ce080a83bb"
}
]
}, - "courier": {
- "data": null
}, - "florist": {
- "data": null
}
}, - "links": {
- "self": "/orders/21360847-c158-4b68-9b93-6d68169b8d6c"
}
}
}
{- "data": {
- "type": "orders",
- "id": "11850286-baf3-4e6b-82f1-6f97e56c81e7",
- "attributes": {
- "status": "done",
- "date": "2022-07-17",
- "docNo": "aaab22002767",
- "description": "",
- "budget": 0,
- "dueTime": "2022-07-18T07:00:00+00:00",
- "delivery": true,
- "deliveryComments": "",
- "deliveryCity": "Paris",
- "deliveryStreet": "Baker street, apt. 16",
- "deliveryHouse": "19",
- "deliveryApartment": "28",
- "deliveryBuilding": "3",
- "deliveryTimeFrom": "2022-07-18T07:00:00+00:00",
- "deliveryTimeTo": "2022-07-18T10:00:00+00:00",
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-07-17T17:32:48+00:00",
- "updatedAt": "2022-07-18T09:59:45+00:00",
- "updatedStatusAt": "2022-07-18T09:59:45+00:00",
- "modifiedAt": "2022-07-18T09:59:56+00:00",
- "fiscal": false,
- "fiscalized": false,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-07-18T09:59:45+00:00",
- "cancelComment": null,
- "totalAmount": 2090,
- "paymentsAmount": 2090,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 136465,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "f54d270d-6b83-48bb-aa4b-2efcf6dd8cfa"
}
}, - "customer": {
- "data": {
- "type": "customers",
- "id": "705887d3-1312-415a-89fa-5f8eca944940"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "230d985d-626f-40b8-bec0-975307309dce"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "e7e6ab33-40a2-4c55-8bda-02c23ea3188f"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}, - "images": {
- "data": [ ]
}, - "history": {
- "data": [
- {
- "type": "order-history-lines",
- "id": "458031"
}, - {
- "type": "order-history-lines",
- "id": "458281"
}
]
}, - "payments": {
- "data": [
- {
- "type": "order-payments",
- "id": "f9ad7716-ad08-40e3-b2c7-06feab1c77d9"
}
]
}, - "discounts": {
- "data": [ ]
}, - "lines": {
- "data": [
- {
- "type": "order-lines",
- "id": "12f18153-853c-49fa-b0f5-046d8a81d8a6"
}, - {
- "type": "order-lines",
- "id": "23bdcda7-0f24-42bf-bf6c-d22a11d5e44c"
}, - {
- "type": "order-lines",
- "id": "2f6534ec-cc3f-46fe-b0cb-864e8e94b791"
}, - {
- "type": "order-lines",
- "id": "8d46b12f-445d-4f51-bd17-4371ac6b2d2c"
}, - {
- "type": "order-lines",
- "id": "9b46d23f-b383-4c20-9362-d2831182e159"
}, - {
- "type": "order-lines",
- "id": "bfdd0713-0976-407e-8966-b0c9de9a7a48"
}
]
}
}, - "links": {
- "self": "/orders/11850286-baf3-4e6b-82f1-6f97e56c81e7"
}
}
}
Update order data
id required | string Order ID |
Create order body
object |
{- "data": {
- "attributes": {
- "budget": 0,
- "byBonuses": false,
- "createdAt": "2022-07-19T09:01:55Z",
- "date": "2022-07-19",
- "delivery": false,
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryCity": "",
- "deliveryComments": "",
- "deliveryContact": "",
- "deliveryHouse": "",
- "deliveryPhoneCode": "",
- "deliveryPhoneNumber": "",
- "deliveryStreet": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "description": "",
- "docNo": "aabn22000008",
- "dueTime": null,
- "fiscal": false,
- "status": "new",
- "updatedAt": "2022-07-19T09:01:55Z"
}, - "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "relationships": {
- "courier": {
- "data": null
}, - "createdBy": {
- "data": {
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054",
- "type": "workers"
}
}, - "customer": {
- "data": null
}, - "discounts": {
- "data": [ ]
}, - "florist": {
- "data": null
}, - "images": {
- "data": [ ]
}, - "lines": {
- "data": [
- {
- "attributes": {
- "amount": "800.00",
- "discountPrice": "800.00",
- "manualSetting": false,
- "price": "800.00",
- "qty": "1.00",
- "totalAmount": "800.00",
- "totalAmountWithDiscount": "800.00"
}, - "id": "1b5d8282-4cf1-4d23-9d33-b8ce080a83bb",
- "relationships": {
- "bouquet": {
- "data": null
}, - "item": {
- "data": {
- "id": "a6b7febf-fb5d-4ae1-bad4-ba7954d9e767",
- "type": "inventory-items"
}
}
}, - "type": "order-lines"
}
]
}, - "source": {
- "data": {
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c",
- "type": "order-sources"
}
}, - "store": {
- "data": {
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf",
- "type": "stores"
}
}, - "updatedBy": {
- "data": null
}
}, - "type": "orders"
}
}
{- "data": {
- "type": "orders",
- "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "attributes": {
- "status": "new",
- "date": "2022-07-19",
- "docNo": "aabn22000008",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-07-19T09:01:55+00:00",
- "updatedAt": "2022-07-19T09:01:55+00:00",
- "updatedStatusAt": "2022-07-19T09:01:55+00:00",
- "modifiedAt": "2022-07-21T13:55:37+00:00",
- "fiscal": false,
- "fiscalized": false,
- "byBonuses": false,
- "posted": false,
- "postedAt": null,
- "cancelComment": null,
- "totalAmount": 800,
- "paymentsAmount": 0,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 11,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": null
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}, - "images": {
- "data": [ ]
}, - "history": {
- "data": [
- {
- "type": "order-history-lines",
- "id": "4"
}
]
}, - "payments": {
- "data": [ ]
}, - "discounts": {
- "data": [ ]
}, - "lines": {
- "data": [
- {
- "type": "order-lines",
- "id": "1b5d8282-4cf1-4d23-9d33-b8ce080a83bb"
}
]
}, - "courier": {
- "data": null
}, - "florist": {
- "data": null
}
}, - "links": {
- "self": "/orders/21360847-c158-4b68-9b93-6d68169b8d6c"
}
}
}
id required | string Order ID |
Fiscal order
object |
{- "data": {
- "attributes": {
- "fiscalized": true,
- "fiscalizedAt": "2022-07-19T09:02:00Z"
}, - "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "relationships": {
- "fiscalizedBy": {
- "data": {
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054",
- "type": "workers"
}
}
}, - "type": "orders-fiscal"
}
}
{- "data": {
- "type": "orders-fiscal",
- "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "attributes": {
- "fiscalized": true
}, - "links": {
- "self": "/orders-fiscal/21360847-c158-4b68-9b93-6d68169b8d6c"
}
}
}
id required | string Order ID |
Update order delivery status body
object |
{- "data": {
- "type": "orders-delivery-status",
- "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "attributes": {
- "deliveryStatus": "courier"
}
}
}
{- "data": {
- "type": "orders",
- "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "attributes": {
- "status": "new",
- "date": "2022-07-19",
- "docNo": "aabn22000008",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-07-19T09:01:55+00:00",
- "updatedAt": "2022-07-21T14:41:08+00:00",
- "updatedStatusAt": "2022-07-19T09:01:55+00:00",
- "modifiedAt": "2022-07-21T14:41:08+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": false,
- "postedAt": null,
- "cancelComment": null,
- "totalAmount": 800,
- "paymentsAmount": 0,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": "courier",
- "fiscalizedAt": "2022-07-19T09:02:00+00:00",
- "revision": 14,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": null
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/21360847-c158-4b68-9b93-6d68169b8d6c"
}
}
}
id required | string Order ID |
Return order
object |
{- "data": {
- "attributes": {
- "returnedAt": "2022-07-19T09:04:47Z",
- "withWriteOff": true
}, - "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "relationships": {
- "returnedBy": {
- "data": {
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054",
- "type": "workers"
}
}, - "shift": {
- "data": {
- "id": "de51ecf5-c24c-488f-81f2-0ea148e3fdf8",
- "type": "shifts"
}
}
}, - "type": "orders"
}
}
{- "data": {
- "type": "orders",
- "id": "21360847-c158-4b68-9b93-6d68169b8d6c",
- "attributes": {
- "status": "courier",
- "date": "2022-07-19",
- "docNo": "aabn22000008",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-07-19T09:01:55+00:00",
- "updatedAt": "2022-07-21T14:41:36+00:00",
- "updatedStatusAt": "2022-07-21T14:41:36+00:00",
- "modifiedAt": "2022-07-21T14:41:36+00:00",
- "fiscal": true,
- "fiscalized": false,
- "byBonuses": false,
- "posted": false,
- "postedAt": null,
- "cancelComment": null,
- "totalAmount": 800,
- "paymentsAmount": 0,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": "courier",
- "fiscalizedAt": "2022-07-19T09:02:00+00:00",
- "revision": 15,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": null
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/21360847-c158-4b68-9b93-6d68169b8d6c"
}
}
}
id required | string Order ID |
Create order payment body
object |
{- "data": {
- "attributes": {
- "amount": 800,
- "createdAt": "2022-07-19T09:01:55Z",
- "date": "2022-07-19",
- "description": "Paymnet with cash",
- "fiscalized": false,
- "paymentType": "payment",
- "prepayment": true,
- "terminalTransactionId": ""
}, - "id": "f999ce11-c890-46c6-aa68-1378192aa850",
- "relationships": {
- "createdBy": {
- "data": {
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054",
- "type": "workers"
}
}, - "method": {
- "data": {
- "id": "0e26c3db-acdc-495e-9a1b-6ba2a7cb7564",
- "type": "payment-methods"
}
}, - "shift": {
- "data": {
- "id": "de51ecf5-c24c-488f-81f2-0ea148e3fdf8",
- "type": "shifts"
}
}
}, - "type": "order-payments"
}
}
{- "data": {
- "type": "order-payments",
- "id": "f999ce11-c890-46c6-aa68-1378192aa850",
- "attributes": {
- "paymentType": "payment",
- "date": "2022-07-19",
- "amount": 800,
- "bonusAmount": 0,
- "description": "Payment with cash",
- "createdAt": "2022-07-19T09:01:55+00:00",
- "posted": true,
- "postedAt": "2022-07-19T09:01:55+00:00",
- "terminalTransactionId": "",
- "fiscalized": false,
- "prepayment": true,
- "fiscalizedAt": null
}, - "relationships": {
- "method": {
- "data": {
- "type": "payment-methods",
- "id": "0e26c3db-acdc-495e-9a1b-6ba2a7cb7564"
}
}, - "shift": {
- "data": {
- "type": "shifts",
- "id": "de51ecf5-c24c-488f-81f2-0ea148e3fdf8"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "parent": {
- "data": null
}, - "order": {
- "data": {
- "type": "orders",
- "id": "dd9bbc38-5dad-44d9-9ed6-619871a73df9"
}
}, - "fiscalShift": {
- "data": null
}, - "fiscalizedBy": {
- "data": null
}
}, - "links": {
- "self": "/order-payments/f999ce11-c890-46c6-aa68-1378192aa850"
}
}, - "included": [
- {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054",
- "attributes": {
- "firstName": "Posiflora",
- "lastName": "Support",
- "middleName": null,
- "countryCode": 7,
- "phone": null,
- "email": null,
- "salary": 0,
- "salaryPeriod": "month",
- "validPhone": false,
- "revision": 0
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "002ff781-0a8a-4079-b6d2-807183e1fac5"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9"
}
}
}
}
]
}
id required | string Order ID |
bouquetId required | string Bouquet ID |
Separate bouqet from order request data
object |
{- "data": {
- "type": "orders-bouquets",
- "id": "b8f79fd8-2748-466f-8eb3-d65765b1ec07",
- "relationships": {
- "bouquet": {
- "data": {
- "id": "00f18913-8bc5-45b7-9ff1-b6a2f6e0ec2f",
- "type": "bouquets"
}
}
}
}
}
{- "data": {
- "type": "bouquets",
- "id": "00f18913-8bc5-45b7-9ff1-b6a2f6e0ec2f",
- "attributes": {
- "docNo": null,
- "title": "Blue Bouquet",
- "height": 0,
- "width": 0,
- "description": "",
- "amount": 800,
- "saleAmount": 800,
- "trueSaleAmount": 800,
- "status": "demonstrated",
- "onWindowAt": "2022-07-28T12:02:03+00:00",
- "createdAt": "2021-04-02T07:01:28+00:00",
- "updatedAt": "2022-07-28T12:02:03+00:00",
- "completedAt": "2022-07-19T09:01:55+00:00",
- "public": false,
- "discount": 0,
- "discountType": "absolute",
- "markup": 0,
- "markupType": "absolute",
- "revision": 313
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "8ef5d925-1abc-4177-98e8-92262a960734"
}
}, - "createdBy": {
- "data": {
- "type": "users",
- "id": "d86ea3e3-73bd-43ca-bd4f-4a283cb6914d"
}
}, - "updatedBy": {
- "data": {
- "type": "users",
- "id": "ebc2f1a7-e26b-4d26-996a-f14db82468f5"
}
}, - "logo": {
- "data": null
}, - "specWithVar": {
- "data": null
}
}, - "links": {
- "self": "/bouquets/00f18913-8bc5-45b7-9ff1-b6a2f6e0ec2f"
}
}
}
id required | string Payment ID |
Update order payment body
object |
{- "data": {
- "attributes": {
- "fiscalized": true
}, - "id": "67cf35f8-5ec3-4184-b738-5856f252ab5c",
- "type": "order-payments"
}
}
{- "data": {
- "type": "order-payments",
- "id": "67cf35f8-5ec3-4184-b738-5856f252ab5c",
- "attributes": {
- "paymentType": "payment",
- "date": "2022-07-19",
- "amount": 800,
- "bonusAmount": 0,
- "description": "Payment via credit card",
- "createdAt": "2022-07-19T09:01:55+00:00",
- "posted": true,
- "postedAt": "2022-07-19T09:01:55+00:00",
- "terminalTransactionId": "",
- "fiscalized": true,
- "prepayment": true,
- "fiscalizedAt": null
}, - "relationships": {
- "method": {
- "data": {
- "type": "payment-methods",
- "id": "0e26c3db-acdc-495e-9a1b-6ba2a7cb7564"
}
}, - "shift": {
- "data": {
- "type": "shifts",
- "id": "de51ecf5-c24c-488f-81f2-0ea148e3fdf8"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "parent": {
- "data": null
}, - "order": {
- "data": {
- "type": "orders",
- "id": "1b28e295-859c-4170-8162-8a240768cd78"
}
}, - "fiscalShift": {
- "data": null
}, - "fiscalizedBy": {
- "data": null
}
}, - "links": {
- "self": "/order-payments/67cf35f8-5ec3-4184-b738-5856f252ab5c"
}
}
}
Returns list of payments.
filter[type] | string Enum: "payment" "return" "change" Filter by type. |
filter[paymentMethod] | string Filter by payment method id. |
filter[shift] | string Filter by shift id. |
filter[fiscalShift] | string Filter by fiscal shift id. |
filter[createdBy] | string Filter by person who created payment. |
filter[postedBy] | string Filter by person who finished payment. |
filter[order] | string Filter by order id. |
filter[fiscalizedAt][from] | string Filter by date when payment was fiscalized (start date). |
filter[fiscalizedAt][to] | string Filter by date when payment was fiscalized (end date). |
filter[amountFrom] | string <float> Filter by amount min. |
filter[amountTo] | string <float> Filter by amount max. |
filter[bonusesAmountFrom] | string <float> Filter by bonuses min. |
filter[bonusesAmountTo] | string <float> Filter by bonuses max. |
filter[fiscalized] | boolean Filter by fiscalized. |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 1
}, - "data": [
- {
- "type": "order-payments",
- "id": "67cf35f8-5ec3-4184-b738-5856f252ab5c",
- "attributes": {
- "paymentType": "payment",
- "date": "2022-07-19",
- "amount": 800,
- "bonusAmount": 0,
- "description": "",
- "createdAt": "2022-07-19T09:01:55+00:00",
- "posted": true,
- "postedAt": "2022-07-19T09:01:55+00:00",
- "terminalTransactionId": "",
- "fiscalized": false,
- "prepayment": true,
- "fiscalizedAt": null
}, - "relationships": {
- "method": {
- "data": {
- "type": "payment-methods",
- "id": "0e26c3db-acdc-495e-9a1b-6ba2a7cb7564"
}
}, - "shift": {
- "data": {
- "type": "shifts",
- "id": "de51ecf5-c24c-488f-81f2-0ea148e3fdf8"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "parent": {
- "data": null
}, - "order": {
- "data": {
- "type": "orders",
- "id": "1b28e295-859c-4170-8162-8a240768cd78"
}
}, - "fiscalShift": {
- "data": null
}, - "fiscalizedBy": {
- "data": null
}
}, - "links": {
- "self": "/order-payments/67cf35f8-5ec3-4184-b738-5856f252ab5c"
}
}
]
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 1
}, - "total": 1,
- "minPrice": 76.8,
- "maxPrice": 76.8,
- "totalAmount": 76.8,
- "revision": 288
}, - "data": [
- {
- "type": "bouquets",
- "id": "06264b56-d928-43a6-a02d-914b991cd961",
- "attributes": {
- "docNo": "91001",
- "title": "Bouquet 1",
- "height": 0,
- "width": 0,
- "description": "",
- "amount": 76.8,
- "saleAmount": 76.8,
- "trueSaleAmount": 76.8,
- "status": "demonstrated",
- "onWindowAt": "2022-07-25T12:02:41+00:00",
- "createdAt": "2022-07-25T11:06:45+00:00",
- "updatedAt": "2022-07-27T08:58:17+00:00",
- "completedAt": null,
- "public": false,
- "discount": 0,
- "discountType": "absolute",
- "markup": 0,
- "markupType": "absolute",
- "revision": 288
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "acf54334-5215-47c8-a7b8-7b82d584571f"
}
}, - "createdBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "updatedBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "logo": {
- "data": null
}, - "specWithVar": {
- "data": null
}
}, - "links": {
- "self": "/bouquets/06264b56-d928-43a6-a02d-914b991cd961"
}
}
]
}
Creates new Bouquets
Create bouquet request
object |
{- "meta": {
- "page": {
- "number": 1,
- "size": 1
}, - "total": 1,
- "minPrice": 76.8,
- "maxPrice": 76.8,
- "totalAmount": 76.8,
- "revision": 288
}, - "data": [
- {
- "type": "bouquets",
- "id": "06264b56-d928-43a6-a02d-914b991cd961",
- "attributes": {
- "docNo": "91001",
- "title": "Bouquet 1",
- "height": 0,
- "width": 0,
- "description": "",
- "amount": 76.8,
- "saleAmount": 76.8,
- "trueSaleAmount": 76.8,
- "status": "demonstrated",
- "onWindowAt": "2022-07-25T12:02:41+00:00",
- "createdAt": "2022-07-25T11:06:45+00:00",
- "updatedAt": "2022-07-27T08:58:17+00:00",
- "completedAt": null,
- "public": false,
- "discount": 0,
- "discountType": "absolute",
- "markup": 0,
- "markupType": "absolute",
- "revision": 288
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "acf54334-5215-47c8-a7b8-7b82d584571f"
}
}, - "createdBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "updatedBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "logo": {
- "data": null
}, - "specWithVar": {
- "data": null
}
}, - "links": {
- "self": "/bouquets/06264b56-d928-43a6-a02d-914b991cd961"
}
}
]
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 1
}, - "total": 1,
- "minPrice": 76.8,
- "maxPrice": 76.8,
- "totalAmount": 76.8,
- "revision": 288
}, - "data": [
- {
- "type": "bouquets",
- "id": "06264b56-d928-43a6-a02d-914b991cd961",
- "attributes": {
- "docNo": "91001",
- "title": "Bouquet 1",
- "height": 0,
- "width": 0,
- "description": "",
- "amount": 76.8,
- "saleAmount": 76.8,
- "trueSaleAmount": 76.8,
- "status": "demonstrated",
- "onWindowAt": "2022-07-25T12:02:41+00:00",
- "createdAt": "2022-07-25T11:06:45+00:00",
- "updatedAt": "2022-07-27T08:58:17+00:00",
- "completedAt": null,
- "public": false,
- "discount": 0,
- "discountType": "absolute",
- "markup": 0,
- "markupType": "absolute",
- "revision": 288
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "acf54334-5215-47c8-a7b8-7b82d584571f"
}
}, - "createdBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "updatedBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "logo": {
- "data": null
}, - "specWithVar": {
- "data": null
}
}, - "links": {
- "self": "/bouquets/06264b56-d928-43a6-a02d-914b991cd961"
}
}
]
}
id required | string Bouquet ID |
Update bouquet request
object |
{- "meta": {
- "page": {
- "number": 1,
- "size": 1
}, - "total": 1,
- "minPrice": 76.8,
- "maxPrice": 76.8,
- "totalAmount": 76.8,
- "revision": 288
}, - "data": [
- {
- "type": "bouquets",
- "id": "06264b56-d928-43a6-a02d-914b991cd961",
- "attributes": {
- "docNo": "91001",
- "title": "Bouquet 1",
- "height": 0,
- "width": 0,
- "description": "",
- "amount": 76.8,
- "saleAmount": 76.8,
- "trueSaleAmount": 76.8,
- "status": "demonstrated",
- "onWindowAt": "2022-07-25T12:02:41+00:00",
- "createdAt": "2022-07-25T11:06:45+00:00",
- "updatedAt": "2022-07-27T08:58:17+00:00",
- "completedAt": null,
- "public": false,
- "discount": 0,
- "discountType": "absolute",
- "markup": 0,
- "markupType": "absolute",
- "revision": 288
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "acf54334-5215-47c8-a7b8-7b82d584571f"
}
}, - "createdBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "updatedBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "logo": {
- "data": null
}, - "specWithVar": {
- "data": null
}
}, - "links": {
- "self": "/bouquets/06264b56-d928-43a6-a02d-914b991cd961"
}
}
]
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 1
}, - "total": 1,
- "minPrice": 76.8,
- "maxPrice": 76.8,
- "totalAmount": 76.8,
- "revision": 288
}, - "data": [
- {
- "type": "bouquets",
- "id": "06264b56-d928-43a6-a02d-914b991cd961",
- "attributes": {
- "docNo": "91001",
- "title": "Bouquet 1",
- "height": 0,
- "width": 0,
- "description": "",
- "amount": 76.8,
- "saleAmount": 76.8,
- "trueSaleAmount": 76.8,
- "status": "demonstrated",
- "onWindowAt": "2022-07-25T12:02:41+00:00",
- "createdAt": "2022-07-25T11:06:45+00:00",
- "updatedAt": "2022-07-27T08:58:17+00:00",
- "completedAt": null,
- "public": false,
- "discount": 0,
- "discountType": "absolute",
- "markup": 0,
- "markupType": "absolute",
- "revision": 288
}, - "relationships": {
- "store": {
- "data": {
- "type": "stores",
- "id": "acf54334-5215-47c8-a7b8-7b82d584571f"
}
}, - "createdBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "updatedBy": {
- "data": {
- "type": "users",
- "id": "e9d0db12-b2cf-40c7-b18d-468d04e9df66"
}
}, - "logo": {
- "data": null
}, - "specWithVar": {
- "data": null
}
}, - "links": {
- "self": "/bouquets/06264b56-d928-43a6-a02d-914b991cd961"
}
}
]
}
filter[customer] | string Filter by customer id. |
filter[modifiedAt][from] | string <date-time> Filter by modifiedAt (start date) |
filter[modifiedAt][to] | string <date-time> Filter by modifiedAt (end date) |
filter[dueTime][from] | string <date-time> Filter by due time (start date) |
filter[dueTime][to] | string <date-time> Filter by due time (end date) |
filter[createdAt][from] | string <date-time> Filter by createdAt (start date) |
filter[createdAt][to] | string <date-time> Filter by createdAt (end date) |
filter[updatedAt][from] | string <date-time> Filter by updatedAt (start date) |
filter[updatedAt][to] | string <date-time> Filter by updatedAt (end date) |
filter[statuses] | Array of strings Items Enum: "new" "done" "canceled" "returned" "courier" "assembled" "notAccepted" Filter by order status |
filter[stores] | Array of strings Filter by store ids |
filter[sources] | Array of strings Filter by source ids |
filter[sources] | Array of strings Items Enum: "discount" "markup" Filter by orders with discounts and\or markup |
filter[postedBy] | Array of strings Filter by user who closed the order |
filter[createdBy] | Array of strings Filter by user who created the order |
filter[items] | Array of strings Filter by items |
search | string Search by client name, order number, phone or card number |
filter[delivery] | boolean Filter by delivery |
filter[fiscalized] | boolean Filter by fiscalized |
filter[amount][min] | number <float> Order amount from |
filter[amount][max] | number <float> Order amount from |
filter[bonuses] | boolean Filter orders paid by bonuses |
filter[paymentMethods] | Array of strings Filter by order payments that paid by specified payment methods |
filter[onlyExternal] | boolean Select only external orders |
filter[externalSystem] | string Filter external orders by Synced System ID which belongs to |
filter[excludedSessions] | Array of integers Exclude external orders which created during specified sync sessions |
addMetaStatuses | boolean Include statuses statistic to response meta |
filter[postedAt][from] | string <date-time> Filter by postedAt (start date) |
filter[postedAt][to] | string <date-time> Filter by postedAt (end date) |
filter[paymentPostedAt][from] | string <date-time> Orders with payments which postedAt more than specified date |
filter[paymentPostedAt][to] | string <date-time> Orders with payments which postedAt less than specified date |
filter[docNo] | Array of strings Filter by document numbers |
filter[couriers] | Array of strings Filter by couriers |
filter[withoutCouriers] | boolean Default: false Filter by orders without couriers |
filter[florists] | Array of strings Filter by florists |
filter[withoutFlorists] | boolean Default: false Filter by orders without florists |
filter[shift] | string Filter by specific shift |
filter[fiscalShift] | string Filter by specific fiscal shift |
filter[withReturned] | boolean Default: false Include returned orders |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": "35073",
- "analytic_header": {
- "orders_count": "35073",
- "fullRevenue": "50616272.56",
- "returnedRevenue": "898619.65",
- "revenueBonuses": "0.00",
- "revenue": "49717652.91"
}
}, - "data": [
- {
- "type": "orders",
- "id": "0000019b-fd08-42d3-b544-26c2f94e4b53",
- "attributes": {
- "status": "done",
- "date": "2021-06-20",
- "docNo": "aaab21001001",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-20T12:44:45+00:00",
- "updatedAt": "2021-06-20T12:44:59+00:00",
- "updatedStatusAt": "2021-06-20T12:44:50+00:00",
- "modifiedAt": "2021-06-20T12:44:59+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-20T12:44:50+00:00",
- "cancelComment": null,
- "totalAmount": 100,
- "paymentsAmount": 100,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0000019b-fd08-42d3-b544-26c2f94e4b53"
}
}, - {
- "type": "orders",
- "id": "00000f45-844e-4228-8453-d87869fbae0e",
- "attributes": {
- "status": "done",
- "date": "2021-12-30",
- "docNo": "aaaa21011322",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-30T13:10:09+00:00",
- "updatedAt": "2021-12-30T13:16:09+00:00",
- "updatedStatusAt": "2021-12-30T13:10:12+00:00",
- "modifiedAt": "2021-12-30T13:16:09+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-30T13:10:12+00:00",
- "cancelComment": null,
- "totalAmount": 1420,
- "paymentsAmount": 1420,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-30T13:10:18+00:00",
- "revision": 26364,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00000f45-844e-4228-8453-d87869fbae0e"
}
}, - {
- "type": "orders",
- "id": "00002fab-9357-4562-b007-a8d3f33cca36",
- "attributes": {
- "status": "done",
- "date": "2021-12-31",
- "docNo": "aaaa21011480",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-31T14:10:30+00:00",
- "updatedAt": "2021-12-31T14:10:41+00:00",
- "updatedStatusAt": "2021-12-31T14:10:32+00:00",
- "modifiedAt": "2021-12-31T14:10:41+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-31T14:10:32+00:00",
- "cancelComment": null,
- "totalAmount": 830,
- "paymentsAmount": 830,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-31T14:10:38+00:00",
- "revision": 28124,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00002fab-9357-4562-b007-a8d3f33cca36"
}
}, - {
- "type": "orders",
- "id": "0001a837-d671-4813-ad65-ae64e6eb78d1",
- "attributes": {
- "status": "done",
- "date": "2021-08-19",
- "docNo": "aaaa21004624",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-08-19T06:54:23+00:00",
- "updatedAt": "2021-08-19T06:54:30+00:00",
- "updatedStatusAt": "2021-08-19T06:54:24+00:00",
- "modifiedAt": "2021-08-19T06:54:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-08-19T06:54:24+00:00",
- "cancelComment": null,
- "totalAmount": 425,
- "paymentsAmount": 425,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-08-19T06:54:29+00:00",
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0001a837-d671-4813-ad65-ae64e6eb78d1"
}
}, - {
- "type": "orders",
- "id": "00030c83-4d36-4580-9e35-606dfe0c1b6e",
- "attributes": {
- "status": "done",
- "date": "2021-06-17",
- "docNo": "aaaa21001490",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-17T00:56:00+00:00",
- "updatedAt": "2021-06-17T01:00:31+00:00",
- "updatedStatusAt": "2021-06-17T00:56:02+00:00",
- "modifiedAt": "2021-06-17T01:00:31+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-17T00:56:02+00:00",
- "cancelComment": null,
- "totalAmount": 250,
- "paymentsAmount": 250,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00030c83-4d36-4580-9e35-606dfe0c1b6e"
}
}, - {
- "type": "orders",
- "id": "0005233e-9f36-40db-bc68-e29e1d64d8df",
- "attributes": {
- "status": "done",
- "date": "2021-06-02",
- "docNo": "aaaa21000833",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-02T10:06:20+00:00",
- "updatedAt": "2021-06-02T10:06:30+00:00",
- "updatedStatusAt": "2021-06-02T10:06:21+00:00",
- "modifiedAt": "2021-06-02T10:06:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-02T10:06:21+00:00",
- "cancelComment": null,
- "totalAmount": 2142,
- "paymentsAmount": 2142,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005233e-9f36-40db-bc68-e29e1d64d8df"
}
}, - {
- "type": "orders",
- "id": "0005767d-7fc2-4180-85ce-e66fa482c9c6",
- "attributes": {
- "status": "done",
- "date": "2022-04-03",
- "docNo": "aaab21012158",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-03T06:23:36+00:00",
- "updatedAt": "2022-04-03T06:23:49+00:00",
- "updatedStatusAt": "2022-04-03T06:23:40+00:00",
- "modifiedAt": "2022-04-03T06:23:49+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-03T06:23:40+00:00",
- "cancelComment": null,
- "totalAmount": 2350,
- "paymentsAmount": 2350,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-03T06:23:47+00:00",
- "revision": 82056,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": {
- "type": "applications",
- "id": "6"
}
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005767d-7fc2-4180-85ce-e66fa482c9c6"
}
}, - {
- "type": "orders",
- "id": "000587ad-e7b3-48e4-8134-373b3567e7f9",
- "attributes": {
- "status": "done",
- "date": "2022-04-22",
- "docNo": "aaab21012787",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-22T07:02:46+00:00",
- "updatedAt": "2022-04-22T07:03:08+00:00",
- "updatedStatusAt": "2022-04-22T07:03:00+00:00",
- "modifiedAt": "2022-04-22T07:03:08+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-22T07:03:00+00:00",
- "cancelComment": null,
- "totalAmount": 200,
- "paymentsAmount": 200,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-22T07:03:06+00:00",
- "revision": 92510,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000587ad-e7b3-48e4-8134-373b3567e7f9"
}
}, - {
- "type": "orders",
- "id": "00091e5b-eba5-4f63-bd8e-c53f62e918ad",
- "attributes": {
- "status": "done",
- "date": "2022-02-19",
- "docNo": "aaab21010478",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-02-19T10:07:08+00:00",
- "updatedAt": "2022-02-19T10:07:20+00:00",
- "updatedStatusAt": "2022-02-19T10:07:11+00:00",
- "modifiedAt": "2022-02-19T10:07:20+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-02-19T10:07:11+00:00",
- "cancelComment": null,
- "totalAmount": 2980,
- "paymentsAmount": 2980,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-02-19T10:07:18+00:00",
- "revision": 56180,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00091e5b-eba5-4f63-bd8e-c53f62e918ad"
}
}, - {
- "type": "orders",
- "id": "000dd5a9-bfd5-452d-9a3e-4c356d35bbb6",
- "attributes": {
- "status": "done",
- "date": "2022-03-19",
- "docNo": "aaaa21014989",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-03-19T02:43:17+00:00",
- "updatedAt": "2022-03-19T02:43:44+00:00",
- "updatedStatusAt": "2022-03-19T02:43:35+00:00",
- "modifiedAt": "2022-03-19T02:43:44+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-03-19T02:43:35+00:00",
- "cancelComment": null,
- "totalAmount": 50,
- "paymentsAmount": 50,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-03-19T02:43:41+00:00",
- "revision": 74610,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000dd5a9-bfd5-452d-9a3e-4c356d35bbb6"
}
}
]
}
filter[customer] | string Filter by customer id. |
filter[modifiedAt][from] | string <date-time> Filter by modifiedAt (start date) |
filter[modifiedAt][to] | string <date-time> Filter by modifiedAt (end date) |
filter[dueTime][from] | string <date-time> Filter by due time (start date) |
filter[dueTime][to] | string <date-time> Filter by due time (end date) |
filter[createdAt][from] | string <date-time> Filter by createdAt (start date) |
filter[createdAt][to] | string <date-time> Filter by createdAt (end date) |
filter[updatedAt][from] | string <date-time> Filter by updatedAt (start date) |
filter[updatedAt][to] | string <date-time> Filter by updatedAt (end date) |
filter[statuses] | Array of strings Items Enum: "new" "done" "canceled" "returned" "courier" "assembled" "notAccepted" Filter by order status |
filter[stores] | Array of strings Filter by store ids |
filter[sources] | Array of strings Filter by source ids |
filter[sources] | Array of strings Items Enum: "discount" "markup" Filter by orders with discounts and\or markup |
filter[postedBy] | Array of strings Filter by user who closed the order |
filter[createdBy] | Array of strings Filter by user who created the order |
filter[items] | Array of strings Filter by items |
search | string Search by client name, order number, phone or card number |
filter[delivery] | boolean Filter by delivery |
filter[fiscalized] | boolean Filter by fiscalized |
filter[amount][min] | number <float> Order amount from |
filter[amount][max] | number <float> Order amount from |
filter[bonuses] | boolean Filter orders paid by bonuses |
filter[paymentMethods] | Array of strings Filter by order payments that paid by specified payment methods |
filter[onlyExternal] | boolean Select only external orders |
filter[externalSystem] | string Filter external orders by Synced System ID which belongs to |
filter[excludedSessions] | Array of integers Exclude external orders which created during specified sync sessions |
addMetaStatuses | boolean Include statuses statistic to response meta |
filter[postedAt][from] | string <date-time> Filter by postedAt (start date) |
filter[postedAt][to] | string <date-time> Filter by postedAt (end date) |
filter[paymentPostedAt][from] | string <date-time> Orders with payments which postedAt more than specified date |
filter[paymentPostedAt][to] | string <date-time> Orders with payments which postedAt less than specified date |
filter[docNo] | Array of strings Filter by document numbers |
filter[couriers] | Array of strings Filter by couriers |
filter[withoutCouriers] | boolean Default: false Filter by orders without couriers |
filter[florists] | Array of strings Filter by florists |
filter[withoutFlorists] | boolean Default: false Filter by orders without florists |
filter[shift] | string Filter by specific shift |
filter[fiscalShift] | string Filter by specific fiscal shift |
filter[withReturned] | boolean Default: false Include returned orders |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": "35073",
- "analytic_header": {
- "orders_count": "35073",
- "fullRevenue": "50616272.56",
- "returnedRevenue": "898619.65",
- "revenueBonuses": "0.00",
- "revenue": "49717652.91"
}
}, - "data": [
- {
- "type": "orders",
- "id": "0000019b-fd08-42d3-b544-26c2f94e4b53",
- "attributes": {
- "status": "done",
- "date": "2021-06-20",
- "docNo": "aaab21001001",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-20T12:44:45+00:00",
- "updatedAt": "2021-06-20T12:44:59+00:00",
- "updatedStatusAt": "2021-06-20T12:44:50+00:00",
- "modifiedAt": "2021-06-20T12:44:59+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-20T12:44:50+00:00",
- "cancelComment": null,
- "totalAmount": 100,
- "paymentsAmount": 100,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0000019b-fd08-42d3-b544-26c2f94e4b53"
}
}, - {
- "type": "orders",
- "id": "00000f45-844e-4228-8453-d87869fbae0e",
- "attributes": {
- "status": "done",
- "date": "2021-12-30",
- "docNo": "aaaa21011322",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-30T13:10:09+00:00",
- "updatedAt": "2021-12-30T13:16:09+00:00",
- "updatedStatusAt": "2021-12-30T13:10:12+00:00",
- "modifiedAt": "2021-12-30T13:16:09+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-30T13:10:12+00:00",
- "cancelComment": null,
- "totalAmount": 1420,
- "paymentsAmount": 1420,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-30T13:10:18+00:00",
- "revision": 26364,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00000f45-844e-4228-8453-d87869fbae0e"
}
}, - {
- "type": "orders",
- "id": "00002fab-9357-4562-b007-a8d3f33cca36",
- "attributes": {
- "status": "done",
- "date": "2021-12-31",
- "docNo": "aaaa21011480",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-31T14:10:30+00:00",
- "updatedAt": "2021-12-31T14:10:41+00:00",
- "updatedStatusAt": "2021-12-31T14:10:32+00:00",
- "modifiedAt": "2021-12-31T14:10:41+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-31T14:10:32+00:00",
- "cancelComment": null,
- "totalAmount": 830,
- "paymentsAmount": 830,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-31T14:10:38+00:00",
- "revision": 28124,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00002fab-9357-4562-b007-a8d3f33cca36"
}
}, - {
- "type": "orders",
- "id": "0001a837-d671-4813-ad65-ae64e6eb78d1",
- "attributes": {
- "status": "done",
- "date": "2021-08-19",
- "docNo": "aaaa21004624",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-08-19T06:54:23+00:00",
- "updatedAt": "2021-08-19T06:54:30+00:00",
- "updatedStatusAt": "2021-08-19T06:54:24+00:00",
- "modifiedAt": "2021-08-19T06:54:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-08-19T06:54:24+00:00",
- "cancelComment": null,
- "totalAmount": 425,
- "paymentsAmount": 425,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-08-19T06:54:29+00:00",
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0001a837-d671-4813-ad65-ae64e6eb78d1"
}
}, - {
- "type": "orders",
- "id": "00030c83-4d36-4580-9e35-606dfe0c1b6e",
- "attributes": {
- "status": "done",
- "date": "2021-06-17",
- "docNo": "aaaa21001490",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-17T00:56:00+00:00",
- "updatedAt": "2021-06-17T01:00:31+00:00",
- "updatedStatusAt": "2021-06-17T00:56:02+00:00",
- "modifiedAt": "2021-06-17T01:00:31+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-17T00:56:02+00:00",
- "cancelComment": null,
- "totalAmount": 250,
- "paymentsAmount": 250,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00030c83-4d36-4580-9e35-606dfe0c1b6e"
}
}, - {
- "type": "orders",
- "id": "0005233e-9f36-40db-bc68-e29e1d64d8df",
- "attributes": {
- "status": "done",
- "date": "2021-06-02",
- "docNo": "aaaa21000833",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-02T10:06:20+00:00",
- "updatedAt": "2021-06-02T10:06:30+00:00",
- "updatedStatusAt": "2021-06-02T10:06:21+00:00",
- "modifiedAt": "2021-06-02T10:06:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-02T10:06:21+00:00",
- "cancelComment": null,
- "totalAmount": 2142,
- "paymentsAmount": 2142,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005233e-9f36-40db-bc68-e29e1d64d8df"
}
}, - {
- "type": "orders",
- "id": "0005767d-7fc2-4180-85ce-e66fa482c9c6",
- "attributes": {
- "status": "done",
- "date": "2022-04-03",
- "docNo": "aaab21012158",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-03T06:23:36+00:00",
- "updatedAt": "2022-04-03T06:23:49+00:00",
- "updatedStatusAt": "2022-04-03T06:23:40+00:00",
- "modifiedAt": "2022-04-03T06:23:49+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-03T06:23:40+00:00",
- "cancelComment": null,
- "totalAmount": 2350,
- "paymentsAmount": 2350,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-03T06:23:47+00:00",
- "revision": 82056,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": {
- "type": "applications",
- "id": "6"
}
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005767d-7fc2-4180-85ce-e66fa482c9c6"
}
}, - {
- "type": "orders",
- "id": "000587ad-e7b3-48e4-8134-373b3567e7f9",
- "attributes": {
- "status": "done",
- "date": "2022-04-22",
- "docNo": "aaab21012787",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-22T07:02:46+00:00",
- "updatedAt": "2022-04-22T07:03:08+00:00",
- "updatedStatusAt": "2022-04-22T07:03:00+00:00",
- "modifiedAt": "2022-04-22T07:03:08+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-22T07:03:00+00:00",
- "cancelComment": null,
- "totalAmount": 200,
- "paymentsAmount": 200,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-22T07:03:06+00:00",
- "revision": 92510,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000587ad-e7b3-48e4-8134-373b3567e7f9"
}
}, - {
- "type": "orders",
- "id": "00091e5b-eba5-4f63-bd8e-c53f62e918ad",
- "attributes": {
- "status": "done",
- "date": "2022-02-19",
- "docNo": "aaab21010478",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-02-19T10:07:08+00:00",
- "updatedAt": "2022-02-19T10:07:20+00:00",
- "updatedStatusAt": "2022-02-19T10:07:11+00:00",
- "modifiedAt": "2022-02-19T10:07:20+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-02-19T10:07:11+00:00",
- "cancelComment": null,
- "totalAmount": 2980,
- "paymentsAmount": 2980,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-02-19T10:07:18+00:00",
- "revision": 56180,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00091e5b-eba5-4f63-bd8e-c53f62e918ad"
}
}, - {
- "type": "orders",
- "id": "000dd5a9-bfd5-452d-9a3e-4c356d35bbb6",
- "attributes": {
- "status": "done",
- "date": "2022-03-19",
- "docNo": "aaaa21014989",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-03-19T02:43:17+00:00",
- "updatedAt": "2022-03-19T02:43:44+00:00",
- "updatedStatusAt": "2022-03-19T02:43:35+00:00",
- "modifiedAt": "2022-03-19T02:43:44+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-03-19T02:43:35+00:00",
- "cancelComment": null,
- "totalAmount": 50,
- "paymentsAmount": 50,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-03-19T02:43:41+00:00",
- "revision": 74610,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000dd5a9-bfd5-452d-9a3e-4c356d35bbb6"
}
}
]
}
filter[customer] | string Filter by customer id. |
filter[modifiedAt][from] | string <date-time> Filter by modifiedAt (start date) |
filter[modifiedAt][to] | string <date-time> Filter by modifiedAt (end date) |
filter[dueTime][from] | string <date-time> Filter by due time (start date) |
filter[dueTime][to] | string <date-time> Filter by due time (end date) |
filter[createdAt][from] | string <date-time> Filter by createdAt (start date) |
filter[createdAt][to] | string <date-time> Filter by createdAt (end date) |
filter[updatedAt][from] | string <date-time> Filter by updatedAt (start date) |
filter[updatedAt][to] | string <date-time> Filter by updatedAt (end date) |
filter[statuses] | Array of strings Items Enum: "new" "done" "canceled" "returned" "courier" "assembled" "notAccepted" Filter by order status |
filter[stores] | Array of strings Filter by store ids |
filter[sources] | Array of strings Filter by source ids |
filter[sources] | Array of strings Items Enum: "discount" "markup" Filter by orders with discounts and\or markup |
filter[postedBy] | Array of strings Filter by user who closed the order |
filter[createdBy] | Array of strings Filter by user who created the order |
filter[items] | Array of strings Filter by items |
search | string Search by client name, order number, phone or card number |
filter[delivery] | boolean Filter by delivery |
filter[fiscalized] | boolean Filter by fiscalized |
filter[amount][min] | number <float> Order amount from |
filter[amount][max] | number <float> Order amount from |
filter[bonuses] | boolean Filter orders paid by bonuses |
filter[paymentMethods] | Array of strings Filter by order payments that paid by specified payment methods |
filter[onlyExternal] | boolean Select only external orders |
filter[externalSystem] | string Filter external orders by Synced System ID which belongs to |
filter[excludedSessions] | Array of integers Exclude external orders which created during specified sync sessions |
addMetaStatuses | boolean Include statuses statistic to response meta |
filter[postedAt][from] | string <date-time> Filter by postedAt (start date) |
filter[postedAt][to] | string <date-time> Filter by postedAt (end date) |
filter[paymentPostedAt][from] | string <date-time> Orders with payments which postedAt more than specified date |
filter[paymentPostedAt][to] | string <date-time> Orders with payments which postedAt less than specified date |
filter[docNo] | Array of strings Filter by document numbers |
filter[couriers] | Array of strings Filter by couriers |
filter[withoutCouriers] | boolean Default: false Filter by orders without couriers |
filter[florists] | Array of strings Filter by florists |
filter[withoutFlorists] | boolean Default: false Filter by orders without florists |
filter[shift] | string Filter by specific shift |
filter[fiscalShift] | string Filter by specific fiscal shift |
filter[withReturned] | boolean Default: false Include returned orders |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": "35073",
- "analytic_header": {
- "orders_count": "35073",
- "fullRevenue": "50616272.56",
- "returnedRevenue": "898619.65",
- "revenueBonuses": "0.00",
- "revenue": "49717652.91"
}
}, - "data": [
- {
- "type": "orders",
- "id": "0000019b-fd08-42d3-b544-26c2f94e4b53",
- "attributes": {
- "status": "done",
- "date": "2021-06-20",
- "docNo": "aaab21001001",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-20T12:44:45+00:00",
- "updatedAt": "2021-06-20T12:44:59+00:00",
- "updatedStatusAt": "2021-06-20T12:44:50+00:00",
- "modifiedAt": "2021-06-20T12:44:59+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-20T12:44:50+00:00",
- "cancelComment": null,
- "totalAmount": 100,
- "paymentsAmount": 100,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0000019b-fd08-42d3-b544-26c2f94e4b53"
}
}, - {
- "type": "orders",
- "id": "00000f45-844e-4228-8453-d87869fbae0e",
- "attributes": {
- "status": "done",
- "date": "2021-12-30",
- "docNo": "aaaa21011322",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-30T13:10:09+00:00",
- "updatedAt": "2021-12-30T13:16:09+00:00",
- "updatedStatusAt": "2021-12-30T13:10:12+00:00",
- "modifiedAt": "2021-12-30T13:16:09+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-30T13:10:12+00:00",
- "cancelComment": null,
- "totalAmount": 1420,
- "paymentsAmount": 1420,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-30T13:10:18+00:00",
- "revision": 26364,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00000f45-844e-4228-8453-d87869fbae0e"
}
}, - {
- "type": "orders",
- "id": "00002fab-9357-4562-b007-a8d3f33cca36",
- "attributes": {
- "status": "done",
- "date": "2021-12-31",
- "docNo": "aaaa21011480",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-31T14:10:30+00:00",
- "updatedAt": "2021-12-31T14:10:41+00:00",
- "updatedStatusAt": "2021-12-31T14:10:32+00:00",
- "modifiedAt": "2021-12-31T14:10:41+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-31T14:10:32+00:00",
- "cancelComment": null,
- "totalAmount": 830,
- "paymentsAmount": 830,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-31T14:10:38+00:00",
- "revision": 28124,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00002fab-9357-4562-b007-a8d3f33cca36"
}
}, - {
- "type": "orders",
- "id": "0001a837-d671-4813-ad65-ae64e6eb78d1",
- "attributes": {
- "status": "done",
- "date": "2021-08-19",
- "docNo": "aaaa21004624",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-08-19T06:54:23+00:00",
- "updatedAt": "2021-08-19T06:54:30+00:00",
- "updatedStatusAt": "2021-08-19T06:54:24+00:00",
- "modifiedAt": "2021-08-19T06:54:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-08-19T06:54:24+00:00",
- "cancelComment": null,
- "totalAmount": 425,
- "paymentsAmount": 425,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-08-19T06:54:29+00:00",
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0001a837-d671-4813-ad65-ae64e6eb78d1"
}
}, - {
- "type": "orders",
- "id": "00030c83-4d36-4580-9e35-606dfe0c1b6e",
- "attributes": {
- "status": "done",
- "date": "2021-06-17",
- "docNo": "aaaa21001490",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-17T00:56:00+00:00",
- "updatedAt": "2021-06-17T01:00:31+00:00",
- "updatedStatusAt": "2021-06-17T00:56:02+00:00",
- "modifiedAt": "2021-06-17T01:00:31+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-17T00:56:02+00:00",
- "cancelComment": null,
- "totalAmount": 250,
- "paymentsAmount": 250,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00030c83-4d36-4580-9e35-606dfe0c1b6e"
}
}, - {
- "type": "orders",
- "id": "0005233e-9f36-40db-bc68-e29e1d64d8df",
- "attributes": {
- "status": "done",
- "date": "2021-06-02",
- "docNo": "aaaa21000833",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-02T10:06:20+00:00",
- "updatedAt": "2021-06-02T10:06:30+00:00",
- "updatedStatusAt": "2021-06-02T10:06:21+00:00",
- "modifiedAt": "2021-06-02T10:06:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-02T10:06:21+00:00",
- "cancelComment": null,
- "totalAmount": 2142,
- "paymentsAmount": 2142,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005233e-9f36-40db-bc68-e29e1d64d8df"
}
}, - {
- "type": "orders",
- "id": "0005767d-7fc2-4180-85ce-e66fa482c9c6",
- "attributes": {
- "status": "done",
- "date": "2022-04-03",
- "docNo": "aaab21012158",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-03T06:23:36+00:00",
- "updatedAt": "2022-04-03T06:23:49+00:00",
- "updatedStatusAt": "2022-04-03T06:23:40+00:00",
- "modifiedAt": "2022-04-03T06:23:49+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-03T06:23:40+00:00",
- "cancelComment": null,
- "totalAmount": 2350,
- "paymentsAmount": 2350,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-03T06:23:47+00:00",
- "revision": 82056,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": {
- "type": "applications",
- "id": "6"
}
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005767d-7fc2-4180-85ce-e66fa482c9c6"
}
}, - {
- "type": "orders",
- "id": "000587ad-e7b3-48e4-8134-373b3567e7f9",
- "attributes": {
- "status": "done",
- "date": "2022-04-22",
- "docNo": "aaab21012787",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-22T07:02:46+00:00",
- "updatedAt": "2022-04-22T07:03:08+00:00",
- "updatedStatusAt": "2022-04-22T07:03:00+00:00",
- "modifiedAt": "2022-04-22T07:03:08+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-22T07:03:00+00:00",
- "cancelComment": null,
- "totalAmount": 200,
- "paymentsAmount": 200,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-22T07:03:06+00:00",
- "revision": 92510,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000587ad-e7b3-48e4-8134-373b3567e7f9"
}
}, - {
- "type": "orders",
- "id": "00091e5b-eba5-4f63-bd8e-c53f62e918ad",
- "attributes": {
- "status": "done",
- "date": "2022-02-19",
- "docNo": "aaab21010478",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-02-19T10:07:08+00:00",
- "updatedAt": "2022-02-19T10:07:20+00:00",
- "updatedStatusAt": "2022-02-19T10:07:11+00:00",
- "modifiedAt": "2022-02-19T10:07:20+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-02-19T10:07:11+00:00",
- "cancelComment": null,
- "totalAmount": 2980,
- "paymentsAmount": 2980,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-02-19T10:07:18+00:00",
- "revision": 56180,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00091e5b-eba5-4f63-bd8e-c53f62e918ad"
}
}, - {
- "type": "orders",
- "id": "000dd5a9-bfd5-452d-9a3e-4c356d35bbb6",
- "attributes": {
- "status": "done",
- "date": "2022-03-19",
- "docNo": "aaaa21014989",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-03-19T02:43:17+00:00",
- "updatedAt": "2022-03-19T02:43:44+00:00",
- "updatedStatusAt": "2022-03-19T02:43:35+00:00",
- "modifiedAt": "2022-03-19T02:43:44+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-03-19T02:43:35+00:00",
- "cancelComment": null,
- "totalAmount": 50,
- "paymentsAmount": 50,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-03-19T02:43:41+00:00",
- "revision": 74610,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000dd5a9-bfd5-452d-9a3e-4c356d35bbb6"
}
}
]
}
filter[customer] | string Filter by customer id. |
filter[modifiedAt][from] | string <date-time> Filter by modifiedAt (start date) |
filter[modifiedAt][to] | string <date-time> Filter by modifiedAt (end date) |
filter[dueTime][from] | string <date-time> Filter by due time (start date) |
filter[dueTime][to] | string <date-time> Filter by due time (end date) |
filter[createdAt][from] | string <date-time> Filter by createdAt (start date) |
filter[createdAt][to] | string <date-time> Filter by createdAt (end date) |
filter[updatedAt][from] | string <date-time> Filter by updatedAt (start date) |
filter[updatedAt][to] | string <date-time> Filter by updatedAt (end date) |
filter[statuses] | Array of strings Items Enum: "new" "done" "canceled" "returned" "courier" "assembled" "notAccepted" Filter by order status |
filter[stores] | Array of strings Filter by store ids |
filter[sources] | Array of strings Filter by source ids |
filter[sources] | Array of strings Items Enum: "discount" "markup" Filter by orders with discounts and\or markup |
filter[postedBy] | Array of strings Filter by user who closed the order |
filter[createdBy] | Array of strings Filter by user who created the order |
filter[items] | Array of strings Filter by items |
search | string Search by client name, order number, phone or card number |
filter[delivery] | boolean Filter by delivery |
filter[fiscalized] | boolean Filter by fiscalized |
filter[amount][min] | number <float> Order amount from |
filter[amount][max] | number <float> Order amount from |
filter[bonuses] | boolean Filter orders paid by bonuses |
filter[paymentMethods] | Array of strings Filter by order payments that paid by specified payment methods |
filter[onlyExternal] | boolean Select only external orders |
filter[externalSystem] | string Filter external orders by Synced System ID which belongs to |
filter[excludedSessions] | Array of integers Exclude external orders which created during specified sync sessions |
addMetaStatuses | boolean Include statuses statistic to response meta |
filter[postedAt][from] | string <date-time> Filter by postedAt (start date) |
filter[postedAt][to] | string <date-time> Filter by postedAt (end date) |
filter[paymentPostedAt][from] | string <date-time> Orders with payments which postedAt more than specified date |
filter[paymentPostedAt][to] | string <date-time> Orders with payments which postedAt less than specified date |
filter[docNo] | Array of strings Filter by document numbers |
filter[couriers] | Array of strings Filter by couriers |
filter[withoutCouriers] | boolean Default: false Filter by orders without couriers |
filter[florists] | Array of strings Filter by florists |
filter[withoutFlorists] | boolean Default: false Filter by orders without florists |
filter[shift] | string Filter by specific shift |
filter[fiscalShift] | string Filter by specific fiscal shift |
filter[withReturned] | boolean Default: false Include returned orders |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": "35073",
- "analytic_header": {
- "orders_count": "35073",
- "fullRevenue": "50616272.56",
- "returnedRevenue": "898619.65",
- "revenueBonuses": "0.00",
- "revenue": "49717652.91"
}
}, - "data": [
- {
- "type": "orders",
- "id": "0000019b-fd08-42d3-b544-26c2f94e4b53",
- "attributes": {
- "status": "done",
- "date": "2021-06-20",
- "docNo": "aaab21001001",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-20T12:44:45+00:00",
- "updatedAt": "2021-06-20T12:44:59+00:00",
- "updatedStatusAt": "2021-06-20T12:44:50+00:00",
- "modifiedAt": "2021-06-20T12:44:59+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-20T12:44:50+00:00",
- "cancelComment": null,
- "totalAmount": 100,
- "paymentsAmount": 100,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0000019b-fd08-42d3-b544-26c2f94e4b53"
}
}, - {
- "type": "orders",
- "id": "00000f45-844e-4228-8453-d87869fbae0e",
- "attributes": {
- "status": "done",
- "date": "2021-12-30",
- "docNo": "aaaa21011322",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-30T13:10:09+00:00",
- "updatedAt": "2021-12-30T13:16:09+00:00",
- "updatedStatusAt": "2021-12-30T13:10:12+00:00",
- "modifiedAt": "2021-12-30T13:16:09+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-30T13:10:12+00:00",
- "cancelComment": null,
- "totalAmount": 1420,
- "paymentsAmount": 1420,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-30T13:10:18+00:00",
- "revision": 26364,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00000f45-844e-4228-8453-d87869fbae0e"
}
}, - {
- "type": "orders",
- "id": "00002fab-9357-4562-b007-a8d3f33cca36",
- "attributes": {
- "status": "done",
- "date": "2021-12-31",
- "docNo": "aaaa21011480",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-31T14:10:30+00:00",
- "updatedAt": "2021-12-31T14:10:41+00:00",
- "updatedStatusAt": "2021-12-31T14:10:32+00:00",
- "modifiedAt": "2021-12-31T14:10:41+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-31T14:10:32+00:00",
- "cancelComment": null,
- "totalAmount": 830,
- "paymentsAmount": 830,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-31T14:10:38+00:00",
- "revision": 28124,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00002fab-9357-4562-b007-a8d3f33cca36"
}
}, - {
- "type": "orders",
- "id": "0001a837-d671-4813-ad65-ae64e6eb78d1",
- "attributes": {
- "status": "done",
- "date": "2021-08-19",
- "docNo": "aaaa21004624",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-08-19T06:54:23+00:00",
- "updatedAt": "2021-08-19T06:54:30+00:00",
- "updatedStatusAt": "2021-08-19T06:54:24+00:00",
- "modifiedAt": "2021-08-19T06:54:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-08-19T06:54:24+00:00",
- "cancelComment": null,
- "totalAmount": 425,
- "paymentsAmount": 425,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-08-19T06:54:29+00:00",
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0001a837-d671-4813-ad65-ae64e6eb78d1"
}
}, - {
- "type": "orders",
- "id": "00030c83-4d36-4580-9e35-606dfe0c1b6e",
- "attributes": {
- "status": "done",
- "date": "2021-06-17",
- "docNo": "aaaa21001490",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-17T00:56:00+00:00",
- "updatedAt": "2021-06-17T01:00:31+00:00",
- "updatedStatusAt": "2021-06-17T00:56:02+00:00",
- "modifiedAt": "2021-06-17T01:00:31+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-17T00:56:02+00:00",
- "cancelComment": null,
- "totalAmount": 250,
- "paymentsAmount": 250,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00030c83-4d36-4580-9e35-606dfe0c1b6e"
}
}, - {
- "type": "orders",
- "id": "0005233e-9f36-40db-bc68-e29e1d64d8df",
- "attributes": {
- "status": "done",
- "date": "2021-06-02",
- "docNo": "aaaa21000833",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-02T10:06:20+00:00",
- "updatedAt": "2021-06-02T10:06:30+00:00",
- "updatedStatusAt": "2021-06-02T10:06:21+00:00",
- "modifiedAt": "2021-06-02T10:06:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-02T10:06:21+00:00",
- "cancelComment": null,
- "totalAmount": 2142,
- "paymentsAmount": 2142,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005233e-9f36-40db-bc68-e29e1d64d8df"
}
}, - {
- "type": "orders",
- "id": "0005767d-7fc2-4180-85ce-e66fa482c9c6",
- "attributes": {
- "status": "done",
- "date": "2022-04-03",
- "docNo": "aaab21012158",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-03T06:23:36+00:00",
- "updatedAt": "2022-04-03T06:23:49+00:00",
- "updatedStatusAt": "2022-04-03T06:23:40+00:00",
- "modifiedAt": "2022-04-03T06:23:49+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-03T06:23:40+00:00",
- "cancelComment": null,
- "totalAmount": 2350,
- "paymentsAmount": 2350,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-03T06:23:47+00:00",
- "revision": 82056,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": {
- "type": "applications",
- "id": "6"
}
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005767d-7fc2-4180-85ce-e66fa482c9c6"
}
}, - {
- "type": "orders",
- "id": "000587ad-e7b3-48e4-8134-373b3567e7f9",
- "attributes": {
- "status": "done",
- "date": "2022-04-22",
- "docNo": "aaab21012787",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-22T07:02:46+00:00",
- "updatedAt": "2022-04-22T07:03:08+00:00",
- "updatedStatusAt": "2022-04-22T07:03:00+00:00",
- "modifiedAt": "2022-04-22T07:03:08+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-22T07:03:00+00:00",
- "cancelComment": null,
- "totalAmount": 200,
- "paymentsAmount": 200,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-22T07:03:06+00:00",
- "revision": 92510,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000587ad-e7b3-48e4-8134-373b3567e7f9"
}
}, - {
- "type": "orders",
- "id": "00091e5b-eba5-4f63-bd8e-c53f62e918ad",
- "attributes": {
- "status": "done",
- "date": "2022-02-19",
- "docNo": "aaab21010478",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-02-19T10:07:08+00:00",
- "updatedAt": "2022-02-19T10:07:20+00:00",
- "updatedStatusAt": "2022-02-19T10:07:11+00:00",
- "modifiedAt": "2022-02-19T10:07:20+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-02-19T10:07:11+00:00",
- "cancelComment": null,
- "totalAmount": 2980,
- "paymentsAmount": 2980,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-02-19T10:07:18+00:00",
- "revision": 56180,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00091e5b-eba5-4f63-bd8e-c53f62e918ad"
}
}, - {
- "type": "orders",
- "id": "000dd5a9-bfd5-452d-9a3e-4c356d35bbb6",
- "attributes": {
- "status": "done",
- "date": "2022-03-19",
- "docNo": "aaaa21014989",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-03-19T02:43:17+00:00",
- "updatedAt": "2022-03-19T02:43:44+00:00",
- "updatedStatusAt": "2022-03-19T02:43:35+00:00",
- "modifiedAt": "2022-03-19T02:43:44+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-03-19T02:43:35+00:00",
- "cancelComment": null,
- "totalAmount": 50,
- "paymentsAmount": 50,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-03-19T02:43:41+00:00",
- "revision": 74610,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000dd5a9-bfd5-452d-9a3e-4c356d35bbb6"
}
}
]
}
filter[customer] | string Filter by customer id. |
filter[modifiedAt][from] | string <date-time> Filter by modifiedAt (start date) |
filter[modifiedAt][to] | string <date-time> Filter by modifiedAt (end date) |
filter[dueTime][from] | string <date-time> Filter by due time (start date) |
filter[dueTime][to] | string <date-time> Filter by due time (end date) |
filter[createdAt][from] | string <date-time> Filter by createdAt (start date) |
filter[createdAt][to] | string <date-time> Filter by createdAt (end date) |
filter[updatedAt][from] | string <date-time> Filter by updatedAt (start date) |
filter[updatedAt][to] | string <date-time> Filter by updatedAt (end date) |
filter[statuses] | Array of strings Items Enum: "new" "done" "canceled" "returned" "courier" "assembled" "notAccepted" Filter by order status |
filter[stores] | Array of strings Filter by store ids |
filter[sources] | Array of strings Filter by source ids |
filter[sources] | Array of strings Items Enum: "discount" "markup" Filter by orders with discounts and\or markup |
filter[postedBy] | Array of strings Filter by user who closed the order |
filter[createdBy] | Array of strings Filter by user who created the order |
filter[items] | Array of strings Filter by items |
search | string Search by client name, order number, phone or card number |
filter[delivery] | boolean Filter by delivery |
filter[fiscalized] | boolean Filter by fiscalized |
filter[amount][min] | number <float> Order amount from |
filter[amount][max] | number <float> Order amount from |
filter[bonuses] | boolean Filter orders paid by bonuses |
filter[paymentMethods] | Array of strings Filter by order payments that paid by specified payment methods |
filter[onlyExternal] | boolean Select only external orders |
filter[externalSystem] | string Filter external orders by Synced System ID which belongs to |
filter[excludedSessions] | Array of integers Exclude external orders which created during specified sync sessions |
addMetaStatuses | boolean Include statuses statistic to response meta |
filter[postedAt][from] | string <date-time> Filter by postedAt (start date) |
filter[postedAt][to] | string <date-time> Filter by postedAt (end date) |
filter[paymentPostedAt][from] | string <date-time> Orders with payments which postedAt more than specified date |
filter[paymentPostedAt][to] | string <date-time> Orders with payments which postedAt less than specified date |
filter[docNo] | Array of strings Filter by document numbers |
filter[couriers] | Array of strings Filter by couriers |
filter[withoutCouriers] | boolean Default: false Filter by orders without couriers |
filter[florists] | Array of strings Filter by florists |
filter[withoutFlorists] | boolean Default: false Filter by orders without florists |
filter[shift] | string Filter by specific shift |
filter[fiscalShift] | string Filter by specific fiscal shift |
filter[withReturned] | boolean Default: false Include returned orders |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": "35073",
- "analytic_header": {
- "orders_count": "35073",
- "fullRevenue": "50616272.56",
- "returnedRevenue": "898619.65",
- "revenueBonuses": "0.00",
- "revenue": "49717652.91"
}
}, - "data": [
- {
- "type": "orders",
- "id": "0000019b-fd08-42d3-b544-26c2f94e4b53",
- "attributes": {
- "status": "done",
- "date": "2021-06-20",
- "docNo": "aaab21001001",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-20T12:44:45+00:00",
- "updatedAt": "2021-06-20T12:44:59+00:00",
- "updatedStatusAt": "2021-06-20T12:44:50+00:00",
- "modifiedAt": "2021-06-20T12:44:59+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-20T12:44:50+00:00",
- "cancelComment": null,
- "totalAmount": 100,
- "paymentsAmount": 100,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0000019b-fd08-42d3-b544-26c2f94e4b53"
}
}, - {
- "type": "orders",
- "id": "00000f45-844e-4228-8453-d87869fbae0e",
- "attributes": {
- "status": "done",
- "date": "2021-12-30",
- "docNo": "aaaa21011322",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-30T13:10:09+00:00",
- "updatedAt": "2021-12-30T13:16:09+00:00",
- "updatedStatusAt": "2021-12-30T13:10:12+00:00",
- "modifiedAt": "2021-12-30T13:16:09+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-30T13:10:12+00:00",
- "cancelComment": null,
- "totalAmount": 1420,
- "paymentsAmount": 1420,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-30T13:10:18+00:00",
- "revision": 26364,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00000f45-844e-4228-8453-d87869fbae0e"
}
}, - {
- "type": "orders",
- "id": "00002fab-9357-4562-b007-a8d3f33cca36",
- "attributes": {
- "status": "done",
- "date": "2021-12-31",
- "docNo": "aaaa21011480",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-31T14:10:30+00:00",
- "updatedAt": "2021-12-31T14:10:41+00:00",
- "updatedStatusAt": "2021-12-31T14:10:32+00:00",
- "modifiedAt": "2021-12-31T14:10:41+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-31T14:10:32+00:00",
- "cancelComment": null,
- "totalAmount": 830,
- "paymentsAmount": 830,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-31T14:10:38+00:00",
- "revision": 28124,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00002fab-9357-4562-b007-a8d3f33cca36"
}
}, - {
- "type": "orders",
- "id": "0001a837-d671-4813-ad65-ae64e6eb78d1",
- "attributes": {
- "status": "done",
- "date": "2021-08-19",
- "docNo": "aaaa21004624",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-08-19T06:54:23+00:00",
- "updatedAt": "2021-08-19T06:54:30+00:00",
- "updatedStatusAt": "2021-08-19T06:54:24+00:00",
- "modifiedAt": "2021-08-19T06:54:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-08-19T06:54:24+00:00",
- "cancelComment": null,
- "totalAmount": 425,
- "paymentsAmount": 425,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-08-19T06:54:29+00:00",
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0001a837-d671-4813-ad65-ae64e6eb78d1"
}
}, - {
- "type": "orders",
- "id": "00030c83-4d36-4580-9e35-606dfe0c1b6e",
- "attributes": {
- "status": "done",
- "date": "2021-06-17",
- "docNo": "aaaa21001490",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-17T00:56:00+00:00",
- "updatedAt": "2021-06-17T01:00:31+00:00",
- "updatedStatusAt": "2021-06-17T00:56:02+00:00",
- "modifiedAt": "2021-06-17T01:00:31+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-17T00:56:02+00:00",
- "cancelComment": null,
- "totalAmount": 250,
- "paymentsAmount": 250,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00030c83-4d36-4580-9e35-606dfe0c1b6e"
}
}, - {
- "type": "orders",
- "id": "0005233e-9f36-40db-bc68-e29e1d64d8df",
- "attributes": {
- "status": "done",
- "date": "2021-06-02",
- "docNo": "aaaa21000833",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-02T10:06:20+00:00",
- "updatedAt": "2021-06-02T10:06:30+00:00",
- "updatedStatusAt": "2021-06-02T10:06:21+00:00",
- "modifiedAt": "2021-06-02T10:06:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-02T10:06:21+00:00",
- "cancelComment": null,
- "totalAmount": 2142,
- "paymentsAmount": 2142,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005233e-9f36-40db-bc68-e29e1d64d8df"
}
}, - {
- "type": "orders",
- "id": "0005767d-7fc2-4180-85ce-e66fa482c9c6",
- "attributes": {
- "status": "done",
- "date": "2022-04-03",
- "docNo": "aaab21012158",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-03T06:23:36+00:00",
- "updatedAt": "2022-04-03T06:23:49+00:00",
- "updatedStatusAt": "2022-04-03T06:23:40+00:00",
- "modifiedAt": "2022-04-03T06:23:49+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-03T06:23:40+00:00",
- "cancelComment": null,
- "totalAmount": 2350,
- "paymentsAmount": 2350,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-03T06:23:47+00:00",
- "revision": 82056,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": {
- "type": "applications",
- "id": "6"
}
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005767d-7fc2-4180-85ce-e66fa482c9c6"
}
}, - {
- "type": "orders",
- "id": "000587ad-e7b3-48e4-8134-373b3567e7f9",
- "attributes": {
- "status": "done",
- "date": "2022-04-22",
- "docNo": "aaab21012787",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-22T07:02:46+00:00",
- "updatedAt": "2022-04-22T07:03:08+00:00",
- "updatedStatusAt": "2022-04-22T07:03:00+00:00",
- "modifiedAt": "2022-04-22T07:03:08+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-22T07:03:00+00:00",
- "cancelComment": null,
- "totalAmount": 200,
- "paymentsAmount": 200,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-22T07:03:06+00:00",
- "revision": 92510,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000587ad-e7b3-48e4-8134-373b3567e7f9"
}
}, - {
- "type": "orders",
- "id": "00091e5b-eba5-4f63-bd8e-c53f62e918ad",
- "attributes": {
- "status": "done",
- "date": "2022-02-19",
- "docNo": "aaab21010478",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-02-19T10:07:08+00:00",
- "updatedAt": "2022-02-19T10:07:20+00:00",
- "updatedStatusAt": "2022-02-19T10:07:11+00:00",
- "modifiedAt": "2022-02-19T10:07:20+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-02-19T10:07:11+00:00",
- "cancelComment": null,
- "totalAmount": 2980,
- "paymentsAmount": 2980,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-02-19T10:07:18+00:00",
- "revision": 56180,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00091e5b-eba5-4f63-bd8e-c53f62e918ad"
}
}, - {
- "type": "orders",
- "id": "000dd5a9-bfd5-452d-9a3e-4c356d35bbb6",
- "attributes": {
- "status": "done",
- "date": "2022-03-19",
- "docNo": "aaaa21014989",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-03-19T02:43:17+00:00",
- "updatedAt": "2022-03-19T02:43:44+00:00",
- "updatedStatusAt": "2022-03-19T02:43:35+00:00",
- "modifiedAt": "2022-03-19T02:43:44+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-03-19T02:43:35+00:00",
- "cancelComment": null,
- "totalAmount": 50,
- "paymentsAmount": 50,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-03-19T02:43:41+00:00",
- "revision": 74610,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000dd5a9-bfd5-452d-9a3e-4c356d35bbb6"
}
}
]
}
filter[customer] | string Filter by customer id. |
filter[modifiedAt][from] | string <date-time> Filter by modifiedAt (start date) |
filter[modifiedAt][to] | string <date-time> Filter by modifiedAt (end date) |
filter[dueTime][from] | string <date-time> Filter by due time (start date) |
filter[dueTime][to] | string <date-time> Filter by due time (end date) |
filter[createdAt][from] | string <date-time> Filter by createdAt (start date) |
filter[createdAt][to] | string <date-time> Filter by createdAt (end date) |
filter[updatedAt][from] | string <date-time> Filter by updatedAt (start date) |
filter[updatedAt][to] | string <date-time> Filter by updatedAt (end date) |
filter[statuses] | Array of strings Items Enum: "new" "done" "canceled" "returned" "courier" "assembled" "notAccepted" Filter by order status |
filter[stores] | Array of strings Filter by store ids |
filter[sources] | Array of strings Filter by source ids |
filter[sources] | Array of strings Items Enum: "discount" "markup" Filter by orders with discounts and\or markup |
filter[postedBy] | Array of strings Filter by user who closed the order |
filter[createdBy] | Array of strings Filter by user who created the order |
filter[items] | Array of strings Filter by items |
search | string Search by client name, order number, phone or card number |
filter[delivery] | boolean Filter by delivery |
filter[fiscalized] | boolean Filter by fiscalized |
filter[amount][min] | number <float> Order amount from |
filter[amount][max] | number <float> Order amount from |
filter[bonuses] | boolean Filter orders paid by bonuses |
filter[paymentMethods] | Array of strings Filter by order payments that paid by specified payment methods |
filter[onlyExternal] | boolean Select only external orders |
filter[externalSystem] | string Filter external orders by Synced System ID which belongs to |
filter[excludedSessions] | Array of integers Exclude external orders which created during specified sync sessions |
addMetaStatuses | boolean Include statuses statistic to response meta |
filter[postedAt][from] | string <date-time> Filter by postedAt (start date) |
filter[postedAt][to] | string <date-time> Filter by postedAt (end date) |
filter[paymentPostedAt][from] | string <date-time> Orders with payments which postedAt more than specified date |
filter[paymentPostedAt][to] | string <date-time> Orders with payments which postedAt less than specified date |
filter[docNo] | Array of strings Filter by document numbers |
filter[couriers] | Array of strings Filter by couriers |
filter[withoutCouriers] | boolean Default: false Filter by orders without couriers |
filter[florists] | Array of strings Filter by florists |
filter[withoutFlorists] | boolean Default: false Filter by orders without florists |
filter[shift] | string Filter by specific shift |
filter[fiscalShift] | string Filter by specific fiscal shift |
filter[withReturned] | boolean Default: false Include returned orders |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": "35073",
- "analytic_header": {
- "orders_count": "35073",
- "fullRevenue": "50616272.56",
- "returnedRevenue": "898619.65",
- "revenueBonuses": "0.00",
- "revenue": "49717652.91"
}
}, - "data": [
- {
- "type": "orders",
- "id": "0000019b-fd08-42d3-b544-26c2f94e4b53",
- "attributes": {
- "status": "done",
- "date": "2021-06-20",
- "docNo": "aaab21001001",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-20T12:44:45+00:00",
- "updatedAt": "2021-06-20T12:44:59+00:00",
- "updatedStatusAt": "2021-06-20T12:44:50+00:00",
- "modifiedAt": "2021-06-20T12:44:59+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-20T12:44:50+00:00",
- "cancelComment": null,
- "totalAmount": 100,
- "paymentsAmount": 100,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "63d88cf0-97d5-48cd-9e38-fafb181f0518"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0000019b-fd08-42d3-b544-26c2f94e4b53"
}
}, - {
- "type": "orders",
- "id": "00000f45-844e-4228-8453-d87869fbae0e",
- "attributes": {
- "status": "done",
- "date": "2021-12-30",
- "docNo": "aaaa21011322",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-30T13:10:09+00:00",
- "updatedAt": "2021-12-30T13:16:09+00:00",
- "updatedStatusAt": "2021-12-30T13:10:12+00:00",
- "modifiedAt": "2021-12-30T13:16:09+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-30T13:10:12+00:00",
- "cancelComment": null,
- "totalAmount": 1420,
- "paymentsAmount": 1420,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-30T13:10:18+00:00",
- "revision": 26364,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00000f45-844e-4228-8453-d87869fbae0e"
}
}, - {
- "type": "orders",
- "id": "00002fab-9357-4562-b007-a8d3f33cca36",
- "attributes": {
- "status": "done",
- "date": "2021-12-31",
- "docNo": "aaaa21011480",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-12-31T14:10:30+00:00",
- "updatedAt": "2021-12-31T14:10:41+00:00",
- "updatedStatusAt": "2021-12-31T14:10:32+00:00",
- "modifiedAt": "2021-12-31T14:10:41+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-12-31T14:10:32+00:00",
- "cancelComment": null,
- "totalAmount": 830,
- "paymentsAmount": 830,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-12-31T14:10:38+00:00",
- "revision": 28124,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00002fab-9357-4562-b007-a8d3f33cca36"
}
}, - {
- "type": "orders",
- "id": "0001a837-d671-4813-ad65-ae64e6eb78d1",
- "attributes": {
- "status": "done",
- "date": "2021-08-19",
- "docNo": "aaaa21004624",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-08-19T06:54:23+00:00",
- "updatedAt": "2021-08-19T06:54:30+00:00",
- "updatedStatusAt": "2021-08-19T06:54:24+00:00",
- "modifiedAt": "2021-08-19T06:54:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-08-19T06:54:24+00:00",
- "cancelComment": null,
- "totalAmount": 425,
- "paymentsAmount": 425,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2021-08-19T06:54:29+00:00",
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0001a837-d671-4813-ad65-ae64e6eb78d1"
}
}, - {
- "type": "orders",
- "id": "00030c83-4d36-4580-9e35-606dfe0c1b6e",
- "attributes": {
- "status": "done",
- "date": "2021-06-17",
- "docNo": "aaaa21001490",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-17T00:56:00+00:00",
- "updatedAt": "2021-06-17T01:00:31+00:00",
- "updatedStatusAt": "2021-06-17T00:56:02+00:00",
- "modifiedAt": "2021-06-17T01:00:31+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-17T00:56:02+00:00",
- "cancelComment": null,
- "totalAmount": 250,
- "paymentsAmount": 250,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00030c83-4d36-4580-9e35-606dfe0c1b6e"
}
}, - {
- "type": "orders",
- "id": "0005233e-9f36-40db-bc68-e29e1d64d8df",
- "attributes": {
- "status": "done",
- "date": "2021-06-02",
- "docNo": "aaaa21000833",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2021-06-02T10:06:20+00:00",
- "updatedAt": "2021-06-02T10:06:30+00:00",
- "updatedStatusAt": "2021-06-02T10:06:21+00:00",
- "modifiedAt": "2021-06-02T10:06:30+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2021-06-02T10:06:21+00:00",
- "cancelComment": null,
- "totalAmount": 2142,
- "paymentsAmount": 2142,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": null,
- "revision": 0,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005233e-9f36-40db-bc68-e29e1d64d8df"
}
}, - {
- "type": "orders",
- "id": "0005767d-7fc2-4180-85ce-e66fa482c9c6",
- "attributes": {
- "status": "done",
- "date": "2022-04-03",
- "docNo": "aaab21012158",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-03T06:23:36+00:00",
- "updatedAt": "2022-04-03T06:23:49+00:00",
- "updatedStatusAt": "2022-04-03T06:23:40+00:00",
- "modifiedAt": "2022-04-03T06:23:49+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-03T06:23:40+00:00",
- "cancelComment": null,
- "totalAmount": 2350,
- "paymentsAmount": 2350,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-03T06:23:47+00:00",
- "revision": 82056,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": {
- "type": "applications",
- "id": "6"
}
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/0005767d-7fc2-4180-85ce-e66fa482c9c6"
}
}, - {
- "type": "orders",
- "id": "000587ad-e7b3-48e4-8134-373b3567e7f9",
- "attributes": {
- "status": "done",
- "date": "2022-04-22",
- "docNo": "aaab21012787",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-04-22T07:02:46+00:00",
- "updatedAt": "2022-04-22T07:03:08+00:00",
- "updatedStatusAt": "2022-04-22T07:03:00+00:00",
- "modifiedAt": "2022-04-22T07:03:08+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-04-22T07:03:00+00:00",
- "cancelComment": null,
- "totalAmount": 200,
- "paymentsAmount": 200,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-04-22T07:03:06+00:00",
- "revision": 92510,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000587ad-e7b3-48e4-8134-373b3567e7f9"
}
}, - {
- "type": "orders",
- "id": "00091e5b-eba5-4f63-bd8e-c53f62e918ad",
- "attributes": {
- "status": "done",
- "date": "2022-02-19",
- "docNo": "aaab21010478",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-02-19T10:07:08+00:00",
- "updatedAt": "2022-02-19T10:07:20+00:00",
- "updatedStatusAt": "2022-02-19T10:07:11+00:00",
- "modifiedAt": "2022-02-19T10:07:20+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-02-19T10:07:11+00:00",
- "cancelComment": null,
- "totalAmount": 2980,
- "paymentsAmount": 2980,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-02-19T10:07:18+00:00",
- "revision": 56180,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/00091e5b-eba5-4f63-bd8e-c53f62e918ad"
}
}, - {
- "type": "orders",
- "id": "000dd5a9-bfd5-452d-9a3e-4c356d35bbb6",
- "attributes": {
- "status": "done",
- "date": "2022-03-19",
- "docNo": "aaaa21014989",
- "description": "",
- "budget": 0,
- "dueTime": null,
- "delivery": false,
- "deliveryComments": "",
- "deliveryCity": "",
- "deliveryStreet": "",
- "deliveryHouse": "",
- "deliveryApartment": "",
- "deliveryBuilding": "",
- "deliveryTimeFrom": null,
- "deliveryTimeTo": null,
- "deliveryContact": "",
- "deliveryPhoneNumber": "",
- "createdAt": "2022-03-19T02:43:17+00:00",
- "updatedAt": "2022-03-19T02:43:44+00:00",
- "updatedStatusAt": "2022-03-19T02:43:35+00:00",
- "modifiedAt": "2022-03-19T02:43:44+00:00",
- "fiscal": true,
- "fiscalized": true,
- "byBonuses": false,
- "posted": true,
- "postedAt": "2022-03-19T02:43:35+00:00",
- "cancelComment": null,
- "totalAmount": 50,
- "paymentsAmount": 50,
- "isExternal": false,
- "externalId": null,
- "deliveryStatus": null,
- "fiscalizedAt": "2022-03-19T02:43:41+00:00",
- "revision": 74610,
- "deliveryPhoneCode": ""
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}, - "store": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "customer": {
- "data": null
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "createdBy": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}, - "lockedBy": {
- "data": null
}, - "lockedAt": {
- "data": null
}, - "lockedAtSmartphone": {
- "data": null
}
}, - "links": {
- "self": "/orders/000dd5a9-bfd5-452d-9a3e-4c356d35bbb6"
}
}
]
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 3,
- "revision": 12
}, - "data": [
- {
- "type": "order-tags",
- "id": "49bb2521-a5e6-45d8-81d6-03b2a89606fb",
- "attributes": {
- "title": "Delivery",
- "deleted": false,
- "revision": 12
}, - "links": {
- "self": "/order-tags/49bb2521-a5e6-45d8-81d6-03b2a89606fb"
}
}, - {
- "type": "order-tags",
- "id": "eafdb4be-30af-49c4-9ae6-b9b88b3864a5",
- "attributes": {
- "title": "Big bouquet",
- "deleted": false,
- "revision": 11
}, - "links": {
- "self": "/order-tags/eafdb4be-30af-49c4-9ae6-b9b88b3864a5"
}
}, - {
- "type": "order-tags",
- "id": "f4674e54-1cd8-491d-a103-3c3037bada74",
- "attributes": {
- "title": "For mother",
- "deleted": false,
- "revision": 10
}, - "links": {
- "self": "/order-tags/f4674e54-1cd8-491d-a103-3c3037bada74"
}
}
]
}
Create order tag body
object |
{- "data": {
- "type": "order-tags",
- "id": "f4674e54-1cd8-491d-a103-3c3037bada74",
- "attributes": {
- "title": "For mother"
}
}
}
{- "data": {
- "type": "order-tags",
- "id": "f4674e54-1cd8-491d-a103-3c3037bada74",
- "attributes": {
- "title": "For mother",
- "deleted": false,
- "revision": 9
}, - "links": {
- "self": "/order-tags/f4674e54-1cd8-491d-a103-3c3037bada74"
}
}
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 3,
- "revision": 3
}, - "data": [
- {
- "type": "discount-reasons",
- "id": "40a2a17c-49fa-4604-a7d4-90552702267d",
- "attributes": {
- "title": "Birtday",
- "discountType": "discount",
- "deleted": false,
- "revision": 1
}, - "links": {
- "self": "/discount-reasons/40a2a17c-49fa-4604-a7d4-90552702267d"
}
}, - {
- "type": "discount-reasons",
- "id": "e22846fc-17f5-4c36-9da8-77ea88d2f7f2",
- "attributes": {
- "title": "March 8th",
- "discountType": "markup",
- "deleted": false,
- "revision": 3
}, - "links": {
- "self": "/discount-reasons/e22846fc-17f5-4c36-9da8-77ea88d2f7f2"
}
}, - {
- "type": "discount-reasons",
- "id": "c62b4bc4-af26-42dc-a688-ab560f5b6cdf",
- "attributes": {
- "title": "Shop birthday",
- "discountType": "discount",
- "deleted": false,
- "revision": 2
}, - "links": {
- "self": "/discount-reasons/c62b4bc4-af26-42dc-a688-ab560f5b6cdf"
}
}
]
}
Create discount reason body
object |
{- "data": {
- "type": "discount-reasons",
- "id": "40a2a17c-49fa-4604-a7d4-90552702267d",
- "attributes": {
- "title": "Birtday",
- "discountType": "discount"
}
}
}
{- "data": {
- "type": "discount-reasons",
- "id": "40a2a17c-49fa-4604-a7d4-90552702267d",
- "attributes": {
- "title": "Birtday",
- "discountType": "discount",
- "deleted": false,
- "revision": 1
}, - "links": {
- "self": "/discount-reasons/40a2a17c-49fa-4604-a7d4-90552702267d"
}
}
}
Delete discount reason body
Array of objects |
{- "data": [
- {
- "id": "c62b4bc4-af26-42dc-a688-ab560f5b6cdf",
- "type": "discount-reasons"
}
]
}
{ }
id required | integer Discount reason ID |
{- "data": {
- "type": "discount-reasons",
- "id": "40a2a17c-49fa-4604-a7d4-90552702267d",
- "attributes": {
- "title": "Birtday",
- "discountType": "discount",
- "deleted": false,
- "revision": 1
}, - "links": {
- "self": "/discount-reasons/40a2a17c-49fa-4604-a7d4-90552702267d"
}
}
}
id required | integer Discount reason ID |
Update discount reason body
object |
{- "data": {
- "type": "discount-reasons",
- "id": "40a2a17c-49fa-4604-a7d4-90552702267d",
- "attributes": {
- "title": "May 1th holiday",
- "discountType": "discount",
- "deleted": false
}
}
}
{- "data": {
- "type": "discount-reasons",
- "id": "40a2a17c-49fa-4604-a7d4-90552702267d",
- "attributes": {
- "title": "May 1th holiday",
- "discountType": "discount",
- "deleted": false,
- "revision": 7
}, - "links": {
- "self": "/discount-reasons/40a2a17c-49fa-4604-a7d4-90552702267d"
}
}
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 3,
- "revision": 2
}, - "data": [
- {
- "type": "cash-reasons",
- "id": "71ebbf04-ef13-4c7e-b45e-69d856e43fa9",
- "attributes": {
- "title": "Encashment",
- "status": "on",
- "typeReason": "withdraw",
- "revision": 1
}, - "links": {
- "self": "/cash-reasons/71ebbf04-ef13-4c7e-b45e-69d856e43fa9"
}
}, - {
- "type": "cash-reasons",
- "id": "502a15d1-7967-4fa8-88fd-457a971cbb67",
- "attributes": {
- "title": "Other",
- "status": "on",
- "typeReason": "deposit",
- "revision": 0
}, - "links": {
- "self": "/cash-reasons/502a15d1-7967-4fa8-88fd-457a971cbb67"
}
}, - {
- "type": "cash-reasons",
- "id": "781d7ebb-58b5-442a-8797-64027756a2cb",
- "attributes": {
- "title": "Other",
- "status": "on",
- "typeReason": "withdraw",
- "revision": 0
}, - "links": {
- "self": "/cash-reasons/781d7ebb-58b5-442a-8797-64027756a2cb"
}
}
]
}
Create cash reason body
object |
{- "data": {
- "type": "cash-reasons",
- "attributes": {
- "title": "Encashment",
- "typeReason": "withdraw"
}
}
}
{- "data": {
- "type": "cash-reasons",
- "id": "71ebbf04-ef13-4c7e-b45e-69d856e43fa9",
- "attributes": {
- "title": "Encashment",
- "status": "on",
- "typeReason": "withdraw",
- "revision": 1
}, - "links": {
- "self": "/cash-reasons/71ebbf04-ef13-4c7e-b45e-69d856e43fa9"
}
}
}
{- "data": {
- "type": "cash-reasons",
- "id": "47ae6c37-c2d3-447b-9151-c18015552e7a",
- "attributes": {
- "title": "Manual deposit",
- "status": "on",
- "typeReason": "deposit",
- "revision": 3
}, - "links": {
- "self": "/cash-reasons/47ae6c37-c2d3-447b-9151-c18015552e7a"
}
}
}
id required | string Cash reason ID |
Update cash reason body
object |
{- "data": {
- "type": "cash-reasons",
- "id": "47ae6c37-c2d3-447b-9151-c18015552e7a",
- "attributes": {
- "title": "Manual deposit"
}
}
}
{- "data": {
- "type": "cash-reasons",
- "id": "47ae6c37-c2d3-447b-9151-c18015552e7a",
- "attributes": {
- "title": "Manual deposit",
- "status": "on",
- "typeReason": "deposit",
- "revision": 3
}, - "links": {
- "self": "/cash-reasons/47ae6c37-c2d3-447b-9151-c18015552e7a"
}
}
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 3,
- "revision": 0
}, - "data": [
- {
- "type": "order-sources",
- "id": "f128f295-5f2a-41b5-b63d-e6e1d6dbd4d5",
- "attributes": {
- "title": "Site",
- "hidden": false,
- "revision": 0
}
}, - {
- "type": "order-sources",
- "id": "fbd7aeac-ea2b-4fbe-8e5a-664d46fdab4b",
- "attributes": {
- "title": "Telephone",
- "hidden": false,
- "revision": 0
}
}, - {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c",
- "attributes": {
- "title": "Terminal",
- "hidden": false,
- "revision": 0
}
}
]
}
Create order source body
Array of objects |
{- "data": [
- {
- "type": "order-sources",
- "id": "8ff96cb7-0af1-4bc9-a83e-3ab919d3d3ee",
- "attributes": {
- "title": "Instagram"
}
}
]
}
{- "data": [
- {
- "type": "order-sources",
- "id": "8ff96cb7-0af1-4bc9-a83e-3ab919d3d3ee",
- "attributes": {
- "title": "Instagram",
- "hidden": false,
- "revision": 1
}
}
]
}
Update order source body
Array of objects |
{- "data": [
- {
- "type": "order-sources",
- "id": "8ff96cb7-0af1-4bc9-a83e-3ab919d3d3ee",
- "attributes": {
- "title": "TikTok"
}
}
]
}
{- "data": [
- {
- "type": "order-sources",
- "id": "8ff96cb7-0af1-4bc9-a83e-3ab919d3d3ee",
- "attributes": {
- "title": "TikTok",
- "hidden": false,
- "revision": 2
}
}
]
}
Delete order source body
Array of objects |
{- "data": [
- {
- "id": "8ff96cb7-0af1-4bc9-a83e-3ab919d3d3ee",
- "type": "order-sources"
}
]
}
{ }
{- "data": {
- "type": "order-sources",
- "id": "8ff96cb7-0af1-4bc9-a83e-3ab919d3d3ee",
- "attributes": {
- "title": "Instagram",
- "hidden": false,
- "revision": 1
}
}
}
{- "meta": {
- "pageNumber": 1,
- "pageSize": 10,
- "total": 2,
- "revision": 5
}, - "data": [
- {
- "type": "bonus-groups",
- "id": "57",
- "attributes": {
- "title": "Bonus-group-10-percent",
- "bonusRate": 10,
- "limit": 10,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 200,
- "private": false,
- "status": "off",
- "updatedAt": "2022-07-25T13:06:36+00:00",
- "activateOnEntry": false,
- "revision": 1
}, - "links": {
- "self": "/bonus-groups/57"
}
}, - {
- "type": "bonus-groups",
- "id": "58",
- "attributes": {
- "title": "bonus-group-15",
- "bonusRate": 20,
- "limit": 15,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 250,
- "private": false,
- "status": "on",
- "updatedAt": "2022-07-25T13:52:44+00:00",
- "activateOnEntry": false,
- "revision": 5
}, - "links": {
- "self": "/bonus-groups/58"
}
}
]
}
Create bonus group body
object |
{- "data": {
- "type": "bonus-groups",
- "attributes": {
- "title": "bonus-group-15",
- "bonusRate": 15,
- "limit": 15,
- "entryAmount": 250,
- "private": false,
- "status": "off",
- "validFrom": null,
- "validTo": null
}
}
}
{- "data": {
- "type": "bonus-groups",
- "id": "58",
- "attributes": {
- "title": "bonus-group-15",
- "bonusRate": 15,
- "limit": 15,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 250,
- "private": false,
- "status": "off",
- "updatedAt": "2022-07-25T13:31:25+00:00",
- "activateOnEntry": false,
- "revision": 2
}, - "links": {
- "self": "/bonus-groups/58"
}
}
}
Delete bonus groups body
Array of objects |
{- "data": [
- {
- "id": "57",
- "type": "bonus-groups"
}
]
}
{ }
{- "data": {
- "type": "bonus-groups",
- "id": "57",
- "attributes": {
- "title": "Bonus-group-10-percent",
- "bonusRate": 10,
- "limit": 10,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 200,
- "private": false,
- "status": "off",
- "updatedAt": "2022-07-25T13:06:36+00:00",
- "activateOnEntry": false,
- "revision": 1
}, - "links": {
- "self": "/bonus-groups/57"
}
}
}
id required | integer Bonus group ID |
Update cash reason body
object |
{- "data": {
- "type": "bonus-groups",
- "id": "58",
- "attributes": {
- "bonusRate": 20,
- "validFrom": null,
- "validTo": null
}
}
}
{- "data": {
- "type": "bonus-groups",
- "id": "58",
- "attributes": {
- "title": "bonus-group-15",
- "bonusRate": 20,
- "limit": 15,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 250,
- "private": false,
- "status": "on",
- "updatedAt": "2022-07-25T13:52:41+00:00",
- "activateOnEntry": false,
- "revision": 4
}, - "relationships": {
- "rules": {
- "data": [ ]
}
}, - "links": {
- "self": "/bonus-groups/58"
}
}
}
{- "meta": {
- "page": {
- "number": 1,
- "size": null
}, - "total": 5
}, - "data": [
- {
- "type": "bonus-group-changes-history",
- "id": "1",
- "attributes": {
- "createdAt": "2022-07-25T13:06:36+00:00",
- "operationType": "create",
- "field": null,
- "oldValue": null,
- "newValue": null
}, - "links": {
- "self": "/bonus-group-changes-history/1"
}
}, - {
- "type": "bonus-group-changes-history",
- "id": "2",
- "attributes": {
- "createdAt": "2022-07-25T13:31:25+00:00",
- "operationType": "create",
- "field": null,
- "oldValue": null,
- "newValue": null
}, - "links": {
- "self": "/bonus-group-changes-history/2"
}
}, - {
- "type": "bonus-group-changes-history",
- "id": "3",
- "attributes": {
- "createdAt": "2022-07-25T13:31:28+00:00",
- "operationType": "update",
- "field": "status",
- "oldValue": "Not active",
- "newValue": "Active"
}, - "links": {
- "self": "/bonus-group-changes-history/3"
}
}, - {
- "type": "bonus-group-changes-history",
- "id": "4",
- "attributes": {
- "createdAt": "2022-07-25T13:52:41+00:00",
- "operationType": "update",
- "field": "bonus_rate",
- "oldValue": "15",
- "newValue": "20"
}, - "links": {
- "self": "/bonus-group-changes-history/4"
}
}, - {
- "type": "bonus-group-changes-history",
- "id": "5",
- "attributes": {
- "createdAt": "2022-07-25T13:06:36+00:00",
- "operationType": "delete",
- "field": null,
- "oldValue": null,
- "newValue": null
}, - "links": {
- "self": "/bonus-group-changes-history/5"
}
}
]
}
{- "meta": {
- "pageNumber": 1,
- "pageSize": 10,
- "total": 1,
- "revision": 7
}, - "data": [
- {
- "type": "discount-groups",
- "id": "1",
- "attributes": {
- "title": "discount-2022",
- "discount": 15,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 200,
- "private": false,
- "status": "off",
- "updatedAt": "2022-07-25T14:30:38+00:00",
- "revision": 7,
- "createdAt": "2022-07-25T14:14:39+00:00"
}, - "links": {
- "self": "/discount-groups/1"
}
}
]
}
Create discount group body
object |
{- "data": {
- "type": "discount-groups",
- "attributes": {
- "title": "discount-15",
- "discount": 15,
- "entryAmount": 200,
- "private": false,
- "status": "off",
- "validFrom": null,
- "validTo": null
}
}
}
{- "data": {
- "type": "discount-groups",
- "id": "1",
- "attributes": {
- "title": "discount-15",
- "discount": 15,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 200,
- "private": false,
- "status": "off",
- "updatedAt": "2022-07-25T14:14:39+00:00",
- "revision": 1,
- "createdAt": "2022-07-25T14:14:39+00:00"
}, - "relationships": {
- "rules": {
- "data": [ ]
}
}, - "links": {
- "self": "/discount-groups/1"
}
}
}
Delete discount groups body
Array of objects |
{- "data": [
- {
- "id": "1",
- "type": "discount-groups"
}
]
}
{ }
id required | integer Discount group ID |
{- "data": {
- "type": "discount-groups",
- "id": "1",
- "attributes": {
- "title": "discount-2022",
- "discount": 15,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 200,
- "private": false,
- "status": "off",
- "updatedAt": "2022-07-25T14:30:38+00:00",
- "revision": 7,
- "createdAt": "2022-07-25T14:14:39+00:00"
}, - "links": {
- "self": "/discount-groups/1"
}
}
}
id required | integer Discount group ID |
Update discount group body
object |
{- "data": {
- "type": "discount-groups",
- "id": "1",
- "attributes": {
- "title": "discount-2022",
- "validFrom": null,
- "validTo": null
}
}
}
{- "data": {
- "type": "discount-groups",
- "id": "1",
- "attributes": {
- "title": "discount-2022",
- "discount": 15,
- "validFrom": null,
- "validTo": null,
- "entryAmount": 200,
- "private": false,
- "status": "off",
- "updatedAt": "2022-07-25T14:30:38+00:00",
- "revision": 7,
- "createdAt": "2022-07-25T14:14:39+00:00"
}, - "relationships": {
- "rules": {
- "data": [ ]
}
}, - "links": {
- "self": "/discount-groups/1"
}
}
}
filter[stores] | Array of strings Filter by stores id. |
search | string Parameter search on person first name, last name, middle or position title. |
dismissed | boolean Default: false Return dismissed workers |
filter[users] | Array of strings Filter by users ids |
activeOnly | boolean Default: false Filter by only active workers |
revision | integer <int32> Filter by workers revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 3,
- "revision": 32
}, - "data": [
- {
- "type": "workers",
- "id": "72fe3c90-7f88-42eb-bb71-45ba35e37394",
- "attributes": {
- "firstName": "Bob",
- "lastName": "Ross",
- "middleName": null,
- "countryCode": 7,
- "phone": null,
- "email": null,
- "salary": 0,
- "salaryPeriod": "month",
- "validPhone": false,
- "revision": 0
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "944ba6f7-51e6-4235-bf35-a3e8dd81e135"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9"
}
}, - "stores": {
- "data": [ ]
}
}, - "links": {
- "self": "/workers/72fe3c90-7f88-42eb-bb71-45ba35e37394"
}
}, - {
- "type": "workers",
- "id": "c1ab063a-d5b3-4352-876d-e0fdfd1a68d3",
- "attributes": {
- "firstName": "Herman",
- "lastName": "Li",
- "middleName": null,
- "countryCode": 7,
- "phone": "9286264563",
- "email": null,
- "salary": 0,
- "salaryPeriod": "month",
- "validPhone": true,
- "revision": 6
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "cbbea636-f214-460c-b22b-a9b6a285ffbf"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9"
}
}, - "stores": {
- "data": [
- {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
]
}
}, - "links": {
- "self": "/workers/c1ab063a-d5b3-4352-876d-e0fdfd1a68d3"
}
}, - {
- "type": "workers",
- "id": "6c677e14-5ac4-4e84-ac5a-878a53fd40c7",
- "attributes": {
- "firstName": "Jackie",
- "lastName": "Chan",
- "middleName": "",
- "countryCode": 7,
- "phone": "9286264563",
- "email": "herman-li@gmail.com",
- "salary": 12345,
- "salaryPeriod": "month",
- "validPhone": true,
- "revision": 32
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "4ea3c809-4168-4b0d-9d15-b33163012e9b"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9"
}
}, - "stores": {
- "data": [
- {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
]
}
}, - "links": {
- "self": "/workers/6c677e14-5ac4-4e84-ac5a-878a53fd40c7"
}
}
]
}
Create worker request
object Worker |
{- "data": {
- "type": "workers",
- "id": "5cd19c9b-6398-4440-96b7-39ddf518b8af",
- "attributes": {
- "firstName": "Conners",
- "lastName": "Douglas",
- "email": "jerald_corw@hotmail.com",
- "phone": "3087488725",
- "countryCode": "1",
- "salary": 30000,
- "salaryPeriod": "month"
}, - "relationships": {
- "position": {
- "data": {
- "id": "80c990f8-b1e3-43c9-b94e-742eedf185c2",
- "type": "positions"
}
}, - "stores": {
- "data": [
- {
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf",
- "type": "stores"
}
]
}, - "user": {
- "data": {
- "type": "users",
- "id": "1a04661a-a639-493f-a0fb-3c6157d2e570",
- "attributes": {
- "login": "Conners",
- "password": "123456789"
}, - "relationships": {
- "roles": {
- "data": [
- {
- "id": "7",
- "type": "roles"
}
]
}
}
}
}
}
}
}
{- "data": {
- "type": "workers",
- "id": "5cd19c9b-6398-4440-96b7-39ddf518b8af",
- "attributes": {
- "firstName": "Conners",
- "lastName": "Douglas",
- "middleName": null,
- "countryCode": 1,
- "phone": "3087488725",
- "email": "jerald_corw@hotmail.com",
- "salary": 30000,
- "salaryPeriod": "month",
- "validPhone": true,
- "revision": 33
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "1a04661a-a639-493f-a0fb-3c6157d2e570"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "80c990f8-b1e3-43c9-b94e-742eedf185c2"
}
}, - "stores": {
- "data": [
- {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
]
}
}, - "links": {
- "self": "/workers/5cd19c9b-6398-4440-96b7-39ddf518b8af"
}
}
}
Update worker status request
object |
{- "data": [
- {
- "type": "workers",
- "id": "5cd19c9b-6398-4440-96b7-39ddf518b8af",
- "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "1a04661a-a639-493f-a0fb-3c6157d2e570",
- "attributes": {
- "status": "off"
}
}
}
}
}
]
}
{- "data": [
- {
- "type": "workers",
- "id": "5cd19c9b-6398-4440-96b7-39ddf518b8af",
- "attributes": {
- "firstName": "Conners",
- "lastName": "Douglas",
- "middleName": null,
- "countryCode": 1,
- "phone": "3087488725",
- "email": "jerald_corw@hotmail.com",
- "salary": 30000,
- "salaryPeriod": "month",
- "validPhone": true,
- "revision": 37
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "1a04661a-a639-493f-a0fb-3c6157d2e570"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "80c990f8-b1e3-43c9-b94e-742eedf185c2"
}
}
}, - "links": {
- "self": "/workers/5cd19c9b-6398-4440-96b7-39ddf518b8af"
}
}
]
}
Delete workers request
Array of objects |
{- "data": [
- {
- "id": "5cd19c9b-6398-4440-96b7-39ddf518b8af",
- "type": "workers"
}
]
}
{ }
{- "data": {
- "type": "workers",
- "id": "72fe3c90-7f88-42eb-bb71-45ba35e37394",
- "attributes": {
- "firstName": "Bob",
- "lastName": "Ross",
- "middleName": null,
- "countryCode": 7,
- "phone": null,
- "email": null,
- "salary": 0,
- "salaryPeriod": "month",
- "validPhone": false,
- "revision": 0
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "944ba6f7-51e6-4235-bf35-a3e8dd81e135"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "e7cfad9c-333d-43fa-85ca-1950050304d9"
}
}
}, - "links": {
- "self": "/workers/72fe3c90-7f88-42eb-bb71-45ba35e37394"
}
}
}
id required | string Worker ID |
Update worker request
object Worker |
{- "data": {
- "type": "workers",
- "id": "5cd19c9b-6398-4440-96b7-39ddf518b8af",
- "attributes": {
- "email": "jerald_corw@gmail.com",
- "countryCode": "1",
- "salary": 35000
}, - "relationships": {
- "position": {
- "data": {
- "id": "80c990f8-b1e3-43c9-b94e-742eedf185c2",
- "type": "positions"
}
}, - "stores": {
- "data": [
- {
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf",
- "type": "stores"
}
]
}, - "user": {
- "data": {
- "type": "users",
- "id": "1a04661a-a639-493f-a0fb-3c6157d2e570",
- "relationships": {
- "roles": {
- "data": [
- {
- "id": "7",
- "type": "roles"
}
]
}
}
}
}
}
}
}
{- "data": {
- "type": "workers",
- "id": "5cd19c9b-6398-4440-96b7-39ddf518b8af",
- "attributes": {
- "firstName": "Conners",
- "lastName": "Douglas",
- "middleName": null,
- "countryCode": 1,
- "phone": "3087488725",
- "email": "jerald_corw@gmail.com",
- "salary": 35000,
- "salaryPeriod": "month",
- "validPhone": true,
- "revision": 39
}, - "relationships": {
- "user": {
- "data": {
- "type": "users",
- "id": "1a04661a-a639-493f-a0fb-3c6157d2e570"
}
}, - "position": {
- "data": {
- "type": "positions",
- "id": "80c990f8-b1e3-43c9-b94e-742eedf185c2"
}
}, - "stores": {
- "data": [
- {
- "type": "stores",
- "id": "af32a044-3ae6-40bb-9ffc-d9f609ee39bf"
}
]
}
}, - "links": {
- "self": "/workers/5cd19c9b-6398-4440-96b7-39ddf518b8af"
}
}
}
filter[startDate] | string Start date for filter by act date |
filter[endDate] | string End date for filter by act date |
filter[from] | string Filter by "from" store |
filter[to] | string Filter by "to" store |
{- "meta": {
- "page": {
- "number": 1,
- "size": 10
}, - "total": 11
}, - "data": [
- {
- "type": "movement-acts",
- "id": "881",
- "attributes": {
- "docNo": "bd-000000881",
- "date": "2022-07-11",
- "amount": 1021.32,
- "linesCount": 1,
- "createdAt": "2022-07-11T05:04:01+00:00",
- "posted": true,
- "postedAt": "2022-07-11T05:04:20+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/881"
}
}, - {
- "type": "movement-acts",
- "id": "876",
- "attributes": {
- "docNo": "ef-000000876",
- "date": "2022-07-07",
- "amount": 2134.22,
- "linesCount": 1,
- "createdAt": "2022-07-07T07:58:01+00:00",
- "posted": true,
- "postedAt": "2022-07-07T08:00:05+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/876"
}
}, - {
- "type": "movement-acts",
- "id": "871",
- "attributes": {
- "docNo": "ad-000000871",
- "date": "2022-07-07",
- "amount": 4661.39,
- "linesCount": 3,
- "createdAt": "2022-07-07T06:05:39+00:00",
- "posted": true,
- "postedAt": "2022-07-07T06:07:52+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/871"
}
}, - {
- "type": "movement-acts",
- "id": "866",
- "attributes": {
- "docNo": "be-000000866",
- "date": "2022-07-06",
- "amount": 925,
- "linesCount": 1,
- "createdAt": "2022-07-06T11:23:23+00:00",
- "posted": true,
- "postedAt": "2022-07-06T11:23:36+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/866"
}
}, - {
- "type": "movement-acts",
- "id": "861",
- "attributes": {
- "docNo": "ef-000000861",
- "date": "2022-07-05",
- "amount": 904.6,
- "linesCount": 1,
- "createdAt": "2022-07-05T04:49:49+00:00",
- "posted": true,
- "postedAt": "2022-07-05T04:52:57+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/861"
}
}, - {
- "type": "movement-acts",
- "id": "856",
- "attributes": {
- "docNo": "fe-000000856",
- "date": "2022-07-05",
- "amount": 2579.1,
- "linesCount": 1,
- "createdAt": "2022-07-05T04:47:15+00:00",
- "posted": true,
- "postedAt": "2022-07-05T04:47:39+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/856"
}
}, - {
- "type": "movement-acts",
- "id": "851",
- "attributes": {
- "docNo": "ce-000000851",
- "date": "2022-06-29",
- "amount": 2688.52,
- "linesCount": 3,
- "createdAt": "2022-06-29T03:08:13+00:00",
- "posted": true,
- "postedAt": "2022-06-29T03:09:48+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/851"
}
}, - {
- "type": "movement-acts",
- "id": "846",
- "attributes": {
- "docNo": "ed-000000846",
- "date": "2022-06-28",
- "amount": 1302.29,
- "linesCount": 2,
- "createdAt": "2022-06-28T10:47:59+00:00",
- "posted": true,
- "postedAt": "2022-06-28T10:48:58+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/846"
}
}, - {
- "type": "movement-acts",
- "id": "841",
- "attributes": {
- "docNo": "eb-000000841",
- "date": "2022-06-28",
- "amount": 6236.65,
- "linesCount": 2,
- "createdAt": "2022-06-28T10:45:13+00:00",
- "posted": true,
- "postedAt": "2022-06-28T10:45:47+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/841"
}
}, - {
- "type": "movement-acts",
- "id": "836",
- "attributes": {
- "docNo": "eb-000000836",
- "date": "2022-06-27",
- "amount": 436.66,
- "linesCount": 1,
- "createdAt": "2022-06-27T05:30:25+00:00",
- "posted": true,
- "postedAt": "2022-06-27T05:30:38+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "380815bc-d8e8-46a3-a795-f475942a9eee"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}
}, - "links": {
- "self": "/movement-acts/836"
}
}
]
}
Create movement act
object |
{- "data": {
- "type": "movement-acts",
- "attributes": {
- "posted": false,
- "linesCount": 0
}, - "relationships": {
- "createdBy": {
- "data": null
}, - "from": {
- "data": {
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c",
- "type": "stores"
}
}, - "to": {
- "data": {
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d",
- "type": "stores"
}
}
}
}
}
{- "data": {
- "type": "movement-acts",
- "id": "886",
- "attributes": {
- "docNo": "fd-000000886",
- "date": "2022-07-26",
- "amount": 0,
- "linesCount": 0,
- "createdAt": "2022-07-26T11:49:28+00:00",
- "posted": false,
- "postedAt": null,
- "calculated": false,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "postedBy": {
- "data": null
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "lines": {
- "data": [ ]
}
}, - "links": {
- "self": "/movement-acts/886"
}
}
}
{- "data": {
- "type": "movement-acts",
- "id": "886",
- "attributes": {
- "docNo": "fd-000001886",
- "date": "2022-07-26",
- "amount": 1327.05,
- "linesCount": 3,
- "createdAt": "2022-07-26T11:49:28+00:00",
- "posted": true,
- "postedAt": "2022-07-26T12:55:58+00:00",
- "calculated": true,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "postedBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "lines": {
- "data": [
- {
- "type": "movement-act-lines",
- "id": "2417"
}, - {
- "type": "movement-act-lines",
- "id": "2418"
}, - {
- "type": "movement-act-lines",
- "id": "2419"
}
]
}
}, - "links": {
- "self": "/movement-acts/886"
}
}
}
id required | string Movement act ID |
Update movement act
object |
{- "data": {
- "type": "movement-acts",
- "id": "886",
- "attributes": {
- "date": "2022-07-26",
- "postedAt": null,
- "amount": null,
- "linesCount": 4
}, - "relationships": {
- "lines": {
- "data": [
- {
- "id": "2416",
- "type": "movement-act-lines"
}, - {
- "id": "2417",
- "type": "movement-act-lines"
}, - {
- "id": "2418",
- "type": "movement-act-lines"
}, - {
- "type": "movement-act-lines",
- "attributes": {
- "qty": 1,
- "price": 300,
- "priceEnabled": true
}, - "relationships": {
- "item": {
- "data": {
- "id": "05034a16-1c36-4ff2-af73-8b3d264d2bc5",
- "type": "inventory-items"
}
}
}
}
]
}
}
}
}
{- "data": {
- "type": "movement-acts",
- "id": "886",
- "attributes": {
- "docNo": "fd-000001886",
- "date": "2022-07-26",
- "amount": 0,
- "linesCount": 4,
- "createdAt": "2022-07-26T11:49:28+00:00",
- "posted": false,
- "postedAt": null,
- "calculated": false,
- "status": "ok"
}, - "relationships": {
- "createdBy": {
- "data": {
- "type": "workers",
- "id": "003eb8f3-6701-42b7-91e4-e9e76a186054"
}
}, - "postedBy": {
- "data": null
}, - "from": {
- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
}
}, - "to": {
- "data": {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d"
}
}, - "lines": {
- "data": [
- {
- "type": "movement-act-lines",
- "id": "2416"
}, - {
- "type": "movement-act-lines",
- "id": "2417"
}, - {
- "type": "movement-act-lines",
- "id": "2418"
}, - {
- "type": "movement-act-lines",
- "id": "2419"
}
]
}
}, - "links": {
- "self": "/movement-acts/886"
}
}
}
{- "meta": {
- "page": {
- "number": 1,
- "size": null
}, - "total": 11
}, - "data": [
- {
- "type": "report-types",
- "id": "4",
- "attributes": {
- "typeName": "IncomeVendors",
- "title": "Income Vendors",
- "description": "Goods receipts by supplier",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/4"
}
}, - {
- "type": "report-types",
- "id": "8",
- "attributes": {
- "typeName": "CashWithdraw",
- "title": "Cash Withdraw",
- "description": "Withdrawals statistics with reasons",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/8"
}
}, - {
- "type": "report-types",
- "id": "9",
- "attributes": {
- "typeName": "Sales",
- "title": "Sales",
- "description": "Detailed information on the sale of goods: quantity, profit and more",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/9"
}
}, - {
- "type": "report-types",
- "id": "10",
- "attributes": {
- "typeName": "WarehouseMovements",
- "title": "Warehouse Movements",
- "description": "The history of the movement of goods. Retail price is taken at the end of the period",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/10"
}
}, - {
- "type": "report-types",
- "id": "11",
- "attributes": {
- "typeName": "OrdersDelivery",
- "title": "Orders Delivery",
- "description": "Orders placed for delivery",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/11"
}
}, - {
- "type": "report-types",
- "id": "12",
- "attributes": {
- "typeName": "WrittenOffItems",
- "title": "Written Off Items",
- "description": "Details on the write-off of goods: amounts, quantity, reasons",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/12"
}
}, - {
- "type": "report-types",
- "id": "13",
- "attributes": {
- "typeName": "PreorderItems",
- "title": "Preorder Items",
- "description": "Items added to future orders",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/13"
}
}, - {
- "type": "report-types",
- "id": "14",
- "attributes": {
- "typeName": "Preorders",
- "title": "Preorders",
- "description": "Shows orders to be filled in the future",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/14"
}
}, - {
- "type": "report-types",
- "id": "15",
- "attributes": {
- "typeName": "FloristsResults",
- "title": "Florists Results",
- "description": "Employee performance indicators for analysis and payroll. The values in the columns with the amounts of orders and bouquets include bonuses payments, so the total data for the period in this report may differ upward compared to the indicator \"Revenue from shipping\" in the point of sale card",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/15"
}
}, - {
- "type": "report-types",
- "id": "16",
- "attributes": {
- "typeName": "Payments",
- "title": "Payments",
- "description": "Detailed information on order payments",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/16"
}
}, - {
- "type": "report-types",
- "id": "21",
- "attributes": {
- "typeName": "OrdersDiscount",
- "title": "Orders Discount",
- "description": "Discounts and surcharges applied to orders",
- "active": true,
- "color": null
}, - "links": {
- "self": "/report-types/21"
}
}
]
}
{- "data": {
- "type": "report-types",
- "id": "61",
- "attributes": {
- "typeName": "SalesByEmployees",
- "title": "Sales By Employees",
- "description": "Sales statistics by employee",
- "active": false,
- "color": null
}, - "links": {
- "self": "/report-types/61"
}
}
}
{- "meta": {
- "page": {
- "number": 1,
- "size": 3
}, - "total": 3
}, - "data": [
- {
- "type": "reports",
- "id": "1082",
- "attributes": {
- "title": "Sales",
- "status": "active",
- "stage": "prepared",
- "frequency": "onetime",
- "format": "xlsx",
- "requestDate": "2022-07-20T10:05:29+00:00",
- "period": "custom",
- "periodStart": "2022-06-01",
- "periodStop": "2022-06-15",
- "processDate": "2022-07-20T00:00:00+00:00",
- "email": null,
- "downloadable": true
}, - "relationships": {
- "reportType": {
- "data": {
- "type": "report-types",
- "id": "9"
}
}
}, - "links": {
- "self": "/reports/1082"
}
}, - {
- "type": "reports",
- "id": "1083",
- "attributes": {
- "title": "Warehouse movements",
- "status": "active",
- "stage": "prepared",
- "frequency": "onetime",
- "format": "xlsx",
- "requestDate": "2022-07-20T10:07:30+00:00",
- "period": "custom",
- "periodStart": "2022-06-01",
- "periodStop": "2022-06-15",
- "processDate": "2022-07-20T00:00:00+00:00",
- "email": null,
- "downloadable": true
}, - "relationships": {
- "reportType": {
- "data": {
- "type": "report-types",
- "id": "9"
}
}
}, - "links": {
- "self": "/reports/1083"
}
}, - {
- "type": "reports",
- "id": "1084",
- "attributes": {
- "title": "Orders Discount",
- "status": "active",
- "stage": "prepared",
- "frequency": "onetime",
- "format": "pdf",
- "requestDate": "2022-07-20T10:07:54+00:00",
- "period": "custom",
- "periodStart": "2022-06-01",
- "periodStop": "2022-06-15",
- "processDate": "2022-07-20T00:00:00+00:00",
- "email": null,
- "downloadable": true
}, - "relationships": {
- "reportType": {
- "data": {
- "type": "report-types",
- "id": "9"
}
}
}, - "links": {
- "self": "/reports/1084"
}
}
]
}
Create report body
object |
{- "data": {
- "type": "reports",
- "attributes": {
- "title": "Sales",
- "periodStart": "2022-07-24",
- "periodStop": "2022-07-30",
- "format": "xlsx"
}, - "relationships": {
- "filters": {
- "data": [
- {
- "type": "report-filters",
- "attributes": {
- "values": [
- "3258d1db-fb18-4bcb-b2e0-65ce92514e7c"
]
}, - "relationships": {
- "filterType": {
- "data": {
- "id": "Sales-store",
- "type": "report-filter-types"
}
}
}
}, - {
- "type": "report-filters",
- "attributes": {
- "values": [
- "5a7365cb-2190-4bc1-afcc-c9c52031a708"
]
}, - "relationships": {
- "filterType": {
- "data": {
- "id": "Sales-category",
- "type": "report-filter-types"
}
}
}
}, - {
- "type": "report-filters",
- "attributes": {
- "values": [
- "0299953b-abb0-4a09-bb57-763400ab8ffb"
]
}, - "relationships": {
- "filterType": {
- "data": {
- "id": "Sales-item",
- "type": "report-filter-types"
}
}
}
}, - {
- "type": "report-filters",
- "attributes": {
- "values": [
- "f128f295-5f2a-41b5-b63d-e6e1d6dbd4d5"
]
}, - "relationships": {
- "filterType": {
- "data": {
- "id": "Sales-order_source",
- "type": "report-filter-types"
}
}
}
}
]
}, - "detailing": {
- "data": [
- {
- "id": "Sales-category",
- "type": "report-detailing"
}, - {
- "id": "Sales-item",
- "type": "report-detailing"
}, - {
- "id": "Sales-order_num",
- "type": "report-detailing"
}, - {
- "id": "Sales-order_source",
- "type": "report-detailing"
}, - {
- "id": "Sales-store",
- "type": "report-detailing"
}, - {
- "id": "Sales-day",
- "type": "report-detailing"
}
]
}, - "reportType": {
- "data": {
- "id": "9",
- "type": "report-types"
}
}
}
}
}
{- "data": {
- "type": "reports",
- "id": "1085",
- "attributes": {
- "title": "Sales",
- "status": "active",
- "stage": "requested",
- "frequency": "onetime",
- "format": "xlsx",
- "requestDate": "2022-07-26T14:03:43+00:00",
- "period": "custom",
- "periodStart": "2022-07-24",
- "periodStop": "2022-07-30",
- "processDate": null,
- "email": null,
- "downloadable": false
}, - "links": {
- "self": "/reports/1085"
}
}
}
Delete reports body
Array of objects |
{- "data": [
- {
- "id": "1084",
- "type": "reports"
}
]
}
{ }
{- "data": {
- "type": "reports",
- "id": "1082",
- "attributes": {
- "title": "Sales",
- "status": "active",
- "stage": "prepared",
- "frequency": "onetime",
- "format": "xlsx",
- "requestDate": "2022-07-20T10:05:29+00:00",
- "period": "custom",
- "periodStart": "2022-06-01",
- "periodStop": "2022-06-15",
- "processDate": "2022-07-20T00:00:00+00:00",
- "email": null,
- "downloadable": true
}, - "relationships": {
- "reportType": {
- "data": {
- "type": "report-types",
- "id": "9"
}
}, - "detailing": {
- "data": [
- {
- "type": "report-detailing",
- "id": "Sales-category"
}, - {
- "type": "report-detailing",
- "id": "Sales-item"
}, - {
- "type": "report-detailing",
- "id": "Sales-order_num"
}, - {
- "type": "report-detailing",
- "id": "Sales-order_source"
}, - {
- "type": "report-detailing",
- "id": "Sales-store"
}
]
}, - "filters": {
- "data": [
- {
- "type": "report-filters",
- "id": "67a715a9-0337-49b7-a20f-dd8bed1cac7b"
}, - {
- "type": "report-filters",
- "id": "e9c4b4ff-a7f4-4d14-9304-24462189004b"
}, - {
- "type": "report-filters",
- "id": "74a5c00f-ba54-4433-998f-e4941932142f"
}, - {
- "type": "report-filters",
- "id": "be8474d3-c945-49a0-9081-e7e17564127e"
}
]
}
}, - "links": {
- "self": "/reports/1082"
}
}
}
id required | string Report ID |
Update report body
object |
{- "data": {
- "type": "reports",
- "id": "1085",
- "attributes": {
- "periodStart": "2022-07-01",
- "periodStop": "2022-07-31",
- "stage": "prepared",
- "processDate": "2022-07-26T03:00:00+03:00",
- "downloadable": true
}, - "relationships": {
- "reportType": {
- "data": {
- "id": "9",
- "type": "report-types"
}
}
}
}
}
{- "data": {
- "type": "reports",
- "id": "1085",
- "attributes": {
- "title": "Sales",
- "status": "active",
- "stage": "requested",
- "frequency": "onetime",
- "format": "xlsx",
- "requestDate": "2022-07-26T14:03:43+00:00",
- "period": "custom",
- "periodStart": "2022-07-01",
- "periodStop": "2022-07-31",
- "processDate": "2022-07-26T00:00:00+00:00",
- "email": null,
- "downloadable": false
}, - "links": {
- "self": "/reports/1085"
}
}
}
{- "data": {
- "type": "reports",
- "id": "1085",
- "attributes": {
- "title": "Sales",
- "status": "active",
- "stage": "requested",
- "frequency": "onetime",
- "format": "xlsx",
- "requestDate": "2022-07-26T14:03:43+00:00",
- "period": "custom",
- "periodStart": "2022-07-01",
- "periodStop": "2022-07-31",
- "processDate": "2022-07-26T00:00:00+00:00",
- "email": null,
- "downloadable": false
}, - "links": {
- "self": "/reports/1085"
}
}
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:20:03+00:00"
}, - "data": {
- "type": "store-stats",
- "id": "1",
- "attributes": {
- "revenue": 24187518.85,
- "revenuePrev": 233.04,
- "paymentsRevenue": 24189688.85,
- "paymentsRevenuePrev": 233.05,
- "profit": 14441636.11,
- "profitPrev": 208.97,
- "marginality": 59.71,
- "ordersQty": 15233,
- "ordersQtyPrev": 162.5,
- "avgOrderSum": 1587.84,
- "avgOrderSumPrev": 26.87,
- "ordersReturnedQty": 70,
- "ordersReturnedQtyPrev": -3,
- "ordersReturnedAmount": 749061.25,
- "checksPrinted": 15195,
- "discountAmount": 3903817.04,
- "discountShare": 11.93,
- "bonusesAccrued": 0,
- "bonusesSpent": 0,
- "negativeBalance": false,
- "cashboxAmount": 258735
}, - "links": {
- "self": "/store-stats/1"
}
}
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:20:03+00:00"
}, - "data": [
- {
- "type": "stats-workers",
- "id": "1",
- "attributes": {
- "avgOrderAmount": 1502.3,
- "salesAmount": 165253,
- "share": 12.02
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "83244af5-4af9-4e88-992b-ff51c82206ff"
}
}
}, - "links": {
- "self": "/stats-workers/1"
}
}, - {
- "type": "stats-workers",
- "id": "2",
- "attributes": {
- "avgOrderAmount": 1749.18,
- "salesAmount": 339340,
- "share": 24.69
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "dc4720e3-bfac-4cd1-88b0-d97574f25764"
}
}
}, - "links": {
- "self": "/stats-workers/2"
}
}, - {
- "type": "stats-workers",
- "id": "3",
- "attributes": {
- "avgOrderAmount": 1500.76,
- "salesAmount": 108055,
- "share": 7.86
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "c7972ffa-59fa-4311-ba06-9f0c9bc0c56e"
}
}
}, - "links": {
- "self": "/stats-workers/3"
}
}, - {
- "type": "stats-workers",
- "id": "4",
- "attributes": {
- "avgOrderAmount": 1615.19,
- "salesAmount": 142137,
- "share": 10.34
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "315cb5dd-8c7a-4c4d-9031-139a5228fdf0"
}
}
}, - "links": {
- "self": "/stats-workers/4"
}
}, - {
- "type": "stats-workers",
- "id": "5",
- "attributes": {
- "avgOrderAmount": 1662.8,
- "salesAmount": 182908,
- "share": 13.31
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}
}, - "links": {
- "self": "/stats-workers/5"
}
}, - {
- "type": "stats-workers",
- "id": "6",
- "attributes": {
- "avgOrderAmount": 1359.83,
- "salesAmount": 217572.5,
- "share": 15.83
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "09aba926-2c48-4859-ad47-f7bcd7c4248e"
}
}
}, - "links": {
- "self": "/stats-workers/6"
}
}, - {
- "type": "stats-workers",
- "id": "7",
- "attributes": {
- "avgOrderAmount": 1446.38,
- "salesAmount": 127281,
- "share": 9.26
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}
}, - "links": {
- "self": "/stats-workers/7"
}
}, - {
- "type": "stats-workers",
- "id": "8",
- "attributes": {
- "avgOrderAmount": 1530.54,
- "salesAmount": 91832.5,
- "share": 6.68
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "920497d0-ef31-49db-b034-aa2bdb461c48"
}
}
}, - "links": {
- "self": "/stats-workers/8"
}
}
]
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:20:03+00:00",
- "step": "month"
}, - "data": [
- {
- "type": "stats-revenue",
- "id": "1",
- "attributes": {
- "date": "2022-01-01",
- "amount": 2977420.75
}, - "links": {
- "self": "/stats-revenue/1"
}
}, - {
- "type": "stats-revenue",
- "id": "2",
- "attributes": {
- "date": "2022-02-01",
- "amount": 3719293.7
}, - "links": {
- "self": "/stats-revenue/2"
}
}, - {
- "type": "stats-revenue",
- "id": "3",
- "attributes": {
- "date": "2022-03-01",
- "amount": 5576799.25
}, - "links": {
- "self": "/stats-revenue/3"
}
}, - {
- "type": "stats-revenue",
- "id": "4",
- "attributes": {
- "date": "2022-04-01",
- "amount": 3468100.55
}, - "links": {
- "self": "/stats-revenue/4"
}
}, - {
- "type": "stats-revenue",
- "id": "5",
- "attributes": {
- "date": "2022-05-01",
- "amount": 3528270.1
}, - "links": {
- "self": "/stats-revenue/5"
}
}, - {
- "type": "stats-revenue",
- "id": "6",
- "attributes": {
- "date": "2022-06-01",
- "amount": 3543255.5
}, - "links": {
- "self": "/stats-revenue/6"
}
}, - {
- "type": "stats-revenue",
- "id": "7",
- "attributes": {
- "date": "2022-07-01",
- "amount": 1374379
}, - "links": {
- "self": "/stats-revenue/7"
}
}
]
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:20:03+00:00",
- "step": "month"
}, - "data": [
- {
- "type": "stats-payments-revenue",
- "id": "1",
- "attributes": {
- "date": "2022-01-01",
- "amount": 2977420.75
}, - "links": {
- "self": "/stats-payments-revenue/1"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "2",
- "attributes": {
- "date": "2022-02-01",
- "amount": 3737827.7
}, - "links": {
- "self": "/stats-payments-revenue/2"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "3",
- "attributes": {
- "date": "2022-03-01",
- "amount": 5560695.25
}, - "links": {
- "self": "/stats-payments-revenue/3"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "4",
- "attributes": {
- "date": "2022-04-01",
- "amount": 3474632.55
}, - "links": {
- "self": "/stats-payments-revenue/4"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "5",
- "attributes": {
- "date": "2022-05-01",
- "amount": 3521478.1
}, - "links": {
- "self": "/stats-payments-revenue/5"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "6",
- "attributes": {
- "date": "2022-06-01",
- "amount": 3543255.5
}, - "links": {
- "self": "/stats-payments-revenue/6"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "7",
- "attributes": {
- "date": "2022-07-01",
- "amount": 1374379
}, - "links": {
- "self": "/stats-payments-revenue/7"
}
}
]
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:40:04+00:00",
- "step": "month"
}, - "data": [
- {
- "type": "stats-profit",
- "id": "1",
- "attributes": {
- "date": "2022-01-01",
- "amount": 1821025.87
}, - "links": {
- "self": "/stats-profit/1"
}
}, - {
- "type": "stats-profit",
- "id": "2",
- "attributes": {
- "date": "2022-02-01",
- "amount": 2196447.6
}, - "links": {
- "self": "/stats-profit/2"
}
}, - {
- "type": "stats-profit",
- "id": "3",
- "attributes": {
- "date": "2022-03-01",
- "amount": 2801656.79
}, - "links": {
- "self": "/stats-profit/3"
}
}, - {
- "type": "stats-profit",
- "id": "4",
- "attributes": {
- "date": "2022-04-01",
- "amount": 2174541.93
}, - "links": {
- "self": "/stats-profit/4"
}
}, - {
- "type": "stats-profit",
- "id": "5",
- "attributes": {
- "date": "2022-05-01",
- "amount": 2212776.87
}, - "links": {
- "self": "/stats-profit/5"
}
}, - {
- "type": "stats-profit",
- "id": "6",
- "attributes": {
- "date": "2022-06-01",
- "amount": 2315040.48
}, - "links": {
- "self": "/stats-profit/6"
}
}, - {
- "type": "stats-profit",
- "id": "7",
- "attributes": {
- "date": "2022-07-01",
- "amount": 920146.57
}, - "links": {
- "self": "/stats-profit/7"
}
}
]
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:40:04+00:00"
}, - "data": [
- {
- "type": "stats-payments",
- "id": "1",
- "attributes": {
- "amount": 7230703.55,
- "share": 29.89
}, - "relationships": {
- "paymentMethod": {
- "data": {
- "type": "payment-methods",
- "id": "0e26c3db-acdc-495e-9a1b-6ba2a7cb7564"
}
}
}, - "links": {
- "self": "/stats-payments/1"
}
}, - {
- "type": "stats-payments",
- "id": "2",
- "attributes": {
- "amount": 16428723,
- "share": 67.92
}, - "relationships": {
- "paymentMethod": {
- "data": {
- "type": "payment-methods",
- "id": "c01b24d4-6003-449a-9936-519b6b950c61"
}
}
}, - "links": {
- "self": "/stats-payments/2"
}
}, - {
- "type": "stats-payments",
- "id": "3",
- "attributes": {
- "amount": 530262.3,
- "share": 2.19
}, - "relationships": {
- "paymentMethod": {
- "data": {
- "type": "payment-methods",
- "id": "c09f2d6c-ad87-46c3-8d90-d95e087de7f1"
}
}
}, - "links": {
- "self": "/stats-payments/3"
}
}
]
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:40:04+00:00"
}, - "data": [
- {
- "type": "stats-sources",
- "id": "1",
- "attributes": {
- "amount": 24092755.85,
- "share": 99.61
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}
}, - "links": {
- "self": "/stats-sources/1"
}
}, - {
- "type": "stats-sources",
- "id": "2",
- "attributes": {
- "amount": 90533,
- "share": 0.37
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "f128f295-5f2a-41b5-b63d-e6e1d6dbd4d5"
}
}
}, - "links": {
- "self": "/stats-sources/2"
}
}, - {
- "type": "stats-sources",
- "id": "3",
- "attributes": {
- "amount": 4230,
- "share": 0.02
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "fbd7aeac-ea2b-4fbe-8e5a-664d46fdab4b"
}
}
}, - "links": {
- "self": "/stats-sources/3"
}
}
]
}
filter[range] | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
filter[stores] required | Array of strings Filter by stores |
{- "meta": {
- "calculatedAt": "2022-07-27T08:40:04+00:00",
- "prepaymentsAmount": 3465,
- "customersDebtAmount": 0.01,
- "ordersBudgetAmount": 0,
- "ordersDebtQty": 1,
- "bonusesAmount": 1590
}, - "data": [
- {
- "type": "stats-debts",
- "id": "1",
- "attributes": {
- "date": "2022-07-27",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/1"
}
}, - {
- "type": "stats-debts",
- "id": "2",
- "attributes": {
- "date": "2022-07-28",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/2"
}
}, - {
- "type": "stats-debts",
- "id": "3",
- "attributes": {
- "date": "2022-07-29",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/3"
}
}, - {
- "type": "stats-debts",
- "id": "4",
- "attributes": {
- "date": "2022-07-30",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/4"
}
}, - {
- "type": "stats-debts",
- "id": "5",
- "attributes": {
- "date": "2022-07-31",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/5"
}
}, - {
- "type": "stats-debts",
- "id": "6",
- "attributes": {
- "date": "2022-08-01",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/6"
}
}, - {
- "type": "stats-debts",
- "id": "7",
- "attributes": {
- "date": "2022-08-02",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/7"
}
}
]
}
filter[stores][] required | Array of strings Store IDs |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
{- "meta": {
- "warehouseCalculatedAt": "2024-03-10T12:00:01+00:00",
- "reminderFlowers": 6688646.41,
- "reminderProduct": 2900182658.61,
- "reminder": 101204273.39
}, - "data": {
- "type": "warehouse-base-stats-totals",
- "id": "0",
- "attributes": {
- "inventoryActsCount": 28,
- "packingInvoicesCount": 53,
- "writeOffInvoicesCount": 13,
- "writeOffCostToPackingCost": 1.24,
- "shortages": 45381.12,
- "surpluses": 1945545154.86
}, - "links": {
- "self": "/warehouse-base-stats-totals/0"
}
}
}
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[reason] | string Filter by reason write off |
filter[stores][] required | Array of strings Store IDs |
{- "meta": {
- "warehouseCalculatedAt": "2022-07-28T06:55:03+00:00"
}, - "data": [
- {
- "type": "warehouse-top-items-stats-totals",
- "id": "0",
- "attributes": {
- "amount": 176.58,
- "count": 2,
- "proportionAmount": 6.96,
- "proportionQty": 3.77
}, - "links": {
- "self": "/warehouse-top-items-stats-totals/0"
}
}
]
}
filter[stores][] required | Array of strings Store IDs |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
{- "data": [
- {
- "type": "warehouse-stats-write-off",
- "id": "0",
- "attributes": {
- "amount": 29606640,
- "shareSale": 4.13,
- "sharePurchase": 3.62
}, - "relationships": {
- "reason": {
- "data": {
- "type": "write-off-reasons",
- "id": "31"
}
}
}, - "links": {
- "self": "/warehouse-stats-write-off/0"
}
}
]
}
filter[stores][] required | Array of strings Store IDs |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
{- "meta": {
- "total": 818319842.06
}, - "data": [
- {
- "type": "warehouse-stats-packing-invoice",
- "id": "0",
- "attributes": {
- "amount": 743275185.47
}, - "relationships": {
- "category": {
- "data": {
- "type": "categories",
- "id": "9d6f1ca4-f90a-4384-9f18-1d71f237796a"
}
}
}, - "links": {
- "self": "/warehouse-stats-packing-invoice/0"
}
}
]
}
search | string Search by title. |
filter[id] | Array of strings Filter by ids. |
externalLinkId | string Filter by external link ID |
loadAll | boolean Default: false |
filter[revision] | integer <int32> Filter by revision |
{- "meta": {
- "page": {
- "number": 1,
- "size": null
}, - "total": 2,
- "revision": 0
}, - "data": [
- {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c",
- "attributes": {
- "title": "sofiabratsk",
- "addressCity": "Bratsk",
- "address": "Komsomolskaya 91A",
- "printLogo": false,
- "printAddress": false,
- "concealmentItems": 1,
- "calculatedAt": "2022-07-27T09:00:04+00:00",
- "externalLinkId": "dktjzh",
- "anotherTitle": null,
- "formDeliveryTimeFormat": "all",
- "revision": 0
}, - "relationships": {
- "timezone": {
- "data": {
- "type": "timezones",
- "id": "7"
}
}, - "warehouse": {
- "data": {
- "type": "warehouses",
- "id": "6"
}
}, - "image": {
- "data": null
}, - "printSettings": {
- "data": [ ]
}, - "deliveryDiapasons": {
- "data": [
- {
- "type": "delivery-diapason",
- "id": "1"
}, - {
- "type": "delivery-diapason",
- "id": "6"
}, - {
- "type": "delivery-diapason",
- "id": "11"
}, - {
- "type": "delivery-diapason",
- "id": "16"
}, - {
- "type": "delivery-diapason",
- "id": "21"
}, - {
- "type": "delivery-diapason",
- "id": "26"
}, - {
- "type": "delivery-diapason",
- "id": "31"
}
]
}
}
}, - {
- "type": "stores",
- "id": "038e9ff7-6bf7-4b17-a50d-0fe3a081999d",
- "attributes": {
- "title": "sofiabratsk Mira",
- "addressCity": "Bratsk",
- "address": "Mira 31/1",
- "printLogo": false,
- "printAddress": false,
- "concealmentItems": 1,
- "calculatedAt": "2022-07-27T09:00:04+00:00",
- "externalLinkId": "pzhasi",
- "anotherTitle": "",
- "formDeliveryTimeFormat": "all",
- "revision": 0
}, - "relationships": {
- "timezone": {
- "data": {
- "type": "timezones",
- "id": "7"
}
}, - "warehouse": {
- "data": {
- "type": "warehouses",
- "id": "1"
}
}, - "image": {
- "data": null
}, - "printSettings": {
- "data": [ ]
}, - "deliveryDiapasons": {
- "data": [ ]
}
}
}
]
}
{- "data": {
- "type": "stores",
- "id": "3258d1db-fb18-4bcb-b2e0-65ce92514e7c",
- "attributes": {
- "title": "sofiabratsk Komsomolskaya",
- "addressCity": "Bratsk",
- "address": "Komsomolskaya 91А",
- "printLogo": false,
- "printAddress": false,
- "concealmentItems": 1,
- "calculatedAt": "2022-07-27T09:20:04+00:00",
- "externalLinkId": "dktjzh",
- "anotherTitle": null,
- "formDeliveryTimeFormat": "all",
- "revision": 0
}, - "relationships": {
- "timezone": {
- "data": {
- "type": "timezones",
- "id": "7"
}
}, - "warehouse": {
- "data": {
- "type": "warehouses",
- "id": "6"
}
}, - "image": {
- "data": null
}, - "printSettings": {
- "data": [ ]
}, - "deliveryDiapasons": {
- "data": [
- {
- "type": "delivery-diapason",
- "id": "1"
}, - {
- "type": "delivery-diapason",
- "id": "6"
}, - {
- "type": "delivery-diapason",
- "id": "11"
}, - {
- "type": "delivery-diapason",
- "id": "16"
}, - {
- "type": "delivery-diapason",
- "id": "21"
}, - {
- "type": "delivery-diapason",
- "id": "26"
}, - {
- "type": "delivery-diapason",
- "id": "31"
}
]
}
}
}
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-27T09:40:04+00:00"
}, - "data": {
- "type": "store-stats",
- "id": "1",
- "attributes": {
- "revenue": 544158.5,
- "revenuePrev": -58.85,
- "paymentsRevenue": 544158.5,
- "paymentsRevenuePrev": -58.85,
- "profit": 363642.51,
- "profitPrev": -58.06,
- "marginality": 66.83,
- "ordersQty": 346,
- "ordersQtyPrev": -59.39,
- "avgOrderSum": 1572.71,
- "avgOrderSumPrev": 1.32,
- "ordersReturnedQty": 0,
- "ordersReturnedQtyPrev": -2,
- "ordersReturnedAmount": 0,
- "checksPrinted": 345,
- "discountAmount": 67346.49,
- "discountShare": 9.92,
- "bonusesAccrued": 0,
- "bonusesSpent": 0,
- "negativeBalance": false,
- "cashboxAmount": 137974
}, - "links": {
- "self": "/store-stats/1"
}
}
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-27T09:40:04+00:00"
}, - "data": [
- {
- "type": "stats-workers",
- "id": "1",
- "attributes": {
- "avgOrderAmount": 1615.19,
- "salesAmount": 142137,
- "share": 26.12
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "315cb5dd-8c7a-4c4d-9031-139a5228fdf0"
}
}
}, - "links": {
- "self": "/stats-workers/1"
}
}, - {
- "type": "stats-workers",
- "id": "2",
- "attributes": {
- "avgOrderAmount": 1662.8,
- "salesAmount": 182908,
- "share": 33.61
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "44f604a9-d756-4432-8a2e-df11c66417e9"
}
}
}, - "links": {
- "self": "/stats-workers/2"
}
}, - {
- "type": "stats-workers",
- "id": "3",
- "attributes": {
- "avgOrderAmount": 1530.54,
- "salesAmount": 91832.5,
- "share": 16.88
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "920497d0-ef31-49db-b034-aa2bdb461c48"
}
}
}, - "links": {
- "self": "/stats-workers/3"
}
}, - {
- "type": "stats-workers",
- "id": "4",
- "attributes": {
- "avgOrderAmount": 1446.38,
- "salesAmount": 127281,
- "share": 23.39
}, - "relationships": {
- "worker": {
- "data": {
- "type": "workers",
- "id": "cf057643-f688-43ea-9142-5fb2d2c06553"
}
}
}, - "links": {
- "self": "/stats-workers/4"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-27T09:40:04+00:00"
}, - "data": [
- {
- "type": "stats-payments",
- "id": "1",
- "attributes": {
- "amount": 173178.5,
- "share": 31.83
}, - "relationships": {
- "paymentMethod": {
- "data": {
- "type": "payment-methods",
- "id": "0e26c3db-acdc-495e-9a1b-6ba2a7cb7564"
}
}
}, - "links": {
- "self": "/stats-payments/1"
}
}, - {
- "type": "stats-payments",
- "id": "2",
- "attributes": {
- "amount": 364800,
- "share": 67.04
}, - "relationships": {
- "paymentMethod": {
- "data": {
- "type": "payment-methods",
- "id": "c01b24d4-6003-449a-9936-519b6b950c61"
}
}
}, - "links": {
- "self": "/stats-payments/2"
}
}, - {
- "type": "stats-payments",
- "id": "3",
- "attributes": {
- "amount": 6180,
- "share": 1.14
}, - "relationships": {
- "paymentMethod": {
- "data": {
- "type": "payment-methods",
- "id": "c09f2d6c-ad87-46c3-8d90-d95e087de7f1"
}
}
}, - "links": {
- "self": "/stats-payments/3"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-27T09:40:04+00:00"
}, - "data": [
- {
- "type": "stats-sources",
- "id": "1",
- "attributes": {
- "amount": 544158.5,
- "share": 100
}, - "relationships": {
- "source": {
- "data": {
- "type": "order-sources",
- "id": "9bed7b59-94dc-4ce4-aac2-883aab1a148c"
}
}
}, - "links": {
- "self": "/stats-sources/1"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-28T06:20:04+00:00"
}, - "data": {
- "type": "stats-warehouses",
- "id": "1",
- "attributes": {
- "pricesBalance": 2343092.5,
- "costsBalance": 872199.1,
- "writtenOffAmount": 1555.93
}, - "links": {
- "self": "/stats-warehouses/1"
}
}
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-28T07:00:04+00:00",
- "prepaymentsAmount": 1035,
- "customersDebtAmount": 0.01,
- "ordersBudgetAmount": 0,
- "ordersDebtQty": 1,
- "bonusesAmount": 1590
}, - "data": [
- {
- "type": "stats-debts",
- "id": "1",
- "attributes": {
- "date": "2022-07-28",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/1"
}
}, - {
- "type": "stats-debts",
- "id": "2",
- "attributes": {
- "date": "2022-07-29",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/2"
}
}, - {
- "type": "stats-debts",
- "id": "3",
- "attributes": {
- "date": "2022-07-30",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/3"
}
}, - {
- "type": "stats-debts",
- "id": "4",
- "attributes": {
- "date": "2022-07-31",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/4"
}
}, - {
- "type": "stats-debts",
- "id": "5",
- "attributes": {
- "date": "2022-08-01",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/5"
}
}, - {
- "type": "stats-debts",
- "id": "6",
- "attributes": {
- "date": "2022-08-02",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/6"
}
}, - {
- "type": "stats-debts",
- "id": "7",
- "attributes": {
- "date": "2022-08-03",
- "qty": 0
}, - "links": {
- "self": "/stats-debts/7"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-28T07:00:04+00:00",
- "step": "month"
}, - "data": [
- {
- "type": "stats-revenue",
- "id": "1",
- "attributes": {
- "date": "2022-01-01",
- "amount": 1314085.85
}, - "links": {
- "self": "/stats-revenue/1"
}
}, - {
- "type": "stats-revenue",
- "id": "2",
- "attributes": {
- "date": "2022-02-01",
- "amount": 1675186.2
}, - "links": {
- "self": "/stats-revenue/2"
}
}, - {
- "type": "stats-revenue",
- "id": "3",
- "attributes": {
- "date": "2022-03-01",
- "amount": 2642278.95
}, - "links": {
- "self": "/stats-revenue/3"
}
}, - {
- "type": "stats-revenue",
- "id": "4",
- "attributes": {
- "date": "2022-04-01",
- "amount": 1503236.5
}, - "links": {
- "self": "/stats-revenue/4"
}
}, - {
- "type": "stats-revenue",
- "id": "5",
- "attributes": {
- "date": "2022-05-01",
- "amount": 1627638
}, - "links": {
- "self": "/stats-revenue/5"
}
}, - {
- "type": "stats-revenue",
- "id": "6",
- "attributes": {
- "date": "2022-06-01",
- "amount": 1423431
}, - "links": {
- "self": "/stats-revenue/6"
}
}, - {
- "type": "stats-revenue",
- "id": "7",
- "attributes": {
- "date": "2022-07-01",
- "amount": 544158.5
}, - "links": {
- "self": "/stats-revenue/7"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-28T07:00:04+00:00",
- "step": "month"
}, - "data": [
- {
- "type": "stats-payments-revenue",
- "id": "1",
- "attributes": {
- "date": "2022-01-01",
- "amount": 1314085.85
}, - "links": {
- "self": "/stats-payments-revenue/1"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "2",
- "attributes": {
- "date": "2022-02-01",
- "amount": 1681111.2
}, - "links": {
- "self": "/stats-payments-revenue/2"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "3",
- "attributes": {
- "date": "2022-03-01",
- "amount": 2636353.95
}, - "links": {
- "self": "/stats-payments-revenue/3"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "4",
- "attributes": {
- "date": "2022-04-01",
- "amount": 1503236.5
}, - "links": {
- "self": "/stats-payments-revenue/4"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "5",
- "attributes": {
- "date": "2022-05-01",
- "amount": 1627638
}, - "links": {
- "self": "/stats-payments-revenue/5"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "6",
- "attributes": {
- "date": "2022-06-01",
- "amount": 1423431
}, - "links": {
- "self": "/stats-payments-revenue/6"
}
}, - {
- "type": "stats-payments-revenue",
- "id": "7",
- "attributes": {
- "date": "2022-07-01",
- "amount": 544158.5
}, - "links": {
- "self": "/stats-payments-revenue/7"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "calculatedAt": "2022-07-28T07:00:04+00:00",
- "step": "month"
}, - "data": [
- {
- "type": "stats-profit",
- "id": "1",
- "attributes": {
- "date": "2022-01-01",
- "amount": 829843.66
}, - "links": {
- "self": "/stats-profit/1"
}
}, - {
- "type": "stats-profit",
- "id": "2",
- "attributes": {
- "date": "2022-02-01",
- "amount": 1020780.24
}, - "links": {
- "self": "/stats-profit/2"
}
}, - {
- "type": "stats-profit",
- "id": "3",
- "attributes": {
- "date": "2022-03-01",
- "amount": 1350941.13
}, - "links": {
- "self": "/stats-profit/3"
}
}, - {
- "type": "stats-profit",
- "id": "4",
- "attributes": {
- "date": "2022-04-01",
- "amount": 959205.36
}, - "links": {
- "self": "/stats-profit/4"
}
}, - {
- "type": "stats-profit",
- "id": "5",
- "attributes": {
- "date": "2022-05-01",
- "amount": 1024813.47
}, - "links": {
- "self": "/stats-profit/5"
}
}, - {
- "type": "stats-profit",
- "id": "6",
- "attributes": {
- "date": "2022-06-01",
- "amount": 935948.47
}, - "links": {
- "self": "/stats-profit/6"
}
}, - {
- "type": "stats-profit",
- "id": "7",
- "attributes": {
- "date": "2022-07-01",
- "amount": 363642.51
}, - "links": {
- "self": "/stats-profit/7"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "showcaseCalculatedAt": "2022-07-28T07:10:03+00:00"
}, - "data": {
- "type": "showcase-stats",
- "id": "0",
- "attributes": {
- "revenue": 3252316.43,
- "averagePrice": 2901.89,
- "averageCount": 8,
- "profit": 2394919.41,
- "marginality": 73.64,
- "soldBouquetsCount": 1436,
- "deliveredBouquetsCount": 5
}, - "links": {
- "self": "/showcase-stats/0"
}
}
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "showcaseCalculatedAt": "2022-07-28T07:10:03+00:00"
}, - "data": {
- "type": "showcase-days-stats",
- "id": "0",
- "attributes": {
- "monday": 241,
- "tuesday": 229,
- "wednesday": 160,
- "thursday": 140,
- "friday": 224,
- "saturday": 247,
- "sunday": 195,
- "hour0": 0,
- "hour1": 27,
- "hour2": 17,
- "hour3": 7,
- "hour4": 5,
- "hour5": 15,
- "hour6": 23,
- "hour7": 58,
- "hour8": 74,
- "hour9": 68,
- "hour10": 55,
- "hour11": 57,
- "hour12": 88,
- "hour13": 57,
- "hour14": 61,
- "hour15": 88,
- "hour16": 106,
- "hour17": 109,
- "hour18": 102,
- "hour19": 109,
- "hour20": 68,
- "hour21": 97,
- "hour22": 49,
- "hour23": 58
}, - "links": {
- "self": "/showcase-days-stats/0"
}
}
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "showcaseCalculatedAt": "2022-07-28T07:30:03+00:00"
}, - "data": [
- {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 2185502.09,
- "soldBouquetsCount": 859
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "26"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 628631.68,
- "soldBouquetsCount": 344
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "21"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 288206.06,
- "soldBouquetsCount": 184
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "16"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 84976,
- "soldBouquetsCount": 21
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "31"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 24509.69,
- "soldBouquetsCount": 4
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "36"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 21945.41,
- "soldBouquetsCount": 19
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "11"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 11305,
- "soldBouquetsCount": 1
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "46"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 6750,
- "soldBouquetsCount": 1
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "41"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 1292,
- "soldBouquetsCount": 2
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "6"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}, - {
- "type": "showcase-prices-stats",
- "id": "0",
- "attributes": {
- "revenue": 692.5,
- "soldBouquetsCount": 2
}, - "relationships": {
- "diapason": {
- "data": {
- "type": "bouquet-price-diapasons",
- "id": "1"
}
}
}, - "links": {
- "self": "/showcase-prices-stats/0"
}
}
]
}
id required | string Store ID |
filter[range] required | string Enum: "day" "week" "month" "year" "custom" Date range for stats. |
filter[rangeFrom] | string <date-time> Used when filter[range] 'custom' specified |
filter[rangeTo] | string <date-time> Used when filter[range] 'custom' specified |
filter[categories] | Array of strings Filter by categories |
{- "meta": {
- "showcaseCalculatedAt": "2022-07-28T07:50:03+00:00"
}, - "data": [
- {
- "type": "showcase-top-flowers-stats",
- "id": "0",
- "attributes": {
- "revenue": 879495.38,
- "count": 3857
}, - "relationships": {
- "item": {
- "data": {
- "type": "inventory-items",
- "id": "5eb68da1-f566-4374-906f-009f822d8385"
}
}
}, - "links": {
- "self": "/showcase-top-flowers-stats/0"
}
}, - {
- "type": "showcase-top-flowers-stats",
- "id": "0",
- "attributes": {
- "revenue": 259108.68,
- "count": 1206
}, - "relationships": {
- "item": {
- "data": {
- "type": "inventory-items",
- "id": "df48ad41-2470-45f7-bbb5-19c5c72dfee1"
}
}
}, - "links": {
- "self": "/showcase-top-flowers-stats/0"
}
}, - {
- "type": "showcase-top-flowers-stats",
- "id": "0",
- "attributes": {
- "revenue": 247905.79,
- "count": 1147
}, - "relationships": {
- "item": {
- "data": {
- "type": "inventory-items",
- "id": "cdae360a-370b-4fbf-8edb-02da68a9fcc4"
}
}
}, - "links": {
- "self": "/showcase-top-flowers-stats/0"
}
}, - {
- "type": "showcase-top-flowers-stats",
- "id": "0",
- "attributes": {
- "revenue": 142668.58,
- "count": 1520.25
}, - "relationships": {
- "item": {
- "data": {
- "type": "inventory-items",
- "id": "0e8e1b79-0cbe-4fbf-a1d1-9e4d2ce14c2d"
}
}
}, - "links": {
- "self": "/showcase-top-flowers-stats/0"
}
}, - {
- "type": "showcase-top-flowers-stats",
- "id": "0",
- "attributes": {
- "revenue": 112720.66,
- "count": 506
}, - "relationships": {
- "item": {
- "data": {
- "type": "inventory-items",
- "id": "93373ce6-2fce-4923-be95-200dcc0abb55"
}
}
}, - "links": {
- "self": "/showcase-top-flowers-stats/0"
}
}
]
}