Биллинг
Каждая операция ниже сгенерирована из OpenAPI v2 и содержит параметры, поля запроса, поля ответа, ошибки и примеры.
Биллинг
List billing accounts
| operationId | billingListBillingAccounts |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Lists accounts in the current user scope without balance or tariff amounts.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[name] |
query | нет | string |
Filter or pagination value for filter[name]. | "Томилино" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingAccountPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingAccount> |
|
|||
data[] |
нет | BillingAccount |
|
|||
data[].id |
да | integer |
min: 1 | 734 |
||
data[].name |
да | string |
"Склад Томилино" |
|||
data[].domain_id |
да | integer |
10 |
|||
data[].parent_account_id |
да | integer | null |
min: 1 | 734 |
||
data[].currency_id |
да | integer | null |
1 |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 734,
"name": "Склад Томилино",
"domain_id": 10,
"parent_account_id": 734,
"currency_id": 1
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get a billing account
| operationId | billingGetABillingAccount |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Returns account and parent identifiers within the current warehouse scope.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingAccount200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingAccount |
|
|||
data.id |
да | integer |
min: 1 | 734 |
||
data.name |
да | string |
"Склад Томилино" |
|||
data.domain_id |
да | integer |
10 |
|||
data.parent_account_id |
да | integer | null |
min: 1 | 734 |
||
data.currency_id |
да | integer | null |
1 |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 734,
"name": "Склад Томилино",
"domain_id": 10,
"parent_account_id": 734,
"currency_id": 1
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing acts
| operationId | billingListBillingActs |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Acts tab and full account access. Status 0 is open and 1 is confirmed.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[status] |
query | нет | enum |
enum: 0, 1 | Filter or pagination value for filter[status]. | |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingActPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingAct> |
|
|||
data[] |
нет | BillingAct |
|
|||
data[].id |
да | integer |
193 |
|||
data[].account_id |
да | integer |
min: 1 | 734 |
||
data[].status |
да | enum |
enum: 0, 1 | |
||
data[].date_from |
да | string:date |
"2026-10-31" |
|||
data[].date_to |
да | string:date |
"2026-10-31" |
|||
data[].customer_company_id |
нет | integer | null |
150 |
|||
data[].executor_company_id |
нет | integer | null |
78 |
|||
data[].amount |
нет | number |
12.5 |
|||
data[].tax |
нет | number |
2.5 |
|||
data[].total |
нет | number |
15 |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 193,
"account_id": 734,
"status": 0,
"date_from": "2026-10-31",
"date_to": "2026-10-31",
"amount": 12.5
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get a billing act
| operationId | billingGetABillingAct |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Acts tab and full account access.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | да | integer |
min: 1 | Internal act ID | 193 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingAct200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingAct |
|
|||
data.id |
да | integer |
193 |
|||
data.account_id |
да | integer |
min: 1 | 734 |
||
data.status |
да | enum |
enum: 0, 1 | |
||
data.date_from |
да | string:date |
"2026-10-31" |
|||
data.date_to |
да | string:date |
"2026-10-31" |
|||
data.customer_company_id |
нет | integer | null |
150 |
|||
data.executor_company_id |
нет | integer | null |
78 |
|||
data.amount |
нет | number |
12.5 |
|||
data.tax |
нет | number |
2.5 |
|||
data.total |
нет | number |
15 |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 193,
"account_id": 734,
"status": 0,
"date_from": "2026-10-31",
"date_to": "2026-10-31",
"amount": 12.5
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Delete an open act
| operationId | billingDeleteAnOpenAct |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Unlinks charges and deletes the open act with audit entries. Charges remain in the ledger.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | да | integer |
min: 1 | Internal act ID | 193 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDeleted
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | null |
|
|||
meta |
да | object |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.deleted |
да | boolean |
true |
Примеры ответа
Пример
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Confirm a billing act
| operationId | billingConfirmABillingAct |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Closes the open act. Charges assigned to the act can no longer be changed via the billing API.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193/confirm" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | да | integer |
min: 1 | Internal act ID | 193 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Download a billing act
| operationId | billingDownloadABillingAct |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Select the short summary or full act and document format. Requires full account access and visible amounts.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193/download/REPLACE_VARIANT/REPLACE_FORMAT" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | да | integer |
min: 1 | Internal act ID | 193 |
||
variant |
path | да | enum |
enum: short, full | Act variant | |
||
format |
path | да | enum |
enum: html, pdf, xlsx | Document format | |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentPrint
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Recalculate an open act
| operationId | billingRecalculateAnOpenAct |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Recalculates totals from the linked billing transactions. Confirmed acts are protected.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193/recalculate" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | да | integer |
min: 1 | Internal act ID | 193 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List act transactions
| operationId | billingListActTransactions |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires both the Acts and Transactions tabs. Each transaction is additionally scoped by source warehouse.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193/transactions" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | да | integer |
min: 1 | Internal act ID | 193 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingTransactionPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingTransaction> |
|
|||
data[] |
нет | BillingTransaction |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].date |
да | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].account_id |
да | integer |
min: 1 | 734 |
||
data[].source_warehouse_id |
да | integer |
762 |
|||
data[].service_id |
да | integer |
3 |
|||
data[].service_name |
нет | string | null |
"Подбор товара" |
|||
data[].shop_id |
нет | integer | null |
4 |
|||
data[].customer_company_id |
нет | integer | null |
150 |
|||
data[].executor_company_id |
нет | integer | null |
78 |
|||
data[].document_type |
нет | string | null |
"order" |
|||
data[].document_id |
нет | integer | null |
58462 |
|||
data[].quantity |
нет | number |
2 |
|||
data[].multiplicity |
нет | integer |
1 |
|||
data[].act_id |
нет | integer | null |
193 |
|||
data[].amount |
нет | number |
12.5 |
|||
data[].tax |
нет | number |
2.5 |
|||
data[].total |
нет | number |
15 |
|||
data[].description |
нет | string | null |
"Подбор 2 единиц" |
|||
data[].cdek_service_sale_number |
нет | string | null |
"CDEK-123456789" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"date": "2026-10-31T14:00:00+02:00",
"account_id": 734,
"source_warehouse_id": 762,
"service_id": 3,
"amount": 12.5,
"description": "Подбор 2 единиц"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get billing account balance
| operationId | billingGetBillingAccountBalance |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Balance tab and visibility of account amounts. Balance equals paid invoices minus all charges, including VAT.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/balance" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingBalance200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingBalance |
|
|||
data.account_id |
да | integer |
min: 1 | 734 |
||
data.currency_id |
да | integer | null |
1 |
|||
data.charges |
да | number |
350 |
|||
data.paid |
да | number |
500 |
|||
data.balance |
да | number |
150 |
|||
data.services |
да | array<object> |
|
|||
data.services[] |
нет | object |
|
|||
data.services[].service_id |
да | integer |
3 |
|||
data.services[].total |
да | number |
350 |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"account_id": 734,
"currency_id": 1,
"charges": 350,
"paid": 500,
"balance": 150,
"services": [
{
"service_id": 3,
"total": 350
}
]
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List payment invoices
| operationId | billingListPaymentInvoices |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Invoices tab and access to the entire account. Status 0 is unpaid and 1 is paid.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[status] |
query | нет | enum |
enum: 0, 1 | Filter or pagination value for filter[status]. | |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingInvoicePage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingInvoice> |
|
|||
data[] |
нет | BillingInvoice |
|
|||
data[].id |
да | integer |
502 |
|||
data[].account_id |
да | integer |
min: 1 | 734 |
||
data[].status |
да | enum |
enum: 0, 1 | |
||
data[].date |
да | string:date | null |
"2026-10-31" |
|||
data[].customer_company_id |
нет | integer | null |
150 |
|||
data[].executor_company_id |
нет | integer | null |
78 |
|||
data[].description |
нет | string | null |
"Услуги склада за октябрь" |
|||
data[].amount |
нет | number |
12.5 |
|||
data[].tax |
нет | number |
2.5 |
|||
data[].total |
нет | number |
15 |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 502,
"account_id": 734,
"status": 0,
"date": "2026-10-31",
"description": "Услуги склада за октябрь",
"amount": 12.5
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Create a payment invoice
| operationId | billingCreateAPaymentInvoice |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Invoices tab edit permission and full access to the billing account. Calculates VAT from the billing context.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
amount |
да | number |
min: 0.01 max: 999999999 |
55.25 |
||
description |
нет | string | null |
maxLength: 255 | "Услуги склада за октябрь" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
201 Created
BillingId201
Created
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get a payment invoice
| operationId | billingGetAPaymentInvoice |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Invoices tab. The invoice must belong to the account in the path.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices/502" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | да | integer |
min: 1 | Internal invoice ID | 502 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingInvoice200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingInvoice |
|
|||
data.id |
да | integer |
502 |
|||
data.account_id |
да | integer |
min: 1 | 734 |
||
data.status |
да | enum |
enum: 0, 1 | |
||
data.date |
да | string:date | null |
"2026-10-31" |
|||
data.customer_company_id |
нет | integer | null |
150 |
|||
data.executor_company_id |
нет | integer | null |
78 |
|||
data.description |
нет | string | null |
"Услуги склада за октябрь" |
|||
data.amount |
нет | number |
12.5 |
|||
data.tax |
нет | number |
2.5 |
|||
data.total |
нет | number |
15 |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 502,
"account_id": 734,
"status": 0,
"date": "2026-10-31",
"description": "Услуги склада за октябрь",
"amount": 12.5
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Update an unpaid invoice
| operationId | billingUpdateAnUnpaidInvoice |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Changes the invoice amount or description while the invoice is unpaid.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request PATCH "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices/502" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | да | integer |
min: 1 | Internal invoice ID | 502 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
amount |
нет | number |
min: 0.01 max: 999999999 |
55.25 |
||
description |
нет | string | null |
maxLength: 255 | "Услуги склада за октябрь" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
200 OK
BillingId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Delete an unpaid invoice
| operationId | billingDeleteAnUnpaidInvoice |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Paid invoices are protected. Requires Invoices edit permission and whole-account access.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices/502" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | да | integer |
min: 1 | Internal invoice ID | 502 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDeleted
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | null |
|
|||
meta |
да | object |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.deleted |
да | boolean |
true |
Примеры ответа
Пример
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Download a payment invoice
| operationId | billingDownloadAPaymentInvoice |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Uses the account document template. Requires the Invoices tab, full account access and visible amounts.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices/502/download/REPLACE_FORMAT" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | да | integer |
min: 1 | Internal invoice ID | 502 |
||
format |
path | да | enum |
enum: html, pdf, xlsx | Document format | |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentPrint
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Mark an invoice as paid
| operationId | billingMarkAnInvoiceAsPaid |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Records the payment status and updates the amount reflected in balance. Safe to repeat for an already paid invoice.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices/502/mark-paid" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | да | integer |
min: 1 | Internal invoice ID | 502 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingPaidInvoice200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingPaidInvoice |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
data.status |
да | enum |
enum: 1 | |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245,
"status": 1
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing account audit events
| operationId | billingListBillingAccountAuditEvents |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Logs tab, amount visibility, and access to the entire account.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingAuditPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingAudit> |
|
|||
data[] |
нет | BillingAudit |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].action_type_id |
да | integer |
10 |
|||
data[].actor_id |
да | integer | null |
18 |
|||
data[].created_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
да | string | null |
"Начисление обновлено" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"action_type_id": 10,
"actor_id": 18,
"created_at": "2026-10-31T14:00:00+02:00",
"message": "Начисление обновлено"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing operations
| operationId | billingListBillingOperations |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires extended billing rights and access to the entire account.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingOperationPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingOperation> |
|
|||
data[] |
нет | BillingOperation |
|
|||
data[].id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].account_id |
да | integer | null |
min: 1 | 734 |
||
data[].status |
да | string |
"ready" |
|||
data[].mode |
да | enum |
enum: import, recalculate, rebuild, accrue, zero, cdek_export | |
||
data[].created_at |
нет | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].started_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].finished_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].error |
нет | string | null |
"Выберите услуги." |
|||
data[].items |
нет | object |
|
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "ready",
"mode": "import"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get billing operation status
| operationId | billingGetBillingOperationStatus |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Returns preview, queue, execution, or completion status. Preview creation leaves the ledger unchanged.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations/5a3d3624-35d6-4515-92c9-381cf958f65a" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingOperation200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingOperation |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
да | integer | null |
min: 1 | 734 |
||
data.status |
да | string |
"ready" |
|||
data.mode |
да | enum |
enum: import, recalculate, rebuild, accrue, zero, cdek_export | |
||
data.created_at |
нет | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.started_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.finished_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.error |
нет | string | null |
"Выберите услуги." |
|||
data.items |
нет | object |
|
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "ready",
"mode": "import"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Delete an unfinished recalculation
| operationId | billingDeleteAnUnfinishedRecalculation |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Only eligible recalculations without applied work can be removed.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations/5a3d3624-35d6-4515-92c9-381cf958f65a" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDeleted
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | null |
|
|||
meta |
да | object |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.deleted |
да | boolean |
true |
Примеры ответа
Пример
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Apply a prepared operation
| operationId | billingApplyAPreparedOperation |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Queues a ready preview. Set allow_partial=true to apply valid groups of an eligible recalculation with validation errors. Imports require a ready preview.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations/5a3d3624-35d6-4515-92c9-381cf958f65a/apply" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
allow_partial |
нет | boolean |
false |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingOperationReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
да | integer | null |
min: 1 | 734 |
||
data.status |
да | string |
"checking" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing operation groups
| operationId | billingListBillingOperationGroups |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Returns paginated validation and application status by group. For before/after amounts use the report.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations/5a3d3624-35d6-4515-92c9-381cf958f65a/items" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingOperationItemPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingOperationItem> |
|
|||
data[] |
нет | BillingOperationItem |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].status |
да | string |
"planned" |
|||
data[].error |
да | string | null |
"Группа недоступна для расчёта" |
|||
data[].external_pending |
да | boolean | null |
false |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"status": "planned",
"error": "Группа недоступна для расчёта",
"external_pending": false
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Rebuild an operation group
| operationId | billingRebuildAnOperationGroup |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Prepares a new preview for a single invalid or failed group from an eligible recalculation.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations/5a3d3624-35d6-4515-92c9-381cf958f65a/items/100245/rebuild" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
item |
path | да | integer |
min: 1 | Internal item ID | 100245 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingOperationReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
да | integer | null |
min: 1 | 734 |
||
data.status |
да | string |
"checking" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Download billing operation report
| operationId | billingDownloadBillingOperationReport |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Downloads the XLSX preview and processing report, including old and new amounts.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations/5a3d3624-35d6-4515-92c9-381cf958f65a/report" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentXlsx
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Resume a billing operation
| operationId | billingResumeABillingOperation |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Queues the remaining eligible work in a failed or partial operation with unapplied groups.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations/5a3d3624-35d6-4515-92c9-381cf958f65a/resume" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingOperationReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
да | integer | null |
min: 1 | 734 |
||
data.status |
да | string |
"checking" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get billing requisites
| operationId | billingGetBillingRequisites |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Requisites tab. Returns the current contract and company details.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/requisites" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
account |
path | да | integer |
min: 1 | Billing account warehouse ID | 734 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingRequisites200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingRequisites |
|
|||
data.account_id |
да | integer |
min: 1 | 734 |
||
data.contract_number |
да | string | null |
"FF-734-2026" |
|||
data.contract_date |
да | string:date | null |
"2026-10-31" |
|||
data.customer |
да | object | null |
|
|||
data.customer.id |
да | integer |
min: 1 | 100245 |
||
data.customer.domain_id |
да | integer |
10 |
|||
data.customer.name |
да | string |
maxLength: 150 | "Клиентский склад" |
||
data.customer.legal_name |
нет | string | null |
maxLength: 150 | |
||
data.customer.vat_number |
нет | string | null |
maxLength: 30 | |
||
data.customer.registration_number |
нет | string | null |
maxLength: 30 | |
||
data.customer.postcode |
нет | string | null |
maxLength: 20 | |
||
data.customer.address |
нет | string | null |
maxLength: 255 | |
||
data.customer.phone |
нет | string | null |
maxLength: 30 | |
||
data.customer.email |
нет | string | null |
maxLength: 100 | |
||
data.customer.website |
нет | string | null |
maxLength: 100 | |
||
data.customer.bank_account |
нет | string | null |
maxLength: 50 | |
||
data.customer.bank_ks |
нет | string | null |
maxLength: 50 | |
||
data.customer.bank_name |
нет | string | null |
maxLength: 100 | |
||
data.customer.swift_bic |
нет | string | null |
maxLength: 20 | |
||
data.customer.contact_person |
нет | string | null |
maxLength: 100 | |
||
data.customer.director_position |
нет | string | null |
maxLength: 100 | |
||
data.customer.director_name |
нет | string | null |
maxLength: 100 | |
||
data.customer.director_position_genitive |
нет | string | null |
maxLength: 100 | |
||
data.customer.director_name_genitive |
нет | string | null |
maxLength: 100 | |
||
data.customer.basis |
нет | string | null |
maxLength: 100 | |
||
data.customer.country_id |
нет | integer | null |
1 |
|||
data.customer.city_id |
нет | integer | null |
121 |
|||
data.customer.vat_proc |
нет | integer |
min: 0 max: 100 |
20 |
||
data.customer.vat_availability |
нет | boolean |
true |
|||
data.customer.created_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.customer.updated_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.executor |
да | object | null |
|
|||
data.executor.id |
да | integer |
min: 1 | 100245 |
||
data.executor.domain_id |
да | integer |
10 |
|||
data.executor.name |
да | string |
maxLength: 150 | "Клиентский склад" |
||
data.executor.legal_name |
нет | string | null |
maxLength: 150 | |
||
data.executor.vat_number |
нет | string | null |
maxLength: 30 | |
||
data.executor.registration_number |
нет | string | null |
maxLength: 30 | |
||
data.executor.postcode |
нет | string | null |
maxLength: 20 | |
||
data.executor.address |
нет | string | null |
maxLength: 255 | |
||
data.executor.phone |
нет | string | null |
maxLength: 30 | |
||
data.executor.email |
нет | string | null |
maxLength: 100 | |
||
data.executor.website |
нет | string | null |
maxLength: 100 | |
||
data.executor.bank_account |
нет | string | null |
maxLength: 50 | |
||
data.executor.bank_ks |
нет | string | null |
maxLength: 50 | |
||
data.executor.bank_name |
нет | string | null |
maxLength: 100 | |
||
data.executor.swift_bic |
нет | string | null |
maxLength: 20 | |
||
data.executor.contact_person |
нет | string | null |
maxLength: 100 | |
||
data.executor.director_position |
нет | string | null |
maxLength: 100 | |
||
data.executor.director_name |
нет | string | null |
maxLength: 100 | |
||
data.executor.director_position_genitive |
нет | string | null |
maxLength: 100 | |
||
data.executor.director_name_genitive |
нет | string | null |
maxLength: 100 | |
||
data.executor.basis |
нет | string | null |
maxLength: 100 | |
||
data.executor.country_id |
нет | integer | null |
1 |
|||
data.executor.city_id |
нет | integer | null |
121 |
|||
data.executor.vat_proc |
нет | integer |
min: 0 max: 100 |
20 |
||
data.executor.vat_availability |
нет | boolean |
true |
|||
data.executor.created_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.executor.updated_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"account_id": 734,
"contract_number": "FF-734-2026",
"contract_date": "2026-10-31",
"customer": null,
"executor": null
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List CDEK posting corrections
| operationId | billingListCdekPostingCorrections |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
CDEK WMS only. Requires full billing rights with global scope.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[file_name] |
query | нет | string |
maxLength: 150 | Filter or pagination value for filter[file_name]. | "corrections" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingCorrectionPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingCorrection> |
|
|||
data[] |
нет | BillingCorrection |
|
|||
data[].id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].file_name |
да | string |
"corrections.xlsx" |
|||
data[].phase |
да | enum |
enum: preview, review, apply | |
||
data[].status |
да | string |
"ready" |
|||
data[].total_rows |
да | integer |
10 |
|||
data[].summary |
да | object |
|
|||
data[].created_at |
да | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].finished_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"file_name": "corrections.xlsx",
"phase": "preview",
"status": "ready",
"total_rows": 10,
"summary": {
},
"created_at": "2026-10-31T14:00:00+02:00",
"finished_at": "2026-10-31T14:00:00+02:00"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Prepare a CDEK posting correction
| operationId | billingPrepareACdekPostingCorrection |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Accepts CSV or XLSX up to 5 MiB. The preview checks existing remote documents before the operator confirms changes.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
file |
да | string:binary |
|
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingExportReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
да | string |
"queued" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Download the CDEK correction template
| operationId | billingDownloadTheCdekCorrectionTemplate |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
CSV with document ID and the new net amount. Uses semicolon delimiters.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/template" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
У операции нет path, query или header параметров.
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentXlsx_2fc214
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Get CDEK correction status
| operationId | billingGetCdekCorrectionStatus |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Reports the preview or application phase and counts by row status.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/5a3d3624-35d6-4515-92c9-381cf958f65a" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingCorrection200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingCorrection |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.file_name |
да | string |
"corrections.xlsx" |
|||
data.phase |
да | enum |
enum: preview, review, apply | |
||
data.status |
да | string |
"ready" |
|||
data.total_rows |
да | integer |
10 |
|||
data.summary |
да | object |
|
|||
data.created_at |
да | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.finished_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"file_name": "corrections.xlsx",
"phase": "preview",
"status": "ready",
"total_rows": 10,
"summary": {
},
"created_at": "2026-10-31T14:00:00+02:00",
"finished_at": "2026-10-31T14:00:00+02:00"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Apply a checked CDEK correction
| operationId | billingApplyACheckedCdekCorrection |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires explicit confirmation. Changes only existing prepared postings.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/5a3d3624-35d6-4515-92c9-381cf958f65a/apply" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
confirm |
да | boolean |
true |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingExportReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
да | string |
"queued" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
List CDEK correction rows
| operationId | billingListCdekCorrectionRows |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Lists row states for the correction run. Download the report for financial details.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/5a3d3624-35d6-4515-92c9-381cf958f65a/items" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[status] |
query | нет | enum |
enum: pending, ready, unchanged, excluded, missing_id, missing, invalid, conflict, verifying, unconfirmed, confirmed, failed | Filter or pagination value for filter[status]. | |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingCorrectionItemPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingCorrectionItem> |
|
|||
data[] |
нет | BillingCorrectionItem |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].row_number |
да | integer |
2 |
|||
data[].document_id |
да | string | null |
"FULFILMENT-1234" |
|||
data[].status |
да | enum |
enum: pending, ready, unchanged, excluded, missing_id, missing, invalid, conflict, verifying, unconfirmed, confirmed, failed | |
||
data[].submitted_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].checked_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"row_number": 2,
"document_id": "FULFILMENT-1234",
"status": "pending",
"submitted_at": "2026-10-31T14:00:00+02:00",
"checked_at": "2026-10-31T14:00:00+02:00"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Download the CDEK correction report
| operationId | billingDownloadTheCdekCorrectionReport |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Downloads checked and confirmed rows of the correction in Excel.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/5a3d3624-35d6-4515-92c9-381cf958f65a/report" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentXlsx
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Resend unresolved CDEK correction rows
| operationId | billingResendUnresolvedCdekCorrectionRows |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires explicit confirmation and at least one previously submitted failed or unconfirmed row.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/5a3d3624-35d6-4515-92c9-381cf958f65a/resend" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
confirm |
да | boolean |
true |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingExportReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
да | string |
"queued" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Resume a CDEK correction
| operationId | billingResumeACdekCorrection |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Resumes eligible rows. Previously submitted rows are checked before any resend.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/5a3d3624-35d6-4515-92c9-381cf958f65a/resume" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingExportReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
да | string |
"queued" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Start CDEK billing export
| operationId | billingStartCdekBillingExport |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
CDEK WMS only. Requires extended billing rights and at least one transaction filter besides account_id.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/cdek/exports" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
id |
нет | integer |
min: 1 | 734 |
||
account_id |
нет | integer |
min: 1 | 734 |
||
service_id |
нет | integer |
min: 1 | 734 |
||
shop_id |
нет | integer |
min: 1 | 734 |
||
document_id |
нет | integer |
min: 1 | 734 |
||
customer_company_id |
нет | integer |
min: 1 | 734 |
||
executor_company_id |
нет | integer |
min: 1 | 734 |
||
act_id |
нет | integer |
min: 1 | 734 |
||
date_from |
нет | string:date |
"2026-10-31" |
|||
date_to |
нет | string:date |
"2026-10-31" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingOperationReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
да | integer | null |
min: 1 | 734 |
||
data.status |
да | string |
"checking" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get CDEK export status
| operationId | billingGetCdekExportStatus |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Available on CDEK WMS. Requires the export scope to remain visible.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/exports/5a3d3624-35d6-4515-92c9-381cf958f65a" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
operation |
path | да | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingOperation200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingOperation |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
да | integer | null |
min: 1 | 734 |
||
data.status |
да | string |
"ready" |
|||
data.mode |
да | enum |
enum: import, recalculate, rebuild, accrue, zero, cdek_export | |
||
data.created_at |
нет | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.started_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.finished_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.error |
нет | string | null |
"Выберите услуги." |
|||
data.items |
нет | object |
|
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "ready",
"mode": "import"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List CDEK export failures
| operationId | billingListCdekExportFailures |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
CDEK WMS only. Lists eligible unsent charges and attempt statuses in the caller’s visible scope. Omits provider bodies and credentials.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/failures" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[account_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[account_id]. | 734 |
||
filter[source_warehouse_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[source_warehouse_id]. | 734 |
||
filter[service_id] |
query | нет | integer |
Filter or pagination value for filter[service_id]. | 3 |
|||
filter[transaction_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[transaction_id]. | 100245 |
||
filter[state] |
query | нет | enum |
enum: all, failed, without_errors, never, pending, skipped, retry, exhausted | Filter or pagination value for filter[state]. | |
||
date_from |
query | нет | string:date |
Filter or pagination value for date_from. | "2026-10-31" |
|||
date_to |
query | нет | string:date |
Filter or pagination value for date_to. | "2026-10-31" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingCdekFailurePage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingCdekFailure> |
|
|||
data[] |
нет | BillingCdekFailure |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].account_id |
да | integer |
min: 1 | 734 |
||
data[].service_id |
да | integer |
3 |
|||
data[].attempts |
да | array<object> |
|
|||
data[].attempts[] |
нет | object |
|
|||
data[].attempts[].operation |
да | string | null |
"FULFILMENT_SLA" |
|||
data[].attempts[].status |
да | string |
"failed" |
|||
data[].attempts[].http_status |
да | integer | null |
429 |
|||
data[].attempts[].count |
да | integer |
2 |
|||
data[].attempts[].next_retry_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].attempts[].exhausted_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"account_id": 734,
"service_id": 3,
"attempts": [
{
"operation": "FULFILMENT_SLA",
"status": "failed",
"http_status": 429,
"count": 2,
"next_retry_at": "2026-10-31T14:00:00+02:00",
"exhausted_at": "2026-10-31T14:00:00+02:00"
}
]
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Retry selected CDEK exports
| operationId | billingRetrySelectedCdekExports |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
CDEK WMS only. Queues up to 100 exact IDs after verifying every charge is visible, unsent, and enabled for export.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/cdek/failures/retry" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
transaction_ids |
да | array<integer> |
minItems: 1 maxItems: 100 |
|
||
transaction_ids[] |
нет | integer |
min: 1 | 100245 |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingOperationReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
да | integer | null |
min: 1 | 734 |
||
data.status |
да | string |
"checking" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing companies
| operationId | billingListBillingCompanies |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Companies module and its Main tab.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/companies" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[name] |
query | нет | string |
Filter or pagination value for filter[name]. | "Томилино" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingCompanyPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingCompany> |
|
|||
data[] |
нет | BillingCompany |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].domain_id |
да | integer |
10 |
|||
data[].name |
да | string |
maxLength: 150 | "Клиентский склад" |
||
data[].legal_name |
нет | string | null |
maxLength: 150 | |
||
data[].vat_number |
нет | string | null |
maxLength: 30 | |
||
data[].registration_number |
нет | string | null |
maxLength: 30 | |
||
data[].postcode |
нет | string | null |
maxLength: 20 | |
||
data[].address |
нет | string | null |
maxLength: 255 | |
||
data[].phone |
нет | string | null |
maxLength: 30 | |
||
data[].email |
нет | string | null |
maxLength: 100 | |
||
data[].website |
нет | string | null |
maxLength: 100 | |
||
data[].bank_account |
нет | string | null |
maxLength: 50 | |
||
data[].bank_ks |
нет | string | null |
maxLength: 50 | |
||
data[].bank_name |
нет | string | null |
maxLength: 100 | |
||
data[].swift_bic |
нет | string | null |
maxLength: 20 | |
||
data[].contact_person |
нет | string | null |
maxLength: 100 | |
||
data[].director_position |
нет | string | null |
maxLength: 100 | |
||
data[].director_name |
нет | string | null |
maxLength: 100 | |
||
data[].director_position_genitive |
нет | string | null |
maxLength: 100 | |
||
data[].director_name_genitive |
нет | string | null |
maxLength: 100 | |
||
data[].basis |
нет | string | null |
maxLength: 100 | |
||
data[].country_id |
нет | integer | null |
1 |
|||
data[].city_id |
нет | integer | null |
121 |
|||
data[].vat_proc |
нет | integer |
min: 0 max: 100 |
20 |
||
data[].vat_availability |
нет | boolean |
true |
|||
data[].created_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].updated_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"domain_id": 10,
"name": "Клиентский склад"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Create a billing company
| operationId | billingCreateABillingCompany |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Sets the current domain and owner from the authenticated actor. Requires permission to edit the Companies Main tab.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/companies" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
name |
да | string |
maxLength: 150 | "Клиентский склад" |
||
legal_name |
нет | string | null |
maxLength: 150 | |
||
vat_number |
нет | string | null |
maxLength: 30 | |
||
registration_number |
нет | string | null |
maxLength: 30 | |
||
postcode |
нет | string | null |
maxLength: 20 | |
||
address |
нет | string | null |
maxLength: 255 | |
||
phone |
нет | string | null |
maxLength: 30 | |
||
email |
нет | string | null |
maxLength: 100 | |
||
website |
нет | string | null |
maxLength: 100 | |
||
bank_account |
нет | string | null |
maxLength: 50 | |
||
bank_ks |
нет | string | null |
maxLength: 50 | |
||
bank_name |
нет | string | null |
maxLength: 100 | |
||
swift_bic |
нет | string | null |
maxLength: 20 | |
||
contact_person |
нет | string | null |
maxLength: 100 | |
||
director_position |
нет | string | null |
maxLength: 100 | |
||
director_name |
нет | string | null |
maxLength: 100 | |
||
director_position_genitive |
нет | string | null |
maxLength: 100 | |
||
director_name_genitive |
нет | string | null |
maxLength: 100 | |
||
basis |
нет | string | null |
maxLength: 100 | |
||
country_id |
нет | integer | null |
1 |
|||
city_id |
нет | integer | null |
121 |
|||
vat_proc |
нет | integer |
min: 0 max: 100 |
20 |
||
vat_availability |
нет | boolean |
true |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
201 Created
BillingId201
Created
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get a billing company
| operationId | billingGetABillingCompany |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Reads requisites for a company in the caller’s scope.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/companies/150" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
company |
path | да | integer |
min: 1 | Internal company ID | 150 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingCompany200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingCompany |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
data.domain_id |
да | integer |
10 |
|||
data.name |
да | string |
maxLength: 150 | "Клиентский склад" |
||
data.legal_name |
нет | string | null |
maxLength: 150 | |
||
data.vat_number |
нет | string | null |
maxLength: 30 | |
||
data.registration_number |
нет | string | null |
maxLength: 30 | |
||
data.postcode |
нет | string | null |
maxLength: 20 | |
||
data.address |
нет | string | null |
maxLength: 255 | |
||
data.phone |
нет | string | null |
maxLength: 30 | |
||
data.email |
нет | string | null |
maxLength: 100 | |
||
data.website |
нет | string | null |
maxLength: 100 | |
||
data.bank_account |
нет | string | null |
maxLength: 50 | |
||
data.bank_ks |
нет | string | null |
maxLength: 50 | |
||
data.bank_name |
нет | string | null |
maxLength: 100 | |
||
data.swift_bic |
нет | string | null |
maxLength: 20 | |
||
data.contact_person |
нет | string | null |
maxLength: 100 | |
||
data.director_position |
нет | string | null |
maxLength: 100 | |
||
data.director_name |
нет | string | null |
maxLength: 100 | |
||
data.director_position_genitive |
нет | string | null |
maxLength: 100 | |
||
data.director_name_genitive |
нет | string | null |
maxLength: 100 | |
||
data.basis |
нет | string | null |
maxLength: 100 | |
||
data.country_id |
нет | integer | null |
1 |
|||
data.city_id |
нет | integer | null |
121 |
|||
data.vat_proc |
нет | integer |
min: 0 max: 100 |
20 |
||
data.vat_availability |
нет | boolean |
true |
|||
data.created_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.updated_at |
нет | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245,
"domain_id": 10,
"name": "Клиентский склад"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Update a billing company
| operationId | billingUpdateABillingCompany |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Updates selected company requisites within the caller’s scope.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request PATCH "${NWMS_BASE_URL}/api/v2/billing/companies/150" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
company |
path | да | integer |
min: 1 | Internal company ID | 150 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
name |
нет | string |
maxLength: 150 | "Клиентский склад" |
||
legal_name |
нет | string | null |
maxLength: 150 | |
||
vat_number |
нет | string | null |
maxLength: 30 | |
||
registration_number |
нет | string | null |
maxLength: 30 | |
||
postcode |
нет | string | null |
maxLength: 20 | |
||
address |
нет | string | null |
maxLength: 255 | |
||
phone |
нет | string | null |
maxLength: 30 | |
||
email |
нет | string | null |
maxLength: 100 | |
||
website |
нет | string | null |
maxLength: 100 | |
||
bank_account |
нет | string | null |
maxLength: 50 | |
||
bank_ks |
нет | string | null |
maxLength: 50 | |
||
bank_name |
нет | string | null |
maxLength: 100 | |
||
swift_bic |
нет | string | null |
maxLength: 20 | |
||
contact_person |
нет | string | null |
maxLength: 100 | |
||
director_position |
нет | string | null |
maxLength: 100 | |
||
director_name |
нет | string | null |
maxLength: 100 | |
||
director_position_genitive |
нет | string | null |
maxLength: 100 | |
||
director_name_genitive |
нет | string | null |
maxLength: 100 | |
||
basis |
нет | string | null |
maxLength: 100 | |
||
country_id |
нет | integer | null |
1 |
|||
city_id |
нет | integer | null |
121 |
|||
vat_proc |
нет | integer |
min: 0 max: 100 |
20 |
||
vat_availability |
нет | boolean |
true |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
200 OK
BillingId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Delete an unused billing company
| operationId | billingDeleteAnUnusedBillingCompany |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Referenced companies are protected. Requires the Companies delete grant.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/companies/150" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
company |
path | да | integer |
min: 1 | Internal company ID | 150 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDeleted
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | null |
|
|||
meta |
да | object |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.deleted |
да | boolean |
true |
Примеры ответа
Пример
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List company audit events
| operationId | billingListCompanyAuditEvents |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Companies Logs tab and amount visibility.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/companies/150/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
company |
path | да | integer |
min: 1 | Internal company ID | 150 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingAuditPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingAudit> |
|
|||
data[] |
нет | BillingAudit |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].action_type_id |
да | integer |
10 |
|||
data[].actor_id |
да | integer | null |
18 |
|||
data[].created_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
да | string | null |
"Начисление обновлено" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"action_type_id": 10,
"actor_id": 18,
"created_at": "2026-10-31T14:00:00+02:00",
"message": "Начисление обновлено"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Start a transaction export
| operationId | billingStartATransactionExport |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Queues an XLSX with frozen scope and filters. report=details or tariffs requires a date range of at most 31 days. Exported columns follow amount visibility. Poll the returned run ID.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/exports" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
id |
нет | integer |
min: 1 | 734 |
||
account_id |
нет | integer |
min: 1 | 734 |
||
source_warehouse_id |
нет | integer |
min: 1 | 734 |
||
service_id |
нет | integer |
min: 1 | 734 |
||
shop_id |
нет | integer |
min: 1 | 734 |
||
document_id |
нет | integer |
min: 1 | 734 |
||
customer_company_id |
нет | integer |
min: 1 | 734 |
||
executor_company_id |
нет | integer |
min: 1 | 734 |
||
act_id |
нет | integer |
min: 1 | 734 |
||
date_from |
нет | string:date |
"2026-10-31" |
|||
date_to |
нет | string:date |
"2026-10-31" |
|||
report |
нет | enum |
enum: details, tariffs | |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingExportReceipt |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
да | string |
"queued" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Get transaction export status
| operationId | billingGetTransactionExportStatus |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Only the requester can read the status, and current permissions are checked again.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/exports/5a3d3624-35d6-4515-92c9-381cf958f65a" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingExport200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingExport |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
да | enum |
enum: queued, processing, completed, failed, interrupted | |
||
data.processed_rows |
да | integer | null |
320 |
|||
data.total_rows |
да | integer | null |
500 |
|||
data.expires_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued",
"processed_rows": 320,
"total_rows": 500,
"expires_at": "2026-10-31T14:00:00+02:00"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Download transaction export
| operationId | billingDownloadTransactionExport |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Downloads a completed Excel export while the requester still has access to the exported scope. An expired file returns 410.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/exports/5a3d3624-35d6-4515-92c9-381cf958f65a/download" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentXlsx
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "The export file expired"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Prepare a billing import
| operationId | billingPrepareABillingImport |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Uploads the cabinet-compatible XLSX file (up to 10 MiB). Optional account_id limits the import to one account. Without it, accessible charges are grouped by account.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/operations/imports" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
account_id |
нет | integer |
min: 1 | 734 |
||
file |
да | string:binary |
|
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingOperationReceiptList202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingOperationReceipt> |
|
|||
data[] |
нет | BillingOperationReceipt |
|
|||
data[].id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].account_id |
да | integer | null |
min: 1 | 734 |
||
data[].status |
да | string |
"checking" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": [
{
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
}
],
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Prepare a billing recalculation
| operationId | billingPrepareABillingRecalculation |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Creates one preview per account. Pass up to 50 accounts, a period up to 366 calendar days and services enabled in their tariffs.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/operations/recalculations" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
account_ids |
да | array<integer> |
minItems: 1 maxItems: 50 |
|
||
account_ids[] |
нет | integer |
min: 1 | 734 |
||
mode |
да | enum |
enum: recalculate, rebuild, accrue, zero | |
||
date_from |
да | string:date |
"2026-10-31" |
|||
date_to |
да | string:date |
"2026-10-31" |
|||
service_ids |
да | array<integer> |
minItems: 1 maxItems: 100 |
|
||
service_ids[] |
нет | integer |
min: 1 | 3 |
||
coefficient |
нет | number |
max: 1000000 | 1 |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingOperationReceiptList202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingOperationReceipt> |
|
|||
data[] |
нет | BillingOperationReceipt |
|
|||
data[].id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].account_id |
да | integer | null |
min: 1 | 734 |
||
data[].status |
да | string |
"checking" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": [
{
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
}
],
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing service types
| operationId | billingListBillingServiceTypes |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Lists built-in services and services used in transactions visible to the caller.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/services" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingServicePage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingService> |
|
|||
data[] |
нет | BillingService |
|
|||
data[].id |
да | integer |
3 |
|||
data[].name |
да | string |
"Подбор товара" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 3,
"name": "Подбор товара"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Rename a billing service type
| operationId | billingRenameABillingServiceType |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
The dictionary is shared between domains. Requires tariff edit permission and global data scope.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request PATCH "${NWMS_BASE_URL}/api/v2/billing/services/3" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
service |
path | да | integer |
min: 1 | Internal service ID | 3 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
name |
да | string |
maxLength: 255 | "Подбор товара" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
200 OK
BillingId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List software fee domains
| operationId | billingListSoftwareFeeDomains |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
reStocker only. Uses the Software Fees cabinet permission and the domain scope of the current user.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/software-fees/domains" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
У операции нет path, query или header параметров.
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingSoftwareDomainList200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingSoftwareDomain> |
|
|||
data[] |
нет | BillingSoftwareDomain |
|
|||
data[].id |
да | integer |
10 |
|||
data[].name |
да | string |
"Fulfillment" |
|||
data[].timezone |
да | string | null |
"Europe/Moscow" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": [
{
"id": 10,
"name": "Fulfillment",
"timezone": "Europe/Moscow"
}
],
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Start a software fee calculation
| operationId | billingStartASoftwareFeeCalculation |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
reStocker only. The domain must be visible to the caller. Select one to twelve months ending no later than the current month.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
domain_id |
да | integer |
min: 1 | 10 |
||
from |
да | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
to |
да | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
202 Accepted for processing
BillingSoftwareRunId202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingSoftwareRunId |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get software fee calculation status
| operationId | billingGetSoftwareFeeCalculationStatus |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
reStocker only. Reports status and progress for the requester after checking the current domain scope.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs/5a3d3624-35d6-4515-92c9-381cf958f65a" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingSoftwareRun200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingSoftwareRun |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
да | enum |
enum: queued, processing, completed, failed, timeout, expired | |
||
data.phase |
да | string |
"queued" |
|||
data.processed_days |
да | integer |
0 |
|||
data.total_days |
да | integer |
31 |
|||
data.current_day |
нет | string:date | null |
"2026-10-31" |
|||
data.filters |
да | object |
|
|||
data.filters.domain_id |
да | integer |
min: 1 | 10 |
||
data.filters.from |
да | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
data.filters.to |
да | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued",
"phase": "queued",
"processed_days": 0,
"total_days": 31,
"filters": {
"domain_id": 10,
"from": "2026-10",
"to": "2026-10"
}
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Download a software fee act
| operationId | billingDownloadASoftwareFeeAct |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Uses saved requisites. Select a completed calendar month with a positive total in the report.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs/5a3d3624-35d6-4515-92c9-381cf958f65a/act/REPLACE_ACT_FORMAT" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
act_format |
path | да | enum |
enum: pdf, docx | Internal act_format ID | |
||
month |
query | да | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | Filter or pagination value for month. | "2026-10" |
||
number |
query | нет | string |
maxLength: 100 | Filter or pagination value for number. | "PO-10-202610" |
||
date |
query | нет | string:date |
Filter or pagination value for date. | "2026-10-31" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentPrint_c776e2
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "The export file expired"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Download a software fee report
| operationId | billingDownloadASoftwareFeeReport |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Downloads the calculated report in PDF, Word or Excel, or the underlying orders in CSV.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs/5a3d3624-35d6-4515-92c9-381cf958f65a/download/REPLACE_REPORT_FORMAT" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
report_format |
path | да | enum |
enum: pdf, docx, xlsx, csv | Internal report_format ID | |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDocumentPrint_59e077
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
(root) |
нет | string:binary |
|
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "The export file expired"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Read software fee act requisites
| operationId | billingReadSoftwareFeeActRequisites |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Reads the requester’s saved profile for the domain of an authorized software fee run.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs/5a3d3624-35d6-4515-92c9-381cf958f65a/profile" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingSoftwareProfile200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingSoftwareProfile |
|
|||
data.profile |
да | object |
|
|||
data.profile.issuer_company_id |
нет | integer | null |
min: 1 | 78 |
||
data.profile.customer_company_id |
нет | integer | null |
min: 1 | 150 |
||
data.profile.contract_date |
нет | string:date | null |
"2026-10-31" |
|||
data.profile.contract_number |
нет | string | null |
maxLength: 150 | "FF-734-2026" |
||
data.profile.issuer_name |
нет | string | null |
maxLength: 300 | |
||
data.profile.customer_name |
нет | string | null |
maxLength: 300 | |
||
data.profile.issuer_details |
нет | string | null |
maxLength: 2500 | |
||
data.profile.customer_details |
нет | string | null |
maxLength: 2500 | |
||
data.profile.tax_text |
нет | string | null |
maxLength: 500 | |
||
data.profile.issuer_signer |
нет | string | null |
maxLength: 300 | |
||
data.profile.customer_signer |
нет | string | null |
maxLength: 300 | |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"profile": {
}
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Save software fee act requisites
| operationId | billingSaveSoftwareFeeActRequisites |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Stores the requester’s act profile in the run domain after validating company access.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request PATCH "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs/5a3d3624-35d6-4515-92c9-381cf958f65a/profile" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
profile |
да | object |
|
|||
profile.issuer_company_id |
нет | integer | null |
min: 1 | 78 |
||
profile.customer_company_id |
нет | integer | null |
min: 1 | 150 |
||
profile.contract_date |
нет | string:date | null |
"2026-10-31" |
|||
profile.contract_number |
нет | string | null |
maxLength: 150 | "FF-734-2026" |
||
profile.issuer_name |
нет | string | null |
maxLength: 300 | |
||
profile.customer_name |
нет | string | null |
maxLength: 300 | |
||
profile.issuer_details |
нет | string | null |
maxLength: 2500 | |
||
profile.customer_details |
нет | string | null |
maxLength: 2500 | |
||
profile.tax_text |
нет | string | null |
maxLength: 500 | |
||
profile.issuer_signer |
нет | string | null |
maxLength: 300 | |
||
profile.customer_signer |
нет | string | null |
maxLength: 300 | |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
200 OK
BillingSoftwareRunId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingSoftwareRunId |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Refresh the software fee warehouse allocation
| operationId | billingRefreshTheSoftwareFeeWarehouseAllocation |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Queues refresh of a saved calculation with sufficient checkpoint data.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs/5a3d3624-35d6-4515-92c9-381cf958f65a/refresh-warehouses" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
202 Accepted for processing
BillingSoftwareRunId202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingSoftwareRunId |
|
|||
data.id |
да | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Read the software fee calculation
| operationId | billingReadTheSoftwareFeeCalculation |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Returns monthly totals in kopecks and up to 50 calculation details per page, or the current partial snapshot.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/software-fees/runs/5a3d3624-35d6-4515-92c9-381cf958f65a/result" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
run |
path | да | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
page |
query | нет | integer |
min: 1 max: 100000 |
Filter or pagination value for page. | 1 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingSoftwareResult200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingSoftwareResult |
|
|||
data.rows |
да | array<object> |
|
|||
data.rows[] |
нет | object |
|
|||
data.rows[].month |
нет | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
data.rows[].domain_id |
нет | integer |
10 |
|||
data.rows[].orders |
нет | integer |
340 |
|||
data.rows[].total_kopecks |
нет | integer |
2534000 |
|||
data.rows[].complete |
нет | boolean |
true |
|||
data.rows[].warnings |
нет | array<string> |
|
|||
data.rows[].warnings[] |
нет | string |
|
|||
data.totals |
да | object |
|
|||
data.complete |
да | boolean |
true |
|||
data.details |
нет | array<object> |
|
|||
data.details[] |
нет | object |
Existing software fee calculation line. | |
||
data.detail_count |
нет | integer |
50 |
|||
data.page |
нет | integer |
1 |
|||
data.warehouse_rule |
нет | integer |
2 |
|||
data.shipment_rule |
нет | integer |
2 |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"rows": [
{
}
],
"totals": {
},
"complete": true
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "The export file expired"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing tariffs
| operationId | billingListBillingTariffs |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires tariff view permission. Tariff prices and templates follow amount visibility.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/tariffs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[name] |
query | нет | string |
Filter or pagination value for filter[name]. | "Томилино" |
|||
filter[status] |
query | нет | enum |
enum: 1, 2, 3 | Filter or pagination value for filter[status]. | |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingTariffPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingTariff> |
|
|||
data[] |
нет | BillingTariff |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].domain_id |
да | integer |
10 |
|||
data[].name |
да | string |
maxLength: 50 | "Тариф Томилино" |
||
data[].starts_on |
да | string:date |
"2026-10-31" |
|||
data[].status |
да | enum |
enum: 1, 2, 3 | |
||
data[].date_type |
да | enum |
enum: 0, 1 | |
||
data[].enabled_services |
нет | array<enum> |
|
|||
data[].enabled_services[] |
нет | enum |
enum: accepting, returns, crossdock, quant_unpacking, picking, packing, packing_wb_fbs, marking, storage_items, accepting_services, returns_services, order_services, unloading, picking_weight, consumables, storage_volume, storage_places, storage_insurance, fbs_delivery | |
||
data[].rate_sections |
нет | BillingRateSections |
|
|||
data[].rate_sections.accepting |
нет | object |
|
|||
data[].rate_sections.accepting.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.accepting.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.accepting.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.accepting.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.accepting.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.accepting.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.returns |
нет | object |
|
|||
data[].rate_sections.returns.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.returns.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.returns.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.returns.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.returns.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.returns.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.crossdock |
нет | object |
|
|||
data[].rate_sections.crossdock.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.crossdock.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.crossdock.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.crossdock.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.crossdock.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.crossdock.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.quant_unpacking |
нет | object |
|
|||
data[].rate_sections.quant_unpacking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.quant_unpacking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.quant_unpacking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.quant_unpacking.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.quant_unpacking.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.quant_unpacking.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.picking |
нет | object |
|
|||
data[].rate_sections.picking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.picking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.picking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.picking.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.picking.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.picking.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.packing |
нет | object |
|
|||
data[].rate_sections.packing.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.packing.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.packing.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.packing.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.packing.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.packing.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.packing_wb_fbs |
нет | object |
|
|||
data[].rate_sections.packing_wb_fbs.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.packing_wb_fbs.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.packing_wb_fbs.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.packing_wb_fbs.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.packing_wb_fbs.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.packing_wb_fbs.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.marking |
нет | object |
|
|||
data[].rate_sections.marking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.marking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.marking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.marking.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.marking.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.marking.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_items |
нет | object |
|
|||
data[].rate_sections.storage_items.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.storage_items.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data[].rate_sections.storage_items.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.storage_items.datamatrix |
нет | number | null |
12.5 |
|||
data[].rate_sections.storage_items.proc_dimensions |
нет | number | null |
12.5 |
|||
data[].rate_sections.storage_items.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_items.collapse_daily_transactions |
нет | boolean |
false |
|||
data[].rate_sections.storage_items.minimum_daily_cost |
нет | number |
12.5 |
|||
data[].rate_sections.accepting_services |
нет | object |
|
|||
data[].rate_sections.accepting_services.services |
да | array<object> |
|
|||
data[].rate_sections.accepting_services.services[] |
нет | object |
|
|||
data[].rate_sections.accepting_services.services[].name |
да | string |
"Услуга" |
|||
data[].rate_sections.accepting_services.services[].price |
да | number |
12.5 |
|||
data[].rate_sections.accepting_services.services[].code |
нет | string | null |
"SVC-19" |
|||
data[].rate_sections.accepting_services.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.returns_services |
нет | object |
|
|||
data[].rate_sections.returns_services.services |
да | array<object> |
|
|||
data[].rate_sections.returns_services.services[] |
нет | object |
|
|||
data[].rate_sections.returns_services.services[].name |
да | string |
"Услуга" |
|||
data[].rate_sections.returns_services.services[].price |
да | number |
12.5 |
|||
data[].rate_sections.returns_services.services[].code |
нет | string | null |
"SVC-19" |
|||
data[].rate_sections.returns_services.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.order_services |
нет | object |
|
|||
data[].rate_sections.order_services.services |
да | array<object> |
|
|||
data[].rate_sections.order_services.services[] |
нет | object |
|
|||
data[].rate_sections.order_services.services[].name |
да | string |
"Услуга" |
|||
data[].rate_sections.order_services.services[].price |
да | number |
12.5 |
|||
data[].rate_sections.order_services.services[].code |
нет | string | null |
"SVC-19" |
|||
data[].rate_sections.order_services.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.unloading |
нет | object |
|
|||
data[].rate_sections.unloading.items |
да | array<object> |
|
|||
data[].rate_sections.unloading.items[] |
нет | object |
|
|||
data[].rate_sections.unloading.items[].name |
да | string |
"Услуга" |
|||
data[].rate_sections.unloading.items[].price |
да | number |
12.5 |
|||
data[].rate_sections.unloading.items[].code |
нет | string | null |
"SVC-19" |
|||
data[].rate_sections.unloading.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.picking_weight |
нет | object |
|
|||
data[].rate_sections.picking_weight.items |
да | integer |
1 |
|||
data[].rate_sections.picking_weight.order_weight |
да | integer |
5000 |
|||
data[].rate_sections.picking_weight.base_tariff |
да | number |
12.5 |
|||
data[].rate_sections.picking_weight.each_weight |
да | integer |
1000 |
|||
data[].rate_sections.picking_weight.each_weight_tariff |
да | number |
12.5 |
|||
data[].rate_sections.picking_weight.each_item_tariff |
да | number |
12.5 |
|||
data[].rate_sections.picking_weight.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.consumables |
нет | object |
|
|||
data[].rate_sections.consumables.percentage |
да | number |
min: -100 max: 10000 |
10 |
||
data[].rate_sections.consumables.price_source |
да | enum |
enum: of_price, acceptance_price | |
||
data[].rate_sections.consumables.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_volume |
нет | object |
|
|||
data[].rate_sections.storage_volume.unit_volume_m3 |
да | number |
12.5 |
|||
data[].rate_sections.storage_volume.unit_price |
да | number |
12.5 |
|||
data[].rate_sections.storage_volume.minimum_volume_m3 |
да | number |
12.5 |
|||
data[].rate_sections.storage_volume.step_volume_m3 |
да | number |
12.5 |
|||
data[].rate_sections.storage_volume.default_dimension_x |
нет | number |
12.5 |
|||
data[].rate_sections.storage_volume.default_dimension_y |
нет | number |
12.5 |
|||
data[].rate_sections.storage_volume.default_dimension_z |
нет | number |
12.5 |
|||
data[].rate_sections.storage_volume.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_places |
нет | object |
|
|||
data[].rate_sections.storage_places.shelf |
да | object |
|
|||
data[].rate_sections.storage_places.shelf.mode |
да | enum |
enum: places, items | |
||
data[].rate_sections.storage_places.shelf.price |
да | number |
12.5 |
|||
data[].rate_sections.storage_places.pallet |
да | object |
|
|||
data[].rate_sections.storage_places.pallet.mode |
да | enum |
enum: places, items | |
||
data[].rate_sections.storage_places.pallet.price |
да | number |
12.5 |
|||
data[].rate_sections.storage_places.collapse_daily_transactions |
нет | boolean |
false |
|||
data[].rate_sections.storage_places.minimum_daily_cost |
нет | number |
12.5 |
|||
data[].rate_sections.storage_places.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_insurance |
нет | object |
|
|||
data[].rate_sections.storage_insurance.price |
да | number |
12.5 |
|||
data[].rate_sections.storage_insurance.collapse_daily_transactions |
нет | boolean |
false |
|||
data[].rate_sections.storage_insurance.template |
нет | string | null |
maxLength: 1000 | |
||
data[].rate_sections.fbs_delivery |
нет | object |
|
|||
data[].rate_sections.fbs_delivery.channels |
да | object |
Keyed by the delivery scope returned by the tariff, e.g. marketplace:wildberries. | |
||
data[].combined_storage |
нет | BillingCombinedStorage |
|
|||
data[].combined_storage.product |
да | enum |
enum: storage_items, storage_volume | |
||
data[].combined_storage.priority |
да | enum |
enum: places, product | |
||
data[].combined_storage.shelf |
да | boolean |
true |
|||
data[].combined_storage.pallet |
да | boolean |
true |
|||
data[].invoice_template |
нет | string | null |
maxLength: 25000 | |
||
data[].act_template |
нет | string | null |
maxLength: 25000 | |
||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"domain_id": 10,
"name": "Тариф Томилино",
"starts_on": "2026-10-31",
"status": 1,
"date_type": 0
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Create a billing tariff
| operationId | billingCreateABillingTariff |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Creates a tariff in the current domain. Set its services and rates with the tariff update operation.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/tariffs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
name |
да | string |
maxLength: 50 | "Тариф Томилино" |
||
starts_on |
да | string:date |
"2026-10-31" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
201 Created
BillingId201
Created
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get a billing tariff
| operationId | billingGetABillingTariff |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Includes pricing sections and document templates when amounts are visible.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/tariffs/21" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
tariff |
path | да | integer |
min: 1 | Internal tariff ID | 21 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingTariff200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingTariff |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
data.domain_id |
да | integer |
10 |
|||
data.name |
да | string |
maxLength: 50 | "Тариф Томилино" |
||
data.starts_on |
да | string:date |
"2026-10-31" |
|||
data.status |
да | enum |
enum: 1, 2, 3 | |
||
data.date_type |
да | enum |
enum: 0, 1 | |
||
data.enabled_services |
нет | array<enum> |
|
|||
data.enabled_services[] |
нет | enum |
enum: accepting, returns, crossdock, quant_unpacking, picking, packing, packing_wb_fbs, marking, storage_items, accepting_services, returns_services, order_services, unloading, picking_weight, consumables, storage_volume, storage_places, storage_insurance, fbs_delivery | |
||
data.rate_sections |
нет | BillingRateSections |
|
|||
data.rate_sections.accepting |
нет | object |
|
|||
data.rate_sections.accepting.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.accepting.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.accepting.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.accepting.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.accepting.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.accepting.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.returns |
нет | object |
|
|||
data.rate_sections.returns.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.returns.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.returns.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.returns.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.returns.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.returns.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.crossdock |
нет | object |
|
|||
data.rate_sections.crossdock.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.crossdock.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.crossdock.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.crossdock.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.crossdock.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.crossdock.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.quant_unpacking |
нет | object |
|
|||
data.rate_sections.quant_unpacking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.quant_unpacking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.quant_unpacking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.quant_unpacking.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.quant_unpacking.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.quant_unpacking.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.picking |
нет | object |
|
|||
data.rate_sections.picking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.picking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.picking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.picking.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.picking.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.picking.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.packing |
нет | object |
|
|||
data.rate_sections.packing.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.packing.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.packing.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.packing.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.packing.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.packing.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.packing_wb_fbs |
нет | object |
|
|||
data.rate_sections.packing_wb_fbs.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.packing_wb_fbs.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.packing_wb_fbs.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.packing_wb_fbs.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.packing_wb_fbs.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.packing_wb_fbs.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.marking |
нет | object |
|
|||
data.rate_sections.marking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.marking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.marking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.marking.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.marking.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.marking.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_items |
нет | object |
|
|||
data.rate_sections.storage_items.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.storage_items.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
data.rate_sections.storage_items.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.storage_items.datamatrix |
нет | number | null |
12.5 |
|||
data.rate_sections.storage_items.proc_dimensions |
нет | number | null |
12.5 |
|||
data.rate_sections.storage_items.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_items.collapse_daily_transactions |
нет | boolean |
false |
|||
data.rate_sections.storage_items.minimum_daily_cost |
нет | number |
12.5 |
|||
data.rate_sections.accepting_services |
нет | object |
|
|||
data.rate_sections.accepting_services.services |
да | array<object> |
|
|||
data.rate_sections.accepting_services.services[] |
нет | object |
|
|||
data.rate_sections.accepting_services.services[].name |
да | string |
"Услуга" |
|||
data.rate_sections.accepting_services.services[].price |
да | number |
12.5 |
|||
data.rate_sections.accepting_services.services[].code |
нет | string | null |
"SVC-19" |
|||
data.rate_sections.accepting_services.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.returns_services |
нет | object |
|
|||
data.rate_sections.returns_services.services |
да | array<object> |
|
|||
data.rate_sections.returns_services.services[] |
нет | object |
|
|||
data.rate_sections.returns_services.services[].name |
да | string |
"Услуга" |
|||
data.rate_sections.returns_services.services[].price |
да | number |
12.5 |
|||
data.rate_sections.returns_services.services[].code |
нет | string | null |
"SVC-19" |
|||
data.rate_sections.returns_services.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.order_services |
нет | object |
|
|||
data.rate_sections.order_services.services |
да | array<object> |
|
|||
data.rate_sections.order_services.services[] |
нет | object |
|
|||
data.rate_sections.order_services.services[].name |
да | string |
"Услуга" |
|||
data.rate_sections.order_services.services[].price |
да | number |
12.5 |
|||
data.rate_sections.order_services.services[].code |
нет | string | null |
"SVC-19" |
|||
data.rate_sections.order_services.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.unloading |
нет | object |
|
|||
data.rate_sections.unloading.items |
да | array<object> |
|
|||
data.rate_sections.unloading.items[] |
нет | object |
|
|||
data.rate_sections.unloading.items[].name |
да | string |
"Услуга" |
|||
data.rate_sections.unloading.items[].price |
да | number |
12.5 |
|||
data.rate_sections.unloading.items[].code |
нет | string | null |
"SVC-19" |
|||
data.rate_sections.unloading.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.picking_weight |
нет | object |
|
|||
data.rate_sections.picking_weight.items |
да | integer |
1 |
|||
data.rate_sections.picking_weight.order_weight |
да | integer |
5000 |
|||
data.rate_sections.picking_weight.base_tariff |
да | number |
12.5 |
|||
data.rate_sections.picking_weight.each_weight |
да | integer |
1000 |
|||
data.rate_sections.picking_weight.each_weight_tariff |
да | number |
12.5 |
|||
data.rate_sections.picking_weight.each_item_tariff |
да | number |
12.5 |
|||
data.rate_sections.picking_weight.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.consumables |
нет | object |
|
|||
data.rate_sections.consumables.percentage |
да | number |
min: -100 max: 10000 |
10 |
||
data.rate_sections.consumables.price_source |
да | enum |
enum: of_price, acceptance_price | |
||
data.rate_sections.consumables.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_volume |
нет | object |
|
|||
data.rate_sections.storage_volume.unit_volume_m3 |
да | number |
12.5 |
|||
data.rate_sections.storage_volume.unit_price |
да | number |
12.5 |
|||
data.rate_sections.storage_volume.minimum_volume_m3 |
да | number |
12.5 |
|||
data.rate_sections.storage_volume.step_volume_m3 |
да | number |
12.5 |
|||
data.rate_sections.storage_volume.default_dimension_x |
нет | number |
12.5 |
|||
data.rate_sections.storage_volume.default_dimension_y |
нет | number |
12.5 |
|||
data.rate_sections.storage_volume.default_dimension_z |
нет | number |
12.5 |
|||
data.rate_sections.storage_volume.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_places |
нет | object |
|
|||
data.rate_sections.storage_places.shelf |
да | object |
|
|||
data.rate_sections.storage_places.shelf.mode |
да | enum |
enum: places, items | |
||
data.rate_sections.storage_places.shelf.price |
да | number |
12.5 |
|||
data.rate_sections.storage_places.pallet |
да | object |
|
|||
data.rate_sections.storage_places.pallet.mode |
да | enum |
enum: places, items | |
||
data.rate_sections.storage_places.pallet.price |
да | number |
12.5 |
|||
data.rate_sections.storage_places.collapse_daily_transactions |
нет | boolean |
false |
|||
data.rate_sections.storage_places.minimum_daily_cost |
нет | number |
12.5 |
|||
data.rate_sections.storage_places.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_insurance |
нет | object |
|
|||
data.rate_sections.storage_insurance.price |
да | number |
12.5 |
|||
data.rate_sections.storage_insurance.collapse_daily_transactions |
нет | boolean |
false |
|||
data.rate_sections.storage_insurance.template |
нет | string | null |
maxLength: 1000 | |
||
data.rate_sections.fbs_delivery |
нет | object |
|
|||
data.rate_sections.fbs_delivery.channels |
да | object |
Keyed by the delivery scope returned by the tariff, e.g. marketplace:wildberries. | |
||
data.combined_storage |
нет | BillingCombinedStorage |
|
|||
data.combined_storage.product |
да | enum |
enum: storage_items, storage_volume | |
||
data.combined_storage.priority |
да | enum |
enum: places, product | |
||
data.combined_storage.shelf |
да | boolean |
true |
|||
data.combined_storage.pallet |
да | boolean |
true |
|||
data.invoice_template |
нет | string | null |
maxLength: 25000 | |
||
data.act_template |
нет | string | null |
maxLength: 25000 | |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245,
"domain_id": 10,
"name": "Тариф Томилино",
"starts_on": "2026-10-31",
"status": 1,
"date_type": 0
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Update a billing tariff
| operationId | billingUpdateABillingTariff |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Updates metadata and replaces only the supplied rate sections. Combined storage changes are versioned by date. Invoice and act templates are sanitized HTML.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request PATCH "${NWMS_BASE_URL}/api/v2/billing/tariffs/21" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
tariff |
path | да | integer |
min: 1 | Internal tariff ID | 21 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
name |
нет | string |
maxLength: 50 | "Тариф Томилино" |
||
starts_on |
нет | string:date |
"2026-10-31" |
|||
status |
нет | enum |
enum: 1, 2, 3 | |
||
date_type |
нет | enum |
enum: 0, 1 | |
||
enabled_services |
нет | array<enum> |
|
|||
enabled_services[] |
нет | enum |
enum: accepting, returns, crossdock, quant_unpacking, picking, packing, packing_wb_fbs, marking, storage_items, accepting_services, returns_services, order_services, unloading, picking_weight, consumables, storage_volume, storage_places, storage_insurance, fbs_delivery | |
||
rate_sections |
нет | BillingRateSections |
|
|||
rate_sections.accepting |
нет | object |
|
|||
rate_sections.accepting.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.accepting.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.accepting.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.accepting.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.accepting.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.accepting.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.returns |
нет | object |
|
|||
rate_sections.returns.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.returns.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.returns.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.returns.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.returns.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.returns.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.crossdock |
нет | object |
|
|||
rate_sections.crossdock.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.crossdock.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.crossdock.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.crossdock.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.crossdock.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.crossdock.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.quant_unpacking |
нет | object |
|
|||
rate_sections.quant_unpacking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.quant_unpacking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.quant_unpacking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.quant_unpacking.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.quant_unpacking.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.quant_unpacking.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.picking |
нет | object |
|
|||
rate_sections.picking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.picking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.picking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.picking.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.picking.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.picking.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.packing |
нет | object |
|
|||
rate_sections.packing.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.packing.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.packing.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.packing.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.packing.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.packing.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.packing_wb_fbs |
нет | object |
|
|||
rate_sections.packing_wb_fbs.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.packing_wb_fbs.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.packing_wb_fbs.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.packing_wb_fbs.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.packing_wb_fbs.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.packing_wb_fbs.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.marking |
нет | object |
|
|||
rate_sections.marking.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.marking.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.marking.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.marking.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.marking.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.marking.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.storage_items |
нет | object |
|
|||
rate_sections.storage_items.rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.storage_items.document_rates |
нет | object |
Named rate rows. Keep increasing volume_to and weight_to in object order. | {"Small":{"volume_to":1,"weight_to":5,"price":7.5}} |
||
rate_sections.storage_items.code |
нет | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.storage_items.datamatrix |
нет | number | null |
12.5 |
|||
rate_sections.storage_items.proc_dimensions |
нет | number | null |
12.5 |
|||
rate_sections.storage_items.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.storage_items.collapse_daily_transactions |
нет | boolean |
false |
|||
rate_sections.storage_items.minimum_daily_cost |
нет | number |
12.5 |
|||
rate_sections.accepting_services |
нет | object |
|
|||
rate_sections.accepting_services.services |
да | array<object> |
|
|||
rate_sections.accepting_services.services[] |
нет | object |
|
|||
rate_sections.accepting_services.services[].name |
да | string |
"Услуга" |
|||
rate_sections.accepting_services.services[].price |
да | number |
12.5 |
|||
rate_sections.accepting_services.services[].code |
нет | string | null |
"SVC-19" |
|||
rate_sections.accepting_services.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.returns_services |
нет | object |
|
|||
rate_sections.returns_services.services |
да | array<object> |
|
|||
rate_sections.returns_services.services[] |
нет | object |
|
|||
rate_sections.returns_services.services[].name |
да | string |
"Услуга" |
|||
rate_sections.returns_services.services[].price |
да | number |
12.5 |
|||
rate_sections.returns_services.services[].code |
нет | string | null |
"SVC-19" |
|||
rate_sections.returns_services.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.order_services |
нет | object |
|
|||
rate_sections.order_services.services |
да | array<object> |
|
|||
rate_sections.order_services.services[] |
нет | object |
|
|||
rate_sections.order_services.services[].name |
да | string |
"Услуга" |
|||
rate_sections.order_services.services[].price |
да | number |
12.5 |
|||
rate_sections.order_services.services[].code |
нет | string | null |
"SVC-19" |
|||
rate_sections.order_services.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.unloading |
нет | object |
|
|||
rate_sections.unloading.items |
да | array<object> |
|
|||
rate_sections.unloading.items[] |
нет | object |
|
|||
rate_sections.unloading.items[].name |
да | string |
"Услуга" |
|||
rate_sections.unloading.items[].price |
да | number |
12.5 |
|||
rate_sections.unloading.items[].code |
нет | string | null |
"SVC-19" |
|||
rate_sections.unloading.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.picking_weight |
нет | object |
|
|||
rate_sections.picking_weight.items |
да | integer |
1 |
|||
rate_sections.picking_weight.order_weight |
да | integer |
5000 |
|||
rate_sections.picking_weight.base_tariff |
да | number |
12.5 |
|||
rate_sections.picking_weight.each_weight |
да | integer |
1000 |
|||
rate_sections.picking_weight.each_weight_tariff |
да | number |
12.5 |
|||
rate_sections.picking_weight.each_item_tariff |
да | number |
12.5 |
|||
rate_sections.picking_weight.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.consumables |
нет | object |
|
|||
rate_sections.consumables.percentage |
да | number |
min: -100 max: 10000 |
10 |
||
rate_sections.consumables.price_source |
да | enum |
enum: of_price, acceptance_price | |
||
rate_sections.consumables.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.storage_volume |
нет | object |
|
|||
rate_sections.storage_volume.unit_volume_m3 |
да | number |
12.5 |
|||
rate_sections.storage_volume.unit_price |
да | number |
12.5 |
|||
rate_sections.storage_volume.minimum_volume_m3 |
да | number |
12.5 |
|||
rate_sections.storage_volume.step_volume_m3 |
да | number |
12.5 |
|||
rate_sections.storage_volume.default_dimension_x |
нет | number |
12.5 |
|||
rate_sections.storage_volume.default_dimension_y |
нет | number |
12.5 |
|||
rate_sections.storage_volume.default_dimension_z |
нет | number |
12.5 |
|||
rate_sections.storage_volume.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.storage_places |
нет | object |
|
|||
rate_sections.storage_places.shelf |
да | object |
|
|||
rate_sections.storage_places.shelf.mode |
да | enum |
enum: places, items | |
||
rate_sections.storage_places.shelf.price |
да | number |
12.5 |
|||
rate_sections.storage_places.pallet |
да | object |
|
|||
rate_sections.storage_places.pallet.mode |
да | enum |
enum: places, items | |
||
rate_sections.storage_places.pallet.price |
да | number |
12.5 |
|||
rate_sections.storage_places.collapse_daily_transactions |
нет | boolean |
false |
|||
rate_sections.storage_places.minimum_daily_cost |
нет | number |
12.5 |
|||
rate_sections.storage_places.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.storage_insurance |
нет | object |
|
|||
rate_sections.storage_insurance.price |
да | number |
12.5 |
|||
rate_sections.storage_insurance.collapse_daily_transactions |
нет | boolean |
false |
|||
rate_sections.storage_insurance.template |
нет | string | null |
maxLength: 1000 | |
||
rate_sections.fbs_delivery |
нет | object |
|
|||
rate_sections.fbs_delivery.channels |
да | object |
Keyed by the delivery scope returned by the tariff, e.g. marketplace:wildberries. | |
||
combined_storage |
нет | BillingCombinedStorage |
|
|||
combined_storage.product |
да | enum |
enum: storage_items, storage_volume | |
||
combined_storage.priority |
да | enum |
enum: places, product | |
||
combined_storage.shelf |
да | boolean |
true |
|||
combined_storage.pallet |
да | boolean |
true |
|||
invoice_template |
нет | string | null |
maxLength: 25000 | |
||
act_template |
нет | string | null |
maxLength: 25000 | |
||
storage_starts_on |
нет | string:date |
"2026-10-31" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
200 OK
BillingId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Delete an unused billing tariff
| operationId | billingDeleteAnUnusedBillingTariff |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Tariffs referenced by warehouses, historical assignments or transactions are protected.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/tariffs/21" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
tariff |
path | да | integer |
min: 1 | Internal tariff ID | 21 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDeleted
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | null |
|
|||
meta |
да | object |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.deleted |
да | boolean |
true |
Примеры ответа
Пример
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Required billing subsystem unavailable"
}
Copy a billing tariff
| operationId | billingCopyABillingTariff |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Copies the tariff within the same domain and creates an inactive plan starting today.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/tariffs/21/copy" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
tariff |
path | да | integer |
min: 1 | Internal tariff ID | 21 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
name |
нет | string |
maxLength: 50 | "Тариф Томилино" |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
201 Created
BillingId201
Created
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List tariff audit events
| operationId | billingListTariffAuditEvents |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires visible amounts and access to the tariff.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/tariffs/21/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
tariff |
path | да | integer |
min: 1 | Internal tariff ID | 21 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingAuditPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingAudit> |
|
|||
data[] |
нет | BillingAudit |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].action_type_id |
да | integer |
10 |
|||
data[].actor_id |
да | integer | null |
18 |
|||
data[].created_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
да | string | null |
"Начисление обновлено" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"action_type_id": 10,
"actor_id": 18,
"created_at": "2026-10-31T14:00:00+02:00",
"message": "Начисление обновлено"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List billing transactions
| operationId | billingListBillingTransactions |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Transactions tab. Scope is checked for both account and source warehouse. Calendar dates are inclusive. Amounts and free-text descriptions are omitted when amounts are hidden.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[id]. | 734 |
||
filter[account_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[account_id]. | 734 |
||
filter[source_warehouse_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[source_warehouse_id]. | 734 |
||
filter[service_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[service_id]. | 734 |
||
filter[shop_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[shop_id]. | 734 |
||
filter[document_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[document_id]. | 734 |
||
filter[customer_company_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[customer_company_id]. | 734 |
||
filter[executor_company_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[executor_company_id]. | 734 |
||
filter[act_id] |
query | нет | integer |
min: 1 | Filter or pagination value for filter[act_id]. | 734 |
||
date_from |
query | нет | string:date |
Filter or pagination value for date_from. | "2026-10-31" |
|||
date_to |
query | нет | string:date |
Filter or pagination value for date_to. | "2026-10-31" |
|||
sort |
query | нет | string |
Allowlisted fields: date and id. Prefix a field with - for descending order. Unknown fields are ignored. | "-date,id" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingTransactionPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingTransaction> |
|
|||
data[] |
нет | BillingTransaction |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].date |
да | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].account_id |
да | integer |
min: 1 | 734 |
||
data[].source_warehouse_id |
да | integer |
762 |
|||
data[].service_id |
да | integer |
3 |
|||
data[].service_name |
нет | string | null |
"Подбор товара" |
|||
data[].shop_id |
нет | integer | null |
4 |
|||
data[].customer_company_id |
нет | integer | null |
150 |
|||
data[].executor_company_id |
нет | integer | null |
78 |
|||
data[].document_type |
нет | string | null |
"order" |
|||
data[].document_id |
нет | integer | null |
58462 |
|||
data[].quantity |
нет | number |
2 |
|||
data[].multiplicity |
нет | integer |
1 |
|||
data[].act_id |
нет | integer | null |
193 |
|||
data[].amount |
нет | number |
12.5 |
|||
data[].tax |
нет | number |
2.5 |
|||
data[].total |
нет | number |
15 |
|||
data[].description |
нет | string | null |
"Подбор 2 единиц" |
|||
data[].cdek_service_sale_number |
нет | string | null |
"CDEK-123456789" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"date": "2026-10-31T14:00:00+02:00",
"account_id": 734,
"source_warehouse_id": 762,
"service_id": 3,
"amount": 12.5,
"description": "Подбор 2 единиц"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Create a manual charge
| operationId | billingCreateAManualCharge |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Uses the billing parent of the authorized source warehouse. Calculates VAT and optionally links an open act of the same account.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/transactions" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body обязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
source_warehouse_id |
да | integer |
762 |
|||
service_id |
да | integer |
3 |
|||
amount |
да | number |
12.5 |
|||
description |
нет | string | null |
maxLength: 250 | "Подбор 2 единиц" |
||
act_id |
нет | integer | null |
min: 1 | 193 |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
201 Created
BillingTransactionReceipt201
Created
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingTransactionReceipt |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
data.account_id |
да | integer |
min: 1 | 734 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245,
"account_id": 734
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Get a billing transaction
| operationId | billingGetABillingTransaction |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Transactions tab and access to the transaction account and source warehouse.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions/100245" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
transaction |
path | да | integer |
min: 1 | Internal transaction ID | 100245 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingTransaction200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingTransaction |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
data.date |
да | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.account_id |
да | integer |
min: 1 | 734 |
||
data.source_warehouse_id |
да | integer |
762 |
|||
data.service_id |
да | integer |
3 |
|||
data.service_name |
нет | string | null |
"Подбор товара" |
|||
data.shop_id |
нет | integer | null |
4 |
|||
data.customer_company_id |
нет | integer | null |
150 |
|||
data.executor_company_id |
нет | integer | null |
78 |
|||
data.document_type |
нет | string | null |
"order" |
|||
data.document_id |
нет | integer | null |
58462 |
|||
data.quantity |
нет | number |
2 |
|||
data.multiplicity |
нет | integer |
1 |
|||
data.act_id |
нет | integer | null |
193 |
|||
data.amount |
нет | number |
12.5 |
|||
data.tax |
нет | number |
2.5 |
|||
data.total |
нет | number |
15 |
|||
data.description |
нет | string | null |
"Подбор 2 единиц" |
|||
data.cdek_service_sale_number |
нет | string | null |
"CDEK-123456789" |
|||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245,
"date": "2026-10-31T14:00:00+02:00",
"account_id": 734,
"source_warehouse_id": 762,
"service_id": 3,
"amount": 12.5,
"description": "Подбор 2 единиц"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Change a billing transaction
| operationId | billingChangeABillingTransaction |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Extended edit permission is required to change amount, description or act. A null act_id removes the current assignment. Amount is the final net amount after multiplicity. Closed acts are protected.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request PATCH "${NWMS_BASE_URL}/api/v2/billing/transactions/100245" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonПараметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
transaction |
path | да | integer |
min: 1 | Internal transaction ID | 100245 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Inline request body необязательно
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
amount |
нет | number |
12.5 |
|||
description |
нет | string | null |
maxLength: 250 | "Подбор 2 единиц" |
||
act_id |
нет | integer | null |
min: 1 | 193 |
||
multiplicity |
нет | integer |
min: 1 max: 10000 |
2 |
Примеры запроса
Явный пример для этого media type не задан.
Ответы
200 OK
BillingId200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingId |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Remove a billing transaction
| operationId | billingRemoveABillingTransaction |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires extended edit rights. An externally linked row is zeroed and keeps its identifier and CDEK link. A row in a closed act returns 409.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/transactions/100245" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
transaction |
path | да | integer |
min: 1 | Internal transaction ID | 100245 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingDeletedTransaction200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingDeletedTransaction |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
data.result |
да | enum |
enum: deleted, zeroed | |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245,
"result": "deleted"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List calculation lines
| operationId | billingListCalculationLines |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires the Transactions tab. Hides rates, prices and amounts according to the caller’s role.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions/100245/details" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
transaction |
path | да | integer |
min: 1 | Internal transaction ID | 100245 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingTransactionDetailPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingTransactionDetail> |
|
|||
data[] |
нет | BillingTransactionDetail |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].entity_id |
да | integer | null |
1004 |
|||
data[].quantity |
да | number |
2 |
|||
data[].measurement |
нет | number | null |
12.5 |
|||
data[].weight |
нет | number | null |
12.5 |
|||
data[].rate |
нет | string | null |
"Small" |
|||
data[].price |
нет | number | null |
12.5 |
|||
data[].tax |
нет | number | null |
12.5 |
|||
data[].total |
нет | number | null |
12.5 |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"entity_id": 1004,
"quantity": 2
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
List transaction audit events
| operationId | billingListTransactionAuditEvents |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
Requires extended edit rights for Transactions and visibility of amounts.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions/100245/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
transaction |
path | да | integer |
min: 1 | Internal transaction ID | 100245 |
||
page |
query | нет | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | нет | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Тело запроса
Тело запроса отсутствует.
Ответы
200 OK
BillingAuditPage200
OK
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | array<BillingAudit> |
|
|||
data[] |
нет | BillingAudit |
|
|||
data[].id |
да | integer |
min: 1 | 100245 |
||
data[].action_type_id |
да | integer |
10 |
|||
data[].actor_id |
да | integer | null |
18 |
|||
data[].created_at |
да | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
да | string | null |
"Начисление обновлено" |
|||
links |
да | BillingLinks |
|
|||
links.first |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
да | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
да | BillingPagination |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
||
meta.current_page |
да | integer |
1 |
|||
meta.last_page |
да | integer |
1 |
|||
meta.per_page |
да | integer |
max: 100 | 50 |
||
meta.total |
да | integer |
12 |
Примеры ответа
Пример
{
"data": [
{
"id": 100245,
"action_type_id": 10,
"actor_id": 18,
"created_at": "2026-10-31T14:00:00+02:00",
"message": "Начисление обновлено"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"prev": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1",
"next": "https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 12
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}
Resend a linked CDEK transaction
| operationId | billingResendALinkedCdekTransaction |
|---|---|
| Раздел | Биллинг |
| Безопасность | bearerAuth |
CDEK WMS only. Queues an update of a transaction with an existing export number.
Пример HTTP-запроса (cURL)
Подставьте свой сервер и токен. ID из примера замените реальными доступными ID. Для тела запроса сохраните подходящий JSON из раздела ниже в request.json; перед отправкой замените демонстрационные значения. Заголовок Idempotency-Key использует ключ одной логической операции.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/transactions/100245/resend-to-cdek" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Параметры
| Имя | Где | Обязательное | Тип | Style | Explode | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|---|---|
transaction |
path | да | integer |
min: 1 | Internal transaction ID | 100245 |
||
Idempotency-Key |
header | нет | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Тело запроса
Тело запроса отсутствует.
Ответы
202 Accepted for processing
BillingResend202
Accepted for processing
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
data |
да | BillingResend |
|
|||
data.id |
да | integer |
min: 1 | 100245 |
||
data.status |
да | enum |
enum: queued | |
||
meta |
да | BillingMeta |
|
|||
meta.api_version |
да | enum |
enum: v2 | |
Примеры ответа
Пример
{
"data": {
"id": 100245,
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Требуется аутентификация
BillingError401
Authentication required
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Authentication required"
}
403 Доступ запрещен
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Не найдено
BillingError404
Resource is unavailable in the caller’s scope
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Конфликт
BillingError409
Lifecycle or idempotency conflict
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Lifecycle or idempotency conflict"
}
422 Ошибка валидации
BillingError422
Input validation failed
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Input validation failed"
}
429 Превышен лимит запросов
BillingError429
Rate limit exceeded
| Поле | Обязательное | Тип | Флаги | Ограничения | Описание | Пример |
|---|---|---|---|---|---|---|
message |
да | string |
"The given data was invalid." |
|||
errors |
нет | object |
|
|||
error |
нет | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Примеры ответа
Пример
{
"message": "Rate limit exceeded"
}