Billing
Every operation below is generated from the OpenAPI v2 specification and includes parameters, request fields, response fields, errors, and examples.
Billing
List billing accounts
| operationId | billingListBillingAccounts |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Lists accounts in the current user scope without balance or tariff amounts.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[name] |
query | no | string |
Filter or pagination value for filter[name]. | "Томилино" |
Request body
No request body.
Responses
200 OK
BillingAccountPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingAccount> |
|
|||
data[] |
no | BillingAccount |
|
|||
data[].id |
yes | integer |
min: 1 | 734 |
||
data[].name |
yes | string |
"Склад Томилино" |
|||
data[].domain_id |
yes | integer |
10 |
|||
data[].parent_account_id |
yes | integer | null |
min: 1 | 734 |
||
data[].currency_id |
yes | integer | null |
1 |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get a billing account
| operationId | billingGetABillingAccount |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Returns account and parent identifiers within the current warehouse scope.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
Request body
No request body.
Responses
200 OK
BillingAccount200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingAccount |
|
|||
data.id |
yes | integer |
min: 1 | 734 |
||
data.name |
yes | string |
"Склад Томилино" |
|||
data.domain_id |
yes | integer |
10 |
|||
data.parent_account_id |
yes | integer | null |
min: 1 | 734 |
||
data.currency_id |
yes | integer | null |
1 |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 734,
"name": "Склад Томилино",
"domain_id": 10,
"parent_account_id": 734,
"currency_id": 1
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing acts
| operationId | billingListBillingActs |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Acts tab and full account access. Status 0 is open and 1 is confirmed.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[status] |
query | no | enum |
enum: 0, 1 | Filter or pagination value for filter[status]. | |
Request body
No request body.
Responses
200 OK
BillingActPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingAct> |
|
|||
data[] |
no | BillingAct |
|
|||
data[].id |
yes | integer |
193 |
|||
data[].account_id |
yes | integer |
min: 1 | 734 |
||
data[].status |
yes | enum |
enum: 0, 1 | |
||
data[].date_from |
yes | string:date |
"2026-10-31" |
|||
data[].date_to |
yes | string:date |
"2026-10-31" |
|||
data[].customer_company_id |
no | integer | null |
150 |
|||
data[].executor_company_id |
no | integer | null |
78 |
|||
data[].amount |
no | number |
12.5 |
|||
data[].tax |
no | number |
2.5 |
|||
data[].total |
no | number |
15 |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get a billing act
| operationId | billingGetABillingAct |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Acts tab and full account access.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | yes | integer |
min: 1 | Internal act ID | 193 |
Request body
No request body.
Responses
200 OK
BillingAct200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingAct |
|
|||
data.id |
yes | integer |
193 |
|||
data.account_id |
yes | integer |
min: 1 | 734 |
||
data.status |
yes | enum |
enum: 0, 1 | |
||
data.date_from |
yes | string:date |
"2026-10-31" |
|||
data.date_to |
yes | string:date |
"2026-10-31" |
|||
data.customer_company_id |
no | integer | null |
150 |
|||
data.executor_company_id |
no | integer | null |
78 |
|||
data.amount |
no | number |
12.5 |
|||
data.tax |
no | number |
2.5 |
|||
data.total |
no | number |
15 |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Delete an open act
| operationId | billingDeleteAnOpenAct |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Unlinks charges and deletes the open act with audit entries. Charges remain in the ledger.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | yes | integer |
min: 1 | Internal act ID | 193 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingDeleted
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | null |
|
|||
meta |
yes | object |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.deleted |
yes | boolean |
true |
Response examples
Example
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Confirm a billing act
| operationId | billingConfirmABillingAct |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Closes the open act. Charges assigned to the act can no longer be changed via the billing API.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193/confirm" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | yes | integer |
min: 1 | Internal act ID | 193 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Download a billing act
| operationId | billingDownloadABillingAct |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Select the short summary or full act and document format. Requires full account access and visible amounts.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | yes | integer |
min: 1 | Internal act ID | 193 |
||
variant |
path | yes | enum |
enum: short, full | Act variant | |
||
format |
path | yes | enum |
enum: html, pdf, xlsx | Document format | |
Request body
No request body.
Responses
200 OK
BillingDocumentPrint
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Recalculate an open act
| operationId | billingRecalculateAnOpenAct |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Recalculates totals from the linked billing transactions. Confirmed acts are protected.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193/recalculate" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | yes | integer |
min: 1 | Internal act ID | 193 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List act transactions
| operationId | billingListActTransactions |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires both the Acts and Transactions tabs. Each transaction is additionally scoped by source warehouse.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/acts/193/transactions" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
act |
path | yes | integer |
min: 1 | Internal act ID | 193 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingTransactionPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingTransaction> |
|
|||
data[] |
no | BillingTransaction |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].date |
yes | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].account_id |
yes | integer |
min: 1 | 734 |
||
data[].source_warehouse_id |
yes | integer |
762 |
|||
data[].service_id |
yes | integer |
3 |
|||
data[].service_name |
no | string | null |
"Подбор товара" |
|||
data[].shop_id |
no | integer | null |
4 |
|||
data[].customer_company_id |
no | integer | null |
150 |
|||
data[].executor_company_id |
no | integer | null |
78 |
|||
data[].document_type |
no | string | null |
"order" |
|||
data[].document_id |
no | integer | null |
58462 |
|||
data[].quantity |
no | number |
2 |
|||
data[].multiplicity |
no | integer |
1 |
|||
data[].act_id |
no | integer | null |
193 |
|||
data[].amount |
no | number |
12.5 |
|||
data[].tax |
no | number |
2.5 |
|||
data[].total |
no | number |
15 |
|||
data[].description |
no | string | null |
"Подбор 2 единиц" |
|||
data[].cdek_service_sale_number |
no | string | null |
"CDEK-123456789" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get billing account balance
| operationId | billingGetBillingAccountBalance |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Balance tab and visibility of account amounts. Balance equals paid invoices minus all charges, including VAT.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/balance" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
Request body
No request body.
Responses
200 OK
BillingBalance200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingBalance |
|
|||
data.account_id |
yes | integer |
min: 1 | 734 |
||
data.currency_id |
yes | integer | null |
1 |
|||
data.charges |
yes | number |
350 |
|||
data.paid |
yes | number |
500 |
|||
data.balance |
yes | number |
150 |
|||
data.services |
yes | array<object> |
|
|||
data.services[] |
no | object |
|
|||
data.services[].service_id |
yes | integer |
3 |
|||
data.services[].total |
yes | number |
350 |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"account_id": 734,
"currency_id": 1,
"charges": 350,
"paid": 500,
"balance": 150,
"services": [
{
"service_id": 3,
"total": 350
}
]
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List payment invoices
| operationId | billingListPaymentInvoices |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Invoices tab and access to the entire account. Status 0 is unpaid and 1 is paid.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[status] |
query | no | enum |
enum: 0, 1 | Filter or pagination value for filter[status]. | |
Request body
No request body.
Responses
200 OK
BillingInvoicePage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingInvoice> |
|
|||
data[] |
no | BillingInvoice |
|
|||
data[].id |
yes | integer |
502 |
|||
data[].account_id |
yes | integer |
min: 1 | 734 |
||
data[].status |
yes | enum |
enum: 0, 1 | |
||
data[].date |
yes | string:date | null |
"2026-10-31" |
|||
data[].customer_company_id |
no | integer | null |
150 |
|||
data[].executor_company_id |
no | integer | null |
78 |
|||
data[].description |
no | string | null |
"Услуги склада за октябрь" |
|||
data[].amount |
no | number |
12.5 |
|||
data[].tax |
no | number |
2.5 |
|||
data[].total |
no | number |
15 |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Create a payment invoice
| operationId | billingCreateAPaymentInvoice |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Invoices tab edit permission and full access to the billing account. Calculates VAT from the billing context.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
amount |
yes | number |
min: 0.01 max: 999999999 |
55.25 |
||
description |
no | string | null |
maxLength: 255 | "Услуги склада за октябрь" |
Request examples
No explicit example is defined for this media type.
Responses
201 Created
BillingId201
Created
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get a payment invoice
| operationId | billingGetAPaymentInvoice |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Invoices tab. The invoice must belong to the account in the path.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices/502" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | yes | integer |
min: 1 | Internal invoice ID | 502 |
Request body
No request body.
Responses
200 OK
BillingInvoice200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingInvoice |
|
|||
data.id |
yes | integer |
502 |
|||
data.account_id |
yes | integer |
min: 1 | 734 |
||
data.status |
yes | enum |
enum: 0, 1 | |
||
data.date |
yes | string:date | null |
"2026-10-31" |
|||
data.customer_company_id |
no | integer | null |
150 |
|||
data.executor_company_id |
no | integer | null |
78 |
|||
data.description |
no | string | null |
"Услуги склада за октябрь" |
|||
data.amount |
no | number |
12.5 |
|||
data.tax |
no | number |
2.5 |
|||
data.total |
no | number |
15 |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 502,
"account_id": 734,
"status": 0,
"date": "2026-10-31",
"description": "Услуги склада за октябрь",
"amount": 12.5
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Update an unpaid invoice
| operationId | billingUpdateAnUnpaidInvoice |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Changes the invoice amount or description while the invoice is unpaid.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | yes | integer |
min: 1 | Internal invoice ID | 502 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
amount |
no | number |
min: 0.01 max: 999999999 |
55.25 |
||
description |
no | string | null |
maxLength: 255 | "Услуги склада за октябрь" |
Request examples
No explicit example is defined for this media type.
Responses
200 OK
BillingId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Delete an unpaid invoice
| operationId | billingDeleteAnUnpaidInvoice |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Paid invoices are protected. Requires Invoices edit permission and whole-account access.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/accounts/734/invoices/502" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | yes | integer |
min: 1 | Internal invoice ID | 502 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingDeleted
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | null |
|
|||
meta |
yes | object |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.deleted |
yes | boolean |
true |
Response examples
Example
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Download a payment invoice
| operationId | billingDownloadAPaymentInvoice |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Uses the account document template. Requires the Invoices tab, full account access and visible amounts.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | yes | integer |
min: 1 | Internal invoice ID | 502 |
||
format |
path | yes | enum |
enum: html, pdf, xlsx | Document format | |
Request body
No request body.
Responses
200 OK
BillingDocumentPrint
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Mark an invoice as paid
| operationId | billingMarkAnInvoiceAsPaid |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Records the payment status and updates the amount reflected in balance. Safe to repeat for an already paid invoice.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
invoice |
path | yes | integer |
min: 1 | Internal invoice ID | 502 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingPaidInvoice200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingPaidInvoice |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
data.status |
yes | enum |
enum: 1 | |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245,
"status": 1
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing account audit events
| operationId | billingListBillingAccountAuditEvents |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Logs tab, amount visibility, and access to the entire account.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingAuditPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingAudit> |
|
|||
data[] |
no | BillingAudit |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].action_type_id |
yes | integer |
10 |
|||
data[].actor_id |
yes | integer | null |
18 |
|||
data[].created_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
yes | string | null |
"Начисление обновлено" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing operations
| operationId | billingListBillingOperations |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires extended billing rights and access to the entire account.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/operations" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingOperationPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingOperation> |
|
|||
data[] |
no | BillingOperation |
|
|||
data[].id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].account_id |
yes | integer | null |
min: 1 | 734 |
||
data[].status |
yes | string |
"ready" |
|||
data[].mode |
yes | enum |
enum: import, recalculate, rebuild, accrue, zero, cdek_export | |
||
data[].created_at |
no | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].started_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].finished_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].error |
no | string | null |
"Выберите услуги." |
|||
data[].items |
no | object |
|
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get billing operation status
| operationId | billingGetBillingOperationStatus |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Returns preview, queue, execution, or completion status. Preview creation leaves the ledger unchanged.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingOperation200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingOperation |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
yes | integer | null |
min: 1 | 734 |
||
data.status |
yes | string |
"ready" |
|||
data.mode |
yes | enum |
enum: import, recalculate, rebuild, accrue, zero, cdek_export | |
||
data.created_at |
no | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.started_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.finished_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.error |
no | string | null |
"Выберите услуги." |
|||
data.items |
no | object |
|
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "ready",
"mode": "import"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Delete an unfinished recalculation
| operationId | billingDeleteAnUnfinishedRecalculation |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Only eligible recalculations without applied work can be removed.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingDeleted
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | null |
|
|||
meta |
yes | object |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.deleted |
yes | boolean |
true |
Response examples
Example
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Apply a prepared operation
| operationId | billingApplyAPreparedOperation |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
allow_partial |
no | boolean |
false |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingOperationReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
yes | integer | null |
min: 1 | 734 |
||
data.status |
yes | string |
"checking" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing operation groups
| operationId | billingListBillingOperationGroups |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Returns paginated validation and application status by group. For before/after amounts use the report.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingOperationItemPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingOperationItem> |
|
|||
data[] |
no | BillingOperationItem |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].status |
yes | string |
"planned" |
|||
data[].error |
yes | string | null |
"Группа недоступна для расчёта" |
|||
data[].external_pending |
yes | boolean | null |
false |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Rebuild an operation group
| operationId | billingRebuildAnOperationGroup |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Prepares a new preview for a single invalid or failed group from an eligible recalculation.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
item |
path | yes | integer |
min: 1 | Internal item ID | 100245 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingOperationReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
yes | integer | null |
min: 1 | 734 |
||
data.status |
yes | string |
"checking" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Download billing operation report
| operationId | billingDownloadBillingOperationReport |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Downloads the XLSX preview and processing report, including old and new amounts.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingDocumentXlsx
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Resume a billing operation
| operationId | billingResumeABillingOperation |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Queues the remaining eligible work in a failed or partial operation with unapplied groups.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
||
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingOperationReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
yes | integer | null |
min: 1 | 734 |
||
data.status |
yes | string |
"checking" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get billing requisites
| operationId | billingGetBillingRequisites |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Requisites tab. Returns the current contract and company details.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/accounts/734/requisites" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
account |
path | yes | integer |
min: 1 | Billing account warehouse ID | 734 |
Request body
No request body.
Responses
200 OK
BillingRequisites200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingRequisites |
|
|||
data.account_id |
yes | integer |
min: 1 | 734 |
||
data.contract_number |
yes | string | null |
"FF-734-2026" |
|||
data.contract_date |
yes | string:date | null |
"2026-10-31" |
|||
data.customer |
yes | object | null |
|
|||
data.customer.id |
yes | integer |
min: 1 | 100245 |
||
data.customer.domain_id |
yes | integer |
10 |
|||
data.customer.name |
yes | string |
maxLength: 150 | "Клиентский склад" |
||
data.customer.legal_name |
no | string | null |
maxLength: 150 | |
||
data.customer.vat_number |
no | string | null |
maxLength: 30 | |
||
data.customer.registration_number |
no | string | null |
maxLength: 30 | |
||
data.customer.postcode |
no | string | null |
maxLength: 20 | |
||
data.customer.address |
no | string | null |
maxLength: 255 | |
||
data.customer.phone |
no | string | null |
maxLength: 30 | |
||
data.customer.email |
no | string | null |
maxLength: 100 | |
||
data.customer.website |
no | string | null |
maxLength: 100 | |
||
data.customer.bank_account |
no | string | null |
maxLength: 50 | |
||
data.customer.bank_ks |
no | string | null |
maxLength: 50 | |
||
data.customer.bank_name |
no | string | null |
maxLength: 100 | |
||
data.customer.swift_bic |
no | string | null |
maxLength: 20 | |
||
data.customer.contact_person |
no | string | null |
maxLength: 100 | |
||
data.customer.director_position |
no | string | null |
maxLength: 100 | |
||
data.customer.director_name |
no | string | null |
maxLength: 100 | |
||
data.customer.director_position_genitive |
no | string | null |
maxLength: 100 | |
||
data.customer.director_name_genitive |
no | string | null |
maxLength: 100 | |
||
data.customer.basis |
no | string | null |
maxLength: 100 | |
||
data.customer.country_id |
no | integer | null |
1 |
|||
data.customer.city_id |
no | integer | null |
121 |
|||
data.customer.vat_proc |
no | integer |
min: 0 max: 100 |
20 |
||
data.customer.vat_availability |
no | boolean |
true |
|||
data.customer.created_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.customer.updated_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.executor |
yes | object | null |
|
|||
data.executor.id |
yes | integer |
min: 1 | 100245 |
||
data.executor.domain_id |
yes | integer |
10 |
|||
data.executor.name |
yes | string |
maxLength: 150 | "Клиентский склад" |
||
data.executor.legal_name |
no | string | null |
maxLength: 150 | |
||
data.executor.vat_number |
no | string | null |
maxLength: 30 | |
||
data.executor.registration_number |
no | string | null |
maxLength: 30 | |
||
data.executor.postcode |
no | string | null |
maxLength: 20 | |
||
data.executor.address |
no | string | null |
maxLength: 255 | |
||
data.executor.phone |
no | string | null |
maxLength: 30 | |
||
data.executor.email |
no | string | null |
maxLength: 100 | |
||
data.executor.website |
no | string | null |
maxLength: 100 | |
||
data.executor.bank_account |
no | string | null |
maxLength: 50 | |
||
data.executor.bank_ks |
no | string | null |
maxLength: 50 | |
||
data.executor.bank_name |
no | string | null |
maxLength: 100 | |
||
data.executor.swift_bic |
no | string | null |
maxLength: 20 | |
||
data.executor.contact_person |
no | string | null |
maxLength: 100 | |
||
data.executor.director_position |
no | string | null |
maxLength: 100 | |
||
data.executor.director_name |
no | string | null |
maxLength: 100 | |
||
data.executor.director_position_genitive |
no | string | null |
maxLength: 100 | |
||
data.executor.director_name_genitive |
no | string | null |
maxLength: 100 | |
||
data.executor.basis |
no | string | null |
maxLength: 100 | |
||
data.executor.country_id |
no | integer | null |
1 |
|||
data.executor.city_id |
no | integer | null |
121 |
|||
data.executor.vat_proc |
no | integer |
min: 0 max: 100 |
20 |
||
data.executor.vat_availability |
no | boolean |
true |
|||
data.executor.created_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.executor.updated_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"account_id": 734,
"contract_number": "FF-734-2026",
"contract_date": "2026-10-31",
"customer": null,
"executor": null
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List CDEK posting corrections
| operationId | billingListCdekPostingCorrections |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
CDEK WMS only. Requires full billing rights with global scope.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[file_name] |
query | no | string |
maxLength: 150 | Filter or pagination value for filter[file_name]. | "corrections" |
Request body
No request body.
Responses
200 OK
BillingCorrectionPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingCorrection> |
|
|||
data[] |
no | BillingCorrection |
|
|||
data[].id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].file_name |
yes | string |
"corrections.xlsx" |
|||
data[].phase |
yes | enum |
enum: preview, review, apply | |
||
data[].status |
yes | string |
"ready" |
|||
data[].total_rows |
yes | integer |
10 |
|||
data[].summary |
yes | object |
|
|||
data[].created_at |
yes | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].finished_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Prepare a CDEK posting correction
| operationId | billingPrepareACdekPostingCorrection |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Accepts CSV or XLSX up to 5 MiB. The preview checks existing remote documents before the operator confirms changes.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
file |
yes | string:binary |
|
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingExportReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
yes | string |
"queued" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Download the CDEK correction template
| operationId | billingDownloadTheCdekCorrectionTemplate |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
CSV with document ID and the new net amount. Uses semicolon delimiters.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/corrections/template" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
This operation has no path, query, or header parameters.
Request body
No request body.
Responses
200 OK
BillingDocumentXlsx_2fc214
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Get CDEK correction status
| operationId | billingGetCdekCorrectionStatus |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Reports the preview or application phase and counts by row status.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingCorrection200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingCorrection |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.file_name |
yes | string |
"corrections.xlsx" |
|||
data.phase |
yes | enum |
enum: preview, review, apply | |
||
data.status |
yes | string |
"ready" |
|||
data.total_rows |
yes | integer |
10 |
|||
data.summary |
yes | object |
|
|||
data.created_at |
yes | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.finished_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Apply a checked CDEK correction
| operationId | billingApplyACheckedCdekCorrection |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires explicit confirmation. Changes only existing prepared postings.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
confirm |
yes | boolean |
true |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingExportReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
yes | string |
"queued" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
List CDEK correction rows
| operationId | billingListCdekCorrectionRows |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Lists row states for the correction run. Download the report for financial details.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[status] |
query | no | enum |
enum: pending, ready, unchanged, excluded, missing_id, missing, invalid, conflict, verifying, unconfirmed, confirmed, failed | Filter or pagination value for filter[status]. | |
Request body
No request body.
Responses
200 OK
BillingCorrectionItemPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingCorrectionItem> |
|
|||
data[] |
no | BillingCorrectionItem |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].row_number |
yes | integer |
2 |
|||
data[].document_id |
yes | string | null |
"FULFILMENT-1234" |
|||
data[].status |
yes | enum |
enum: pending, ready, unchanged, excluded, missing_id, missing, invalid, conflict, verifying, unconfirmed, confirmed, failed | |
||
data[].submitted_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].checked_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Download the CDEK correction report
| operationId | billingDownloadTheCdekCorrectionReport |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Downloads checked and confirmed rows of the correction in Excel.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingDocumentXlsx
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Resend unresolved CDEK correction rows
| operationId | billingResendUnresolvedCdekCorrectionRows |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires explicit confirmation and at least one previously submitted failed or unconfirmed row.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
confirm |
yes | boolean |
true |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingExportReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
yes | string |
"queued" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Resume a CDEK correction
| operationId | billingResumeACdekCorrection |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Resumes eligible rows. Previously submitted rows are checked before any resend.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingExportReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
yes | string |
"queued" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Start CDEK billing export
| operationId | billingStartCdekBillingExport |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
CDEK WMS only. Requires extended billing rights and at least one transaction filter besides account_id.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
id |
no | integer |
min: 1 | 734 |
||
account_id |
no | integer |
min: 1 | 734 |
||
service_id |
no | integer |
min: 1 | 734 |
||
shop_id |
no | integer |
min: 1 | 734 |
||
document_id |
no | integer |
min: 1 | 734 |
||
customer_company_id |
no | integer |
min: 1 | 734 |
||
executor_company_id |
no | integer |
min: 1 | 734 |
||
act_id |
no | integer |
min: 1 | 734 |
||
date_from |
no | string:date |
"2026-10-31" |
|||
date_to |
no | string:date |
"2026-10-31" |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingOperationReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
yes | integer | null |
min: 1 | 734 |
||
data.status |
yes | string |
"checking" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get CDEK export status
| operationId | billingGetCdekExportStatus |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Available on CDEK WMS. Requires the export scope to remain visible.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
operation |
path | yes | string:uuid |
Billing operation UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingOperation200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingOperation |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
yes | integer | null |
min: 1 | 734 |
||
data.status |
yes | string |
"ready" |
|||
data.mode |
yes | enum |
enum: import, recalculate, rebuild, accrue, zero, cdek_export | |
||
data.created_at |
no | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.started_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.finished_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.error |
no | string | null |
"Выберите услуги." |
|||
data.items |
no | object |
|
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "ready",
"mode": "import"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List CDEK export failures
| operationId | billingListCdekExportFailures |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
CDEK WMS only. Lists eligible unsent charges and attempt statuses in the caller’s visible scope. Omits provider bodies and credentials.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/cdek/failures" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[account_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[account_id]. | 734 |
||
filter[source_warehouse_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[source_warehouse_id]. | 734 |
||
filter[service_id] |
query | no | integer |
Filter or pagination value for filter[service_id]. | 3 |
|||
filter[transaction_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[transaction_id]. | 100245 |
||
filter[state] |
query | no | enum |
enum: all, failed, without_errors, never, pending, skipped, retry, exhausted | Filter or pagination value for filter[state]. | |
||
date_from |
query | no | string:date |
Filter or pagination value for date_from. | "2026-10-31" |
|||
date_to |
query | no | string:date |
Filter or pagination value for date_to. | "2026-10-31" |
Request body
No request body.
Responses
200 OK
BillingCdekFailurePage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingCdekFailure> |
|
|||
data[] |
no | BillingCdekFailure |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].account_id |
yes | integer |
min: 1 | 734 |
||
data[].service_id |
yes | integer |
3 |
|||
data[].attempts |
yes | array<object> |
|
|||
data[].attempts[] |
no | object |
|
|||
data[].attempts[].operation |
yes | string | null |
"FULFILMENT_SLA" |
|||
data[].attempts[].status |
yes | string |
"failed" |
|||
data[].attempts[].http_status |
yes | integer | null |
429 |
|||
data[].attempts[].count |
yes | integer |
2 |
|||
data[].attempts[].next_retry_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].attempts[].exhausted_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Retry selected CDEK exports
| operationId | billingRetrySelectedCdekExports |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
CDEK WMS only. Queues up to 100 exact IDs after verifying every charge is visible, unsent, and enabled for export.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
transaction_ids |
yes | array<integer> |
minItems: 1 maxItems: 100 |
|
||
transaction_ids[] |
no | integer |
min: 1 | 100245 |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingOperationReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingOperationReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.account_id |
yes | integer | null |
min: 1 | 734 |
||
data.status |
yes | string |
"checking" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing companies
| operationId | billingListBillingCompanies |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Companies module and its Main tab.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/companies" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[name] |
query | no | string |
Filter or pagination value for filter[name]. | "Томилино" |
Request body
No request body.
Responses
200 OK
BillingCompanyPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingCompany> |
|
|||
data[] |
no | BillingCompany |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].domain_id |
yes | integer |
10 |
|||
data[].name |
yes | string |
maxLength: 150 | "Клиентский склад" |
||
data[].legal_name |
no | string | null |
maxLength: 150 | |
||
data[].vat_number |
no | string | null |
maxLength: 30 | |
||
data[].registration_number |
no | string | null |
maxLength: 30 | |
||
data[].postcode |
no | string | null |
maxLength: 20 | |
||
data[].address |
no | string | null |
maxLength: 255 | |
||
data[].phone |
no | string | null |
maxLength: 30 | |
||
data[].email |
no | string | null |
maxLength: 100 | |
||
data[].website |
no | string | null |
maxLength: 100 | |
||
data[].bank_account |
no | string | null |
maxLength: 50 | |
||
data[].bank_ks |
no | string | null |
maxLength: 50 | |
||
data[].bank_name |
no | string | null |
maxLength: 100 | |
||
data[].swift_bic |
no | string | null |
maxLength: 20 | |
||
data[].contact_person |
no | string | null |
maxLength: 100 | |
||
data[].director_position |
no | string | null |
maxLength: 100 | |
||
data[].director_name |
no | string | null |
maxLength: 100 | |
||
data[].director_position_genitive |
no | string | null |
maxLength: 100 | |
||
data[].director_name_genitive |
no | string | null |
maxLength: 100 | |
||
data[].basis |
no | string | null |
maxLength: 100 | |
||
data[].country_id |
no | integer | null |
1 |
|||
data[].city_id |
no | integer | null |
121 |
|||
data[].vat_proc |
no | integer |
min: 0 max: 100 |
20 |
||
data[].vat_availability |
no | boolean |
true |
|||
data[].created_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].updated_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Create a billing company
| operationId | billingCreateABillingCompany |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Sets the current domain and owner from the authenticated actor. Requires permission to edit the Companies Main tab.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
name |
yes | string |
maxLength: 150 | "Клиентский склад" |
||
legal_name |
no | string | null |
maxLength: 150 | |
||
vat_number |
no | string | null |
maxLength: 30 | |
||
registration_number |
no | string | null |
maxLength: 30 | |
||
postcode |
no | string | null |
maxLength: 20 | |
||
address |
no | string | null |
maxLength: 255 | |
||
phone |
no | string | null |
maxLength: 30 | |
||
email |
no | string | null |
maxLength: 100 | |
||
website |
no | string | null |
maxLength: 100 | |
||
bank_account |
no | string | null |
maxLength: 50 | |
||
bank_ks |
no | string | null |
maxLength: 50 | |
||
bank_name |
no | string | null |
maxLength: 100 | |
||
swift_bic |
no | string | null |
maxLength: 20 | |
||
contact_person |
no | string | null |
maxLength: 100 | |
||
director_position |
no | string | null |
maxLength: 100 | |
||
director_name |
no | string | null |
maxLength: 100 | |
||
director_position_genitive |
no | string | null |
maxLength: 100 | |
||
director_name_genitive |
no | string | null |
maxLength: 100 | |
||
basis |
no | string | null |
maxLength: 100 | |
||
country_id |
no | integer | null |
1 |
|||
city_id |
no | integer | null |
121 |
|||
vat_proc |
no | integer |
min: 0 max: 100 |
20 |
||
vat_availability |
no | boolean |
true |
Request examples
No explicit example is defined for this media type.
Responses
201 Created
BillingId201
Created
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get a billing company
| operationId | billingGetABillingCompany |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Reads requisites for a company in the caller’s scope.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/companies/150" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
company |
path | yes | integer |
min: 1 | Internal company ID | 150 |
Request body
No request body.
Responses
200 OK
BillingCompany200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingCompany |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
data.domain_id |
yes | integer |
10 |
|||
data.name |
yes | string |
maxLength: 150 | "Клиентский склад" |
||
data.legal_name |
no | string | null |
maxLength: 150 | |
||
data.vat_number |
no | string | null |
maxLength: 30 | |
||
data.registration_number |
no | string | null |
maxLength: 30 | |
||
data.postcode |
no | string | null |
maxLength: 20 | |
||
data.address |
no | string | null |
maxLength: 255 | |
||
data.phone |
no | string | null |
maxLength: 30 | |
||
data.email |
no | string | null |
maxLength: 100 | |
||
data.website |
no | string | null |
maxLength: 100 | |
||
data.bank_account |
no | string | null |
maxLength: 50 | |
||
data.bank_ks |
no | string | null |
maxLength: 50 | |
||
data.bank_name |
no | string | null |
maxLength: 100 | |
||
data.swift_bic |
no | string | null |
maxLength: 20 | |
||
data.contact_person |
no | string | null |
maxLength: 100 | |
||
data.director_position |
no | string | null |
maxLength: 100 | |
||
data.director_name |
no | string | null |
maxLength: 100 | |
||
data.director_position_genitive |
no | string | null |
maxLength: 100 | |
||
data.director_name_genitive |
no | string | null |
maxLength: 100 | |
||
data.basis |
no | string | null |
maxLength: 100 | |
||
data.country_id |
no | integer | null |
1 |
|||
data.city_id |
no | integer | null |
121 |
|||
data.vat_proc |
no | integer |
min: 0 max: 100 |
20 |
||
data.vat_availability |
no | boolean |
true |
|||
data.created_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data.updated_at |
no | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245,
"domain_id": 10,
"name": "Клиентский склад"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Update a billing company
| operationId | billingUpdateABillingCompany |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Updates selected company requisites within the caller’s scope.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
company |
path | yes | integer |
min: 1 | Internal company ID | 150 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
name |
no | string |
maxLength: 150 | "Клиентский склад" |
||
legal_name |
no | string | null |
maxLength: 150 | |
||
vat_number |
no | string | null |
maxLength: 30 | |
||
registration_number |
no | string | null |
maxLength: 30 | |
||
postcode |
no | string | null |
maxLength: 20 | |
||
address |
no | string | null |
maxLength: 255 | |
||
phone |
no | string | null |
maxLength: 30 | |
||
email |
no | string | null |
maxLength: 100 | |
||
website |
no | string | null |
maxLength: 100 | |
||
bank_account |
no | string | null |
maxLength: 50 | |
||
bank_ks |
no | string | null |
maxLength: 50 | |
||
bank_name |
no | string | null |
maxLength: 100 | |
||
swift_bic |
no | string | null |
maxLength: 20 | |
||
contact_person |
no | string | null |
maxLength: 100 | |
||
director_position |
no | string | null |
maxLength: 100 | |
||
director_name |
no | string | null |
maxLength: 100 | |
||
director_position_genitive |
no | string | null |
maxLength: 100 | |
||
director_name_genitive |
no | string | null |
maxLength: 100 | |
||
basis |
no | string | null |
maxLength: 100 | |
||
country_id |
no | integer | null |
1 |
|||
city_id |
no | integer | null |
121 |
|||
vat_proc |
no | integer |
min: 0 max: 100 |
20 |
||
vat_availability |
no | boolean |
true |
Request examples
No explicit example is defined for this media type.
Responses
200 OK
BillingId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Delete an unused billing company
| operationId | billingDeleteAnUnusedBillingCompany |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Referenced companies are protected. Requires the Companies delete grant.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/companies/150" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
company |
path | yes | integer |
min: 1 | Internal company ID | 150 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingDeleted
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | null |
|
|||
meta |
yes | object |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.deleted |
yes | boolean |
true |
Response examples
Example
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List company audit events
| operationId | billingListCompanyAuditEvents |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Companies Logs tab and amount visibility.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/companies/150/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
company |
path | yes | integer |
min: 1 | Internal company ID | 150 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingAuditPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingAudit> |
|
|||
data[] |
no | BillingAudit |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].action_type_id |
yes | integer |
10 |
|||
data[].actor_id |
yes | integer | null |
18 |
|||
data[].created_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
yes | string | null |
"Начисление обновлено" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Start a transaction export
| operationId | billingStartATransactionExport |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
id |
no | integer |
min: 1 | 734 |
||
account_id |
no | integer |
min: 1 | 734 |
||
source_warehouse_id |
no | integer |
min: 1 | 734 |
||
service_id |
no | integer |
min: 1 | 734 |
||
shop_id |
no | integer |
min: 1 | 734 |
||
document_id |
no | integer |
min: 1 | 734 |
||
customer_company_id |
no | integer |
min: 1 | 734 |
||
executor_company_id |
no | integer |
min: 1 | 734 |
||
act_id |
no | integer |
min: 1 | 734 |
||
date_from |
no | string:date |
"2026-10-31" |
|||
date_to |
no | string:date |
"2026-10-31" |
|||
report |
no | enum |
enum: details, tariffs | |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingExportReceipt202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingExportReceipt |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
yes | string |
"queued" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Get transaction export status
| operationId | billingGetTransactionExportStatus |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Only the requester can read the status, and current permissions are checked again.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingExport200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingExport |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
yes | enum |
enum: queued, processing, completed, failed, interrupted | |
||
data.processed_rows |
yes | integer | null |
320 |
|||
data.total_rows |
yes | integer | null |
500 |
|||
data.expires_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Download transaction export
| operationId | billingDownloadTransactionExport |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Downloads a completed Excel export while the requester still has access to the exported scope. An expired file returns 410.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingDocumentXlsx
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "The export file expired"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Prepare a billing import
| operationId | billingPrepareABillingImport |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/operations/imports" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
account_id |
no | integer |
min: 1 | 734 |
||
file |
yes | string:binary |
|
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingOperationReceiptList202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingOperationReceipt> |
|
|||
data[] |
no | BillingOperationReceipt |
|
|||
data[].id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].account_id |
yes | integer | null |
min: 1 | 734 |
||
data[].status |
yes | string |
"checking" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": [
{
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
}
],
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Prepare a billing recalculation
| operationId | billingPrepareABillingRecalculation |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
account_ids |
yes | array<integer> |
minItems: 1 maxItems: 50 |
|
||
account_ids[] |
no | integer |
min: 1 | 734 |
||
mode |
yes | enum |
enum: recalculate, rebuild, accrue, zero | |
||
date_from |
yes | string:date |
"2026-10-31" |
|||
date_to |
yes | string:date |
"2026-10-31" |
|||
service_ids |
yes | array<integer> |
minItems: 1 maxItems: 100 |
|
||
service_ids[] |
no | integer |
min: 1 | 3 |
||
coefficient |
no | number |
max: 1000000 | 1 |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingOperationReceiptList202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingOperationReceipt> |
|
|||
data[] |
no | BillingOperationReceipt |
|
|||
data[].id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data[].account_id |
yes | integer | null |
min: 1 | 734 |
||
data[].status |
yes | string |
"checking" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": [
{
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a",
"account_id": 734,
"status": "checking"
}
],
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing service types
| operationId | billingListBillingServiceTypes |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Lists built-in services and services used in transactions visible to the caller.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/services" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingServicePage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingService> |
|
|||
data[] |
no | BillingService |
|
|||
data[].id |
yes | integer |
3 |
|||
data[].name |
yes | string |
"Подбор товара" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Rename a billing service type
| operationId | billingRenameABillingServiceType |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
The dictionary is shared between domains. Requires tariff edit permission and global data scope.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
service |
path | yes | integer |
min: 1 | Internal service ID | 3 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
name |
yes | string |
maxLength: 255 | "Подбор товара" |
Request examples
No explicit example is defined for this media type.
Responses
200 OK
BillingId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List software fee domains
| operationId | billingListSoftwareFeeDomains |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
reStocker only. Uses the Software Fees cabinet permission and the domain scope of the current user.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/software-fees/domains" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
This operation has no path, query, or header parameters.
Request body
No request body.
Responses
200 OK
BillingSoftwareDomainList200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingSoftwareDomain> |
|
|||
data[] |
no | BillingSoftwareDomain |
|
|||
data[].id |
yes | integer |
10 |
|||
data[].name |
yes | string |
"Fulfillment" |
|||
data[].timezone |
yes | string | null |
"Europe/Moscow" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": [
{
"id": 10,
"name": "Fulfillment",
"timezone": "Europe/Moscow"
}
],
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Start a software fee calculation
| operationId | billingStartASoftwareFeeCalculation |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
reStocker only. The domain must be visible to the caller. Select one to twelve months ending no later than the current month.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
domain_id |
yes | integer |
min: 1 | 10 |
||
from |
yes | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
to |
yes | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
Request examples
No explicit example is defined for this media type.
Responses
202 Accepted for processing
BillingSoftwareRunId202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingSoftwareRunId |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get software fee calculation status
| operationId | billingGetSoftwareFeeCalculationStatus |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
reStocker only. Reports status and progress for the requester after checking the current domain scope.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingSoftwareRun200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingSoftwareRun |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
data.status |
yes | enum |
enum: queued, processing, completed, failed, timeout, expired | |
||
data.phase |
yes | string |
"queued" |
|||
data.processed_days |
yes | integer |
0 |
|||
data.total_days |
yes | integer |
31 |
|||
data.current_day |
no | string:date | null |
"2026-10-31" |
|||
data.filters |
yes | object |
|
|||
data.filters.domain_id |
yes | integer |
min: 1 | 10 |
||
data.filters.from |
yes | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
data.filters.to |
yes | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Download a software fee act
| operationId | billingDownloadASoftwareFeeAct |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Uses saved requisites. Select a completed calendar month with a positive total in the report.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
act_format |
path | yes | enum |
enum: pdf, docx | Internal act_format ID | |
||
month |
query | yes | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | Filter or pagination value for month. | "2026-10" |
||
number |
query | no | string |
maxLength: 100 | Filter or pagination value for number. | "PO-10-202610" |
||
date |
query | no | string:date |
Filter or pagination value for date. | "2026-10-31" |
Request body
No request body.
Responses
200 OK
BillingDocumentPrint_c776e2
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "The export file expired"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Download a software fee report
| operationId | billingDownloadASoftwareFeeReport |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Downloads the calculated report in PDF, Word or Excel, or the underlying orders in CSV.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
report_format |
path | yes | enum |
enum: pdf, docx, xlsx, csv | Internal report_format ID | |
Request body
No request body.
Responses
200 OK
BillingDocumentPrint_59e077
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
(root) |
no | string:binary |
|
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "The export file expired"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Read software fee act requisites
| operationId | billingReadSoftwareFeeActRequisites |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Reads the requester’s saved profile for the domain of an authorized software fee run.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
Request body
No request body.
Responses
200 OK
BillingSoftwareProfile200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingSoftwareProfile |
|
|||
data.profile |
yes | object |
|
|||
data.profile.issuer_company_id |
no | integer | null |
min: 1 | 78 |
||
data.profile.customer_company_id |
no | integer | null |
min: 1 | 150 |
||
data.profile.contract_date |
no | string:date | null |
"2026-10-31" |
|||
data.profile.contract_number |
no | string | null |
maxLength: 150 | "FF-734-2026" |
||
data.profile.issuer_name |
no | string | null |
maxLength: 300 | |
||
data.profile.customer_name |
no | string | null |
maxLength: 300 | |
||
data.profile.issuer_details |
no | string | null |
maxLength: 2500 | |
||
data.profile.customer_details |
no | string | null |
maxLength: 2500 | |
||
data.profile.tax_text |
no | string | null |
maxLength: 500 | |
||
data.profile.issuer_signer |
no | string | null |
maxLength: 300 | |
||
data.profile.customer_signer |
no | string | null |
maxLength: 300 | |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"profile": {
}
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Save software fee act requisites
| operationId | billingSaveSoftwareFeeActRequisites |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Stores the requester’s act profile in the run domain after validating company access.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
profile |
yes | object |
|
|||
profile.issuer_company_id |
no | integer | null |
min: 1 | 78 |
||
profile.customer_company_id |
no | integer | null |
min: 1 | 150 |
||
profile.contract_date |
no | string:date | null |
"2026-10-31" |
|||
profile.contract_number |
no | string | null |
maxLength: 150 | "FF-734-2026" |
||
profile.issuer_name |
no | string | null |
maxLength: 300 | |
||
profile.customer_name |
no | string | null |
maxLength: 300 | |
||
profile.issuer_details |
no | string | null |
maxLength: 2500 | |
||
profile.customer_details |
no | string | null |
maxLength: 2500 | |
||
profile.tax_text |
no | string | null |
maxLength: 500 | |
||
profile.issuer_signer |
no | string | null |
maxLength: 300 | |
||
profile.customer_signer |
no | string | null |
maxLength: 300 | |
Request examples
No explicit example is defined for this media type.
Responses
200 OK
BillingSoftwareRunId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingSoftwareRunId |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Refresh the software fee warehouse allocation
| operationId | billingRefreshTheSoftwareFeeWarehouseAllocation |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Queues refresh of a saved calculation with sufficient checkpoint data.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
202 Accepted for processing
BillingSoftwareRunId202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingSoftwareRunId |
|
|||
data.id |
yes | string:uuid |
"5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": "5a3d3624-35d6-4515-92c9-381cf958f65a"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Read the software fee calculation
| operationId | billingReadTheSoftwareFeeCalculation |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Returns monthly totals in kopecks and up to 50 calculation details per page, or the current partial snapshot.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
run |
path | yes | string:uuid |
Export run UUID | "5a3d3624-35d6-4515-92c9-381cf958f65a" |
|||
page |
query | no | integer |
min: 1 max: 100000 |
Filter or pagination value for page. | 1 |
Request body
No request body.
Responses
200 OK
BillingSoftwareResult200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingSoftwareResult |
|
|||
data.rows |
yes | array<object> |
|
|||
data.rows[] |
no | object |
|
|||
data.rows[].month |
no | string |
pattern: ^[0-9]{4}-[0-9]{2}$ | "2026-10" |
||
data.rows[].domain_id |
no | integer |
10 |
|||
data.rows[].orders |
no | integer |
340 |
|||
data.rows[].total_kopecks |
no | integer |
2534000 |
|||
data.rows[].complete |
no | boolean |
true |
|||
data.rows[].warnings |
no | array<string> |
|
|||
data.rows[].warnings[] |
no | string |
|
|||
data.totals |
yes | object |
|
|||
data.complete |
yes | boolean |
true |
|||
data.details |
no | array<object> |
|
|||
data.details[] |
no | object |
Existing software fee calculation line. | |
||
data.detail_count |
no | integer |
50 |
|||
data.page |
no | integer |
1 |
|||
data.warehouse_rule |
no | integer |
2 |
|||
data.shipment_rule |
no | integer |
2 |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"rows": [
{
}
],
"totals": {
},
"complete": true
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
410 The export file expired
BillingError410
The export file expired
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "The export file expired"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing tariffs
| operationId | billingListBillingTariffs |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires tariff view permission. Tariff prices and templates follow amount visibility.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/tariffs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[name] |
query | no | string |
Filter or pagination value for filter[name]. | "Томилино" |
|||
filter[status] |
query | no | enum |
enum: 1, 2, 3 | Filter or pagination value for filter[status]. | |
Request body
No request body.
Responses
200 OK
BillingTariffPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingTariff> |
|
|||
data[] |
no | BillingTariff |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].domain_id |
yes | integer |
10 |
|||
data[].name |
yes | string |
maxLength: 50 | "Тариф Томилино" |
||
data[].starts_on |
yes | string:date |
"2026-10-31" |
|||
data[].status |
yes | enum |
enum: 1, 2, 3 | |
||
data[].date_type |
yes | enum |
enum: 0, 1 | |
||
data[].enabled_services |
no | array<enum> |
|
|||
data[].enabled_services[] |
no | 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 |
no | BillingRateSections |
|
|||
data[].rate_sections.accepting |
no | object |
|
|||
data[].rate_sections.accepting.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.accepting.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.accepting.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.accepting.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.returns |
no | object |
|
|||
data[].rate_sections.returns.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.returns.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.returns.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.returns.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.crossdock |
no | object |
|
|||
data[].rate_sections.crossdock.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.crossdock.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.crossdock.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.crossdock.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.quant_unpacking |
no | object |
|
|||
data[].rate_sections.quant_unpacking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.quant_unpacking.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.quant_unpacking.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.quant_unpacking.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.picking |
no | object |
|
|||
data[].rate_sections.picking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.picking.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.picking.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.picking.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.packing |
no | object |
|
|||
data[].rate_sections.packing.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.packing.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.packing.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.packing.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.packing_wb_fbs |
no | object |
|
|||
data[].rate_sections.packing_wb_fbs.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.packing_wb_fbs.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.packing_wb_fbs.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.packing_wb_fbs.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.marking |
no | object |
|
|||
data[].rate_sections.marking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.marking.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.marking.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.marking.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_items |
no | object |
|
|||
data[].rate_sections.storage_items.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data[].rate_sections.storage_items.datamatrix |
no | number | null |
12.5 |
|||
data[].rate_sections.storage_items.proc_dimensions |
no | number | null |
12.5 |
|||
data[].rate_sections.storage_items.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_items.collapse_daily_transactions |
no | boolean |
false |
|||
data[].rate_sections.storage_items.minimum_daily_cost |
no | number |
12.5 |
|||
data[].rate_sections.accepting_services |
no | object |
|
|||
data[].rate_sections.accepting_services.services |
yes | array<object> |
|
|||
data[].rate_sections.accepting_services.services[] |
no | object |
|
|||
data[].rate_sections.accepting_services.services[].name |
yes | string |
"Услуга" |
|||
data[].rate_sections.accepting_services.services[].price |
yes | number |
12.5 |
|||
data[].rate_sections.accepting_services.services[].code |
no | string | null |
"SVC-19" |
|||
data[].rate_sections.accepting_services.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.returns_services |
no | object |
|
|||
data[].rate_sections.returns_services.services |
yes | array<object> |
|
|||
data[].rate_sections.returns_services.services[] |
no | object |
|
|||
data[].rate_sections.returns_services.services[].name |
yes | string |
"Услуга" |
|||
data[].rate_sections.returns_services.services[].price |
yes | number |
12.5 |
|||
data[].rate_sections.returns_services.services[].code |
no | string | null |
"SVC-19" |
|||
data[].rate_sections.returns_services.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.order_services |
no | object |
|
|||
data[].rate_sections.order_services.services |
yes | array<object> |
|
|||
data[].rate_sections.order_services.services[] |
no | object |
|
|||
data[].rate_sections.order_services.services[].name |
yes | string |
"Услуга" |
|||
data[].rate_sections.order_services.services[].price |
yes | number |
12.5 |
|||
data[].rate_sections.order_services.services[].code |
no | string | null |
"SVC-19" |
|||
data[].rate_sections.order_services.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.unloading |
no | object |
|
|||
data[].rate_sections.unloading.items |
yes | array<object> |
|
|||
data[].rate_sections.unloading.items[] |
no | object |
|
|||
data[].rate_sections.unloading.items[].name |
yes | string |
"Услуга" |
|||
data[].rate_sections.unloading.items[].price |
yes | number |
12.5 |
|||
data[].rate_sections.unloading.items[].code |
no | string | null |
"SVC-19" |
|||
data[].rate_sections.unloading.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.picking_weight |
no | object |
|
|||
data[].rate_sections.picking_weight.items |
yes | integer |
1 |
|||
data[].rate_sections.picking_weight.order_weight |
yes | integer |
5000 |
|||
data[].rate_sections.picking_weight.base_tariff |
yes | number |
12.5 |
|||
data[].rate_sections.picking_weight.each_weight |
yes | integer |
1000 |
|||
data[].rate_sections.picking_weight.each_weight_tariff |
yes | number |
12.5 |
|||
data[].rate_sections.picking_weight.each_item_tariff |
yes | number |
12.5 |
|||
data[].rate_sections.picking_weight.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.consumables |
no | object |
|
|||
data[].rate_sections.consumables.percentage |
yes | number |
min: -100 max: 10000 |
10 |
||
data[].rate_sections.consumables.price_source |
yes | enum |
enum: of_price, acceptance_price | |
||
data[].rate_sections.consumables.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_volume |
no | object |
|
|||
data[].rate_sections.storage_volume.unit_volume_m3 |
yes | number |
12.5 |
|||
data[].rate_sections.storage_volume.unit_price |
yes | number |
12.5 |
|||
data[].rate_sections.storage_volume.minimum_volume_m3 |
yes | number |
12.5 |
|||
data[].rate_sections.storage_volume.step_volume_m3 |
yes | number |
12.5 |
|||
data[].rate_sections.storage_volume.default_dimension_x |
no | number |
12.5 |
|||
data[].rate_sections.storage_volume.default_dimension_y |
no | number |
12.5 |
|||
data[].rate_sections.storage_volume.default_dimension_z |
no | number |
12.5 |
|||
data[].rate_sections.storage_volume.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_places |
no | object |
|
|||
data[].rate_sections.storage_places.shelf |
yes | object |
|
|||
data[].rate_sections.storage_places.shelf.mode |
yes | enum |
enum: places, items | |
||
data[].rate_sections.storage_places.shelf.price |
yes | number |
12.5 |
|||
data[].rate_sections.storage_places.pallet |
yes | object |
|
|||
data[].rate_sections.storage_places.pallet.mode |
yes | enum |
enum: places, items | |
||
data[].rate_sections.storage_places.pallet.price |
yes | number |
12.5 |
|||
data[].rate_sections.storage_places.collapse_daily_transactions |
no | boolean |
false |
|||
data[].rate_sections.storage_places.minimum_daily_cost |
no | number |
12.5 |
|||
data[].rate_sections.storage_places.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.storage_insurance |
no | object |
|
|||
data[].rate_sections.storage_insurance.price |
yes | number |
12.5 |
|||
data[].rate_sections.storage_insurance.collapse_daily_transactions |
no | boolean |
false |
|||
data[].rate_sections.storage_insurance.template |
no | string | null |
maxLength: 1000 | |
||
data[].rate_sections.fbs_delivery |
no | object |
|
|||
data[].rate_sections.fbs_delivery.channels |
yes | object |
Keyed by the delivery scope returned by the tariff, e.g. marketplace:wildberries. | |
||
data[].combined_storage |
no | BillingCombinedStorage |
|
|||
data[].combined_storage.product |
yes | enum |
enum: storage_items, storage_volume | |
||
data[].combined_storage.priority |
yes | enum |
enum: places, product | |
||
data[].combined_storage.shelf |
yes | boolean |
true |
|||
data[].combined_storage.pallet |
yes | boolean |
true |
|||
data[].invoice_template |
no | string | null |
maxLength: 25000 | |
||
data[].act_template |
no | string | null |
maxLength: 25000 | |
||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Create a billing tariff
| operationId | billingCreateABillingTariff |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Creates a tariff in the current domain. Set its services and rates with the tariff update operation.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
name |
yes | string |
maxLength: 50 | "Тариф Томилино" |
||
starts_on |
yes | string:date |
"2026-10-31" |
Request examples
No explicit example is defined for this media type.
Responses
201 Created
BillingId201
Created
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get a billing tariff
| operationId | billingGetABillingTariff |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Includes pricing sections and document templates when amounts are visible.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/tariffs/21" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
tariff |
path | yes | integer |
min: 1 | Internal tariff ID | 21 |
Request body
No request body.
Responses
200 OK
BillingTariff200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingTariff |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
data.domain_id |
yes | integer |
10 |
|||
data.name |
yes | string |
maxLength: 50 | "Тариф Томилино" |
||
data.starts_on |
yes | string:date |
"2026-10-31" |
|||
data.status |
yes | enum |
enum: 1, 2, 3 | |
||
data.date_type |
yes | enum |
enum: 0, 1 | |
||
data.enabled_services |
no | array<enum> |
|
|||
data.enabled_services[] |
no | 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 |
no | BillingRateSections |
|
|||
data.rate_sections.accepting |
no | object |
|
|||
data.rate_sections.accepting.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.accepting.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.accepting.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.accepting.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.returns |
no | object |
|
|||
data.rate_sections.returns.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.returns.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.returns.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.returns.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.crossdock |
no | object |
|
|||
data.rate_sections.crossdock.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.crossdock.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.crossdock.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.crossdock.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.quant_unpacking |
no | object |
|
|||
data.rate_sections.quant_unpacking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.quant_unpacking.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.quant_unpacking.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.quant_unpacking.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.picking |
no | object |
|
|||
data.rate_sections.picking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.picking.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.picking.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.picking.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.packing |
no | object |
|
|||
data.rate_sections.packing.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.packing.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.packing.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.packing.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.packing_wb_fbs |
no | object |
|
|||
data.rate_sections.packing_wb_fbs.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.packing_wb_fbs.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.packing_wb_fbs.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.packing_wb_fbs.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.marking |
no | object |
|
|||
data.rate_sections.marking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.marking.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.marking.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.marking.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_items |
no | object |
|
|||
data.rate_sections.storage_items.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
data.rate_sections.storage_items.datamatrix |
no | number | null |
12.5 |
|||
data.rate_sections.storage_items.proc_dimensions |
no | number | null |
12.5 |
|||
data.rate_sections.storage_items.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_items.collapse_daily_transactions |
no | boolean |
false |
|||
data.rate_sections.storage_items.minimum_daily_cost |
no | number |
12.5 |
|||
data.rate_sections.accepting_services |
no | object |
|
|||
data.rate_sections.accepting_services.services |
yes | array<object> |
|
|||
data.rate_sections.accepting_services.services[] |
no | object |
|
|||
data.rate_sections.accepting_services.services[].name |
yes | string |
"Услуга" |
|||
data.rate_sections.accepting_services.services[].price |
yes | number |
12.5 |
|||
data.rate_sections.accepting_services.services[].code |
no | string | null |
"SVC-19" |
|||
data.rate_sections.accepting_services.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.returns_services |
no | object |
|
|||
data.rate_sections.returns_services.services |
yes | array<object> |
|
|||
data.rate_sections.returns_services.services[] |
no | object |
|
|||
data.rate_sections.returns_services.services[].name |
yes | string |
"Услуга" |
|||
data.rate_sections.returns_services.services[].price |
yes | number |
12.5 |
|||
data.rate_sections.returns_services.services[].code |
no | string | null |
"SVC-19" |
|||
data.rate_sections.returns_services.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.order_services |
no | object |
|
|||
data.rate_sections.order_services.services |
yes | array<object> |
|
|||
data.rate_sections.order_services.services[] |
no | object |
|
|||
data.rate_sections.order_services.services[].name |
yes | string |
"Услуга" |
|||
data.rate_sections.order_services.services[].price |
yes | number |
12.5 |
|||
data.rate_sections.order_services.services[].code |
no | string | null |
"SVC-19" |
|||
data.rate_sections.order_services.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.unloading |
no | object |
|
|||
data.rate_sections.unloading.items |
yes | array<object> |
|
|||
data.rate_sections.unloading.items[] |
no | object |
|
|||
data.rate_sections.unloading.items[].name |
yes | string |
"Услуга" |
|||
data.rate_sections.unloading.items[].price |
yes | number |
12.5 |
|||
data.rate_sections.unloading.items[].code |
no | string | null |
"SVC-19" |
|||
data.rate_sections.unloading.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.picking_weight |
no | object |
|
|||
data.rate_sections.picking_weight.items |
yes | integer |
1 |
|||
data.rate_sections.picking_weight.order_weight |
yes | integer |
5000 |
|||
data.rate_sections.picking_weight.base_tariff |
yes | number |
12.5 |
|||
data.rate_sections.picking_weight.each_weight |
yes | integer |
1000 |
|||
data.rate_sections.picking_weight.each_weight_tariff |
yes | number |
12.5 |
|||
data.rate_sections.picking_weight.each_item_tariff |
yes | number |
12.5 |
|||
data.rate_sections.picking_weight.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.consumables |
no | object |
|
|||
data.rate_sections.consumables.percentage |
yes | number |
min: -100 max: 10000 |
10 |
||
data.rate_sections.consumables.price_source |
yes | enum |
enum: of_price, acceptance_price | |
||
data.rate_sections.consumables.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_volume |
no | object |
|
|||
data.rate_sections.storage_volume.unit_volume_m3 |
yes | number |
12.5 |
|||
data.rate_sections.storage_volume.unit_price |
yes | number |
12.5 |
|||
data.rate_sections.storage_volume.minimum_volume_m3 |
yes | number |
12.5 |
|||
data.rate_sections.storage_volume.step_volume_m3 |
yes | number |
12.5 |
|||
data.rate_sections.storage_volume.default_dimension_x |
no | number |
12.5 |
|||
data.rate_sections.storage_volume.default_dimension_y |
no | number |
12.5 |
|||
data.rate_sections.storage_volume.default_dimension_z |
no | number |
12.5 |
|||
data.rate_sections.storage_volume.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_places |
no | object |
|
|||
data.rate_sections.storage_places.shelf |
yes | object |
|
|||
data.rate_sections.storage_places.shelf.mode |
yes | enum |
enum: places, items | |
||
data.rate_sections.storage_places.shelf.price |
yes | number |
12.5 |
|||
data.rate_sections.storage_places.pallet |
yes | object |
|
|||
data.rate_sections.storage_places.pallet.mode |
yes | enum |
enum: places, items | |
||
data.rate_sections.storage_places.pallet.price |
yes | number |
12.5 |
|||
data.rate_sections.storage_places.collapse_daily_transactions |
no | boolean |
false |
|||
data.rate_sections.storage_places.minimum_daily_cost |
no | number |
12.5 |
|||
data.rate_sections.storage_places.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.storage_insurance |
no | object |
|
|||
data.rate_sections.storage_insurance.price |
yes | number |
12.5 |
|||
data.rate_sections.storage_insurance.collapse_daily_transactions |
no | boolean |
false |
|||
data.rate_sections.storage_insurance.template |
no | string | null |
maxLength: 1000 | |
||
data.rate_sections.fbs_delivery |
no | object |
|
|||
data.rate_sections.fbs_delivery.channels |
yes | object |
Keyed by the delivery scope returned by the tariff, e.g. marketplace:wildberries. | |
||
data.combined_storage |
no | BillingCombinedStorage |
|
|||
data.combined_storage.product |
yes | enum |
enum: storage_items, storage_volume | |
||
data.combined_storage.priority |
yes | enum |
enum: places, product | |
||
data.combined_storage.shelf |
yes | boolean |
true |
|||
data.combined_storage.pallet |
yes | boolean |
true |
|||
data.invoice_template |
no | string | null |
maxLength: 25000 | |
||
data.act_template |
no | string | null |
maxLength: 25000 | |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245,
"domain_id": 10,
"name": "Тариф Томилино",
"starts_on": "2026-10-31",
"status": 1,
"date_type": 0
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Update a billing tariff
| operationId | billingUpdateABillingTariff |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
tariff |
path | yes | integer |
min: 1 | Internal tariff ID | 21 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
name |
no | string |
maxLength: 50 | "Тариф Томилино" |
||
starts_on |
no | string:date |
"2026-10-31" |
|||
status |
no | enum |
enum: 1, 2, 3 | |
||
date_type |
no | enum |
enum: 0, 1 | |
||
enabled_services |
no | array<enum> |
|
|||
enabled_services[] |
no | 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 |
no | BillingRateSections |
|
|||
rate_sections.accepting |
no | object |
|
|||
rate_sections.accepting.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.accepting.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.accepting.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.accepting.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.returns |
no | object |
|
|||
rate_sections.returns.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.returns.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.returns.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.returns.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.crossdock |
no | object |
|
|||
rate_sections.crossdock.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.crossdock.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.crossdock.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.crossdock.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.quant_unpacking |
no | object |
|
|||
rate_sections.quant_unpacking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.quant_unpacking.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.quant_unpacking.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.quant_unpacking.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.picking |
no | object |
|
|||
rate_sections.picking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.picking.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.picking.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.picking.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.packing |
no | object |
|
|||
rate_sections.packing.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.packing.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.packing.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.packing.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.packing_wb_fbs |
no | object |
|
|||
rate_sections.packing_wb_fbs.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.packing_wb_fbs.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.packing_wb_fbs.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.packing_wb_fbs.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.marking |
no | object |
|
|||
rate_sections.marking.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.marking.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.marking.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.marking.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.storage_items |
no | object |
|
|||
rate_sections.storage_items.rates |
no | 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 |
no | 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 |
no | string | null |
maxLength: 150 | "SVC-3" |
||
rate_sections.storage_items.datamatrix |
no | number | null |
12.5 |
|||
rate_sections.storage_items.proc_dimensions |
no | number | null |
12.5 |
|||
rate_sections.storage_items.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.storage_items.collapse_daily_transactions |
no | boolean |
false |
|||
rate_sections.storage_items.minimum_daily_cost |
no | number |
12.5 |
|||
rate_sections.accepting_services |
no | object |
|
|||
rate_sections.accepting_services.services |
yes | array<object> |
|
|||
rate_sections.accepting_services.services[] |
no | object |
|
|||
rate_sections.accepting_services.services[].name |
yes | string |
"Услуга" |
|||
rate_sections.accepting_services.services[].price |
yes | number |
12.5 |
|||
rate_sections.accepting_services.services[].code |
no | string | null |
"SVC-19" |
|||
rate_sections.accepting_services.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.returns_services |
no | object |
|
|||
rate_sections.returns_services.services |
yes | array<object> |
|
|||
rate_sections.returns_services.services[] |
no | object |
|
|||
rate_sections.returns_services.services[].name |
yes | string |
"Услуга" |
|||
rate_sections.returns_services.services[].price |
yes | number |
12.5 |
|||
rate_sections.returns_services.services[].code |
no | string | null |
"SVC-19" |
|||
rate_sections.returns_services.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.order_services |
no | object |
|
|||
rate_sections.order_services.services |
yes | array<object> |
|
|||
rate_sections.order_services.services[] |
no | object |
|
|||
rate_sections.order_services.services[].name |
yes | string |
"Услуга" |
|||
rate_sections.order_services.services[].price |
yes | number |
12.5 |
|||
rate_sections.order_services.services[].code |
no | string | null |
"SVC-19" |
|||
rate_sections.order_services.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.unloading |
no | object |
|
|||
rate_sections.unloading.items |
yes | array<object> |
|
|||
rate_sections.unloading.items[] |
no | object |
|
|||
rate_sections.unloading.items[].name |
yes | string |
"Услуга" |
|||
rate_sections.unloading.items[].price |
yes | number |
12.5 |
|||
rate_sections.unloading.items[].code |
no | string | null |
"SVC-19" |
|||
rate_sections.unloading.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.picking_weight |
no | object |
|
|||
rate_sections.picking_weight.items |
yes | integer |
1 |
|||
rate_sections.picking_weight.order_weight |
yes | integer |
5000 |
|||
rate_sections.picking_weight.base_tariff |
yes | number |
12.5 |
|||
rate_sections.picking_weight.each_weight |
yes | integer |
1000 |
|||
rate_sections.picking_weight.each_weight_tariff |
yes | number |
12.5 |
|||
rate_sections.picking_weight.each_item_tariff |
yes | number |
12.5 |
|||
rate_sections.picking_weight.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.consumables |
no | object |
|
|||
rate_sections.consumables.percentage |
yes | number |
min: -100 max: 10000 |
10 |
||
rate_sections.consumables.price_source |
yes | enum |
enum: of_price, acceptance_price | |
||
rate_sections.consumables.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.storage_volume |
no | object |
|
|||
rate_sections.storage_volume.unit_volume_m3 |
yes | number |
12.5 |
|||
rate_sections.storage_volume.unit_price |
yes | number |
12.5 |
|||
rate_sections.storage_volume.minimum_volume_m3 |
yes | number |
12.5 |
|||
rate_sections.storage_volume.step_volume_m3 |
yes | number |
12.5 |
|||
rate_sections.storage_volume.default_dimension_x |
no | number |
12.5 |
|||
rate_sections.storage_volume.default_dimension_y |
no | number |
12.5 |
|||
rate_sections.storage_volume.default_dimension_z |
no | number |
12.5 |
|||
rate_sections.storage_volume.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.storage_places |
no | object |
|
|||
rate_sections.storage_places.shelf |
yes | object |
|
|||
rate_sections.storage_places.shelf.mode |
yes | enum |
enum: places, items | |
||
rate_sections.storage_places.shelf.price |
yes | number |
12.5 |
|||
rate_sections.storage_places.pallet |
yes | object |
|
|||
rate_sections.storage_places.pallet.mode |
yes | enum |
enum: places, items | |
||
rate_sections.storage_places.pallet.price |
yes | number |
12.5 |
|||
rate_sections.storage_places.collapse_daily_transactions |
no | boolean |
false |
|||
rate_sections.storage_places.minimum_daily_cost |
no | number |
12.5 |
|||
rate_sections.storage_places.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.storage_insurance |
no | object |
|
|||
rate_sections.storage_insurance.price |
yes | number |
12.5 |
|||
rate_sections.storage_insurance.collapse_daily_transactions |
no | boolean |
false |
|||
rate_sections.storage_insurance.template |
no | string | null |
maxLength: 1000 | |
||
rate_sections.fbs_delivery |
no | object |
|
|||
rate_sections.fbs_delivery.channels |
yes | object |
Keyed by the delivery scope returned by the tariff, e.g. marketplace:wildberries. | |
||
combined_storage |
no | BillingCombinedStorage |
|
|||
combined_storage.product |
yes | enum |
enum: storage_items, storage_volume | |
||
combined_storage.priority |
yes | enum |
enum: places, product | |
||
combined_storage.shelf |
yes | boolean |
true |
|||
combined_storage.pallet |
yes | boolean |
true |
|||
invoice_template |
no | string | null |
maxLength: 25000 | |
||
act_template |
no | string | null |
maxLength: 25000 | |
||
storage_starts_on |
no | string:date |
"2026-10-31" |
Request examples
No explicit example is defined for this media type.
Responses
200 OK
BillingId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Delete an unused billing tariff
| operationId | billingDeleteAnUnusedBillingTariff |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Tariffs referenced by warehouses, historical assignments or transactions are protected.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/tariffs/21" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
tariff |
path | yes | integer |
min: 1 | Internal tariff ID | 21 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingDeleted
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | null |
|
|||
meta |
yes | object |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.deleted |
yes | boolean |
true |
Response examples
Example
{
"data": null,
"meta": {
"api_version": "v2",
"deleted": true
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
503 Required billing subsystem unavailable
BillingError503
Required billing subsystem unavailable
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Required billing subsystem unavailable"
}
Copy a billing tariff
| operationId | billingCopyABillingTariff |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Copies the tariff within the same domain and creates an inactive plan starting today.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
tariff |
path | yes | integer |
min: 1 | Internal tariff ID | 21 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
name |
no | string |
maxLength: 50 | "Тариф Томилино" |
Request examples
No explicit example is defined for this media type.
Responses
201 Created
BillingId201
Created
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List tariff audit events
| operationId | billingListTariffAuditEvents |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires visible amounts and access to the tariff.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/tariffs/21/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
tariff |
path | yes | integer |
min: 1 | Internal tariff ID | 21 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingAuditPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingAudit> |
|
|||
data[] |
no | BillingAudit |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].action_type_id |
yes | integer |
10 |
|||
data[].actor_id |
yes | integer | null |
18 |
|||
data[].created_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
yes | string | null |
"Начисление обновлено" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List billing transactions
| operationId | billingListBillingTransactions |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
||
filter[id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[id]. | 734 |
||
filter[account_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[account_id]. | 734 |
||
filter[source_warehouse_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[source_warehouse_id]. | 734 |
||
filter[service_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[service_id]. | 734 |
||
filter[shop_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[shop_id]. | 734 |
||
filter[document_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[document_id]. | 734 |
||
filter[customer_company_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[customer_company_id]. | 734 |
||
filter[executor_company_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[executor_company_id]. | 734 |
||
filter[act_id] |
query | no | integer |
min: 1 | Filter or pagination value for filter[act_id]. | 734 |
||
date_from |
query | no | string:date |
Filter or pagination value for date_from. | "2026-10-31" |
|||
date_to |
query | no | string:date |
Filter or pagination value for date_to. | "2026-10-31" |
|||
sort |
query | no | string |
Allowlisted fields: date and id. Prefix a field with - for descending order. Unknown fields are ignored. | "-date,id" |
Request body
No request body.
Responses
200 OK
BillingTransactionPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingTransaction> |
|
|||
data[] |
no | BillingTransaction |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].date |
yes | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data[].account_id |
yes | integer |
min: 1 | 734 |
||
data[].source_warehouse_id |
yes | integer |
762 |
|||
data[].service_id |
yes | integer |
3 |
|||
data[].service_name |
no | string | null |
"Подбор товара" |
|||
data[].shop_id |
no | integer | null |
4 |
|||
data[].customer_company_id |
no | integer | null |
150 |
|||
data[].executor_company_id |
no | integer | null |
78 |
|||
data[].document_type |
no | string | null |
"order" |
|||
data[].document_id |
no | integer | null |
58462 |
|||
data[].quantity |
no | number |
2 |
|||
data[].multiplicity |
no | integer |
1 |
|||
data[].act_id |
no | integer | null |
193 |
|||
data[].amount |
no | number |
12.5 |
|||
data[].tax |
no | number |
2.5 |
|||
data[].total |
no | number |
15 |
|||
data[].description |
no | string | null |
"Подбор 2 единиц" |
|||
data[].cdek_service_sale_number |
no | string | null |
"CDEK-123456789" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Create a manual charge
| operationId | billingCreateAManualCharge |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Uses the billing parent of the authorized source warehouse. Calculates VAT and optionally links an open act of the same account.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
source_warehouse_id |
yes | integer |
762 |
|||
service_id |
yes | integer |
3 |
|||
amount |
yes | number |
12.5 |
|||
description |
no | string | null |
maxLength: 250 | "Подбор 2 единиц" |
||
act_id |
no | integer | null |
min: 1 | 193 |
Request examples
No explicit example is defined for this media type.
Responses
201 Created
BillingTransactionReceipt201
Created
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingTransactionReceipt |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
data.account_id |
yes | integer |
min: 1 | 734 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245,
"account_id": 734
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Get a billing transaction
| operationId | billingGetABillingTransaction |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Transactions tab and access to the transaction account and source warehouse.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions/100245" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
transaction |
path | yes | integer |
min: 1 | Internal transaction ID | 100245 |
Request body
No request body.
Responses
200 OK
BillingTransaction200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingTransaction |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
data.date |
yes | string:date-time |
"2026-10-31T14:00:00+02:00" |
|||
data.account_id |
yes | integer |
min: 1 | 734 |
||
data.source_warehouse_id |
yes | integer |
762 |
|||
data.service_id |
yes | integer |
3 |
|||
data.service_name |
no | string | null |
"Подбор товара" |
|||
data.shop_id |
no | integer | null |
4 |
|||
data.customer_company_id |
no | integer | null |
150 |
|||
data.executor_company_id |
no | integer | null |
78 |
|||
data.document_type |
no | string | null |
"order" |
|||
data.document_id |
no | integer | null |
58462 |
|||
data.quantity |
no | number |
2 |
|||
data.multiplicity |
no | integer |
1 |
|||
data.act_id |
no | integer | null |
193 |
|||
data.amount |
no | number |
12.5 |
|||
data.tax |
no | number |
2.5 |
|||
data.total |
no | number |
15 |
|||
data.description |
no | string | null |
"Подбор 2 единиц" |
|||
data.cdek_service_sale_number |
no | string | null |
"CDEK-123456789" |
|||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Change a billing transaction
| operationId | billingChangeABillingTransaction |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
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.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
transaction |
path | yes | integer |
min: 1 | Internal transaction ID | 100245 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
Inline request body optional
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
amount |
no | number |
12.5 |
|||
description |
no | string | null |
maxLength: 250 | "Подбор 2 единиц" |
||
act_id |
no | integer | null |
min: 1 | 193 |
||
multiplicity |
no | integer |
min: 1 max: 10000 |
2 |
Request examples
No explicit example is defined for this media type.
Responses
200 OK
BillingId200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingId |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Remove a billing transaction
| operationId | billingRemoveABillingTransaction |
|---|---|
| Tag | Billing |
| Security | 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 request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request DELETE "${NWMS_BASE_URL}/api/v2/billing/transactions/100245" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
transaction |
path | yes | integer |
min: 1 | Internal transaction ID | 100245 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
200 OK
BillingDeletedTransaction200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingDeletedTransaction |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
data.result |
yes | enum |
enum: deleted, zeroed | |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245,
"result": "deleted"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List calculation lines
| operationId | billingListCalculationLines |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires the Transactions tab. Hides rates, prices and amounts according to the caller’s role.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions/100245/details" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
transaction |
path | yes | integer |
min: 1 | Internal transaction ID | 100245 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingTransactionDetailPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingTransactionDetail> |
|
|||
data[] |
no | BillingTransactionDetail |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].entity_id |
yes | integer | null |
1004 |
|||
data[].quantity |
yes | number |
2 |
|||
data[].measurement |
no | number | null |
12.5 |
|||
data[].weight |
no | number | null |
12.5 |
|||
data[].rate |
no | string | null |
"Small" |
|||
data[].price |
no | number | null |
12.5 |
|||
data[].tax |
no | number | null |
12.5 |
|||
data[].total |
no | number | null |
12.5 |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
List transaction audit events
| operationId | billingListTransactionAuditEvents |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
Requires extended edit rights for Transactions and visibility of amounts.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/billing/transactions/100245/logs" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
transaction |
path | yes | integer |
min: 1 | Internal transaction ID | 100245 |
||
page |
query | no | integer |
min: 1 | Filter or pagination value for page. | 1 |
||
per_page |
query | no | integer |
min: 1 max: 100 |
Filter or pagination value for per_page. | 50 |
Request body
No request body.
Responses
200 OK
BillingAuditPage200
OK
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<BillingAudit> |
|
|||
data[] |
no | BillingAudit |
|
|||
data[].id |
yes | integer |
min: 1 | 100245 |
||
data[].action_type_id |
yes | integer |
10 |
|||
data[].actor_id |
yes | integer | null |
18 |
|||
data[].created_at |
yes | string:date-time | null |
"2026-10-31T14:00:00+02:00" |
|||
data[].message |
yes | string | null |
"Начисление обновлено" |
|||
links |
yes | BillingLinks |
|
|||
links.first |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.last |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.prev |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
links.next |
yes | string | null |
"https://betawms.ffcdek.ru/api/v2/billing/accounts?page=1" |
|||
meta |
yes | BillingPagination |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
||
meta.current_page |
yes | integer |
1 |
|||
meta.last_page |
yes | integer |
1 |
|||
meta.per_page |
yes | integer |
max: 100 | 50 |
||
meta.total |
yes | integer |
12 |
Response examples
Example
{
"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 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}
Resend a linked CDEK transaction
| operationId | billingResendALinkedCdekTransaction |
|---|---|
| Tag | Billing |
| Security | bearerAuth |
CDEK WMS only. Queues an update of a transaction with an existing export number.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/billing/transactions/100245/resend-to-cdek" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
transaction |
path | yes | integer |
min: 1 | Internal transaction ID | 100245 |
||
Idempotency-Key |
header | no | string |
maxLength: 191 | Use a unique key per write. Reuse it only to retry the same request. | "billing-nov-734-001" |
Request body
No request body.
Responses
202 Accepted for processing
BillingResend202
Accepted for processing
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | BillingResend |
|
|||
data.id |
yes | integer |
min: 1 | 100245 |
||
data.status |
yes | enum |
enum: queued | |
||
meta |
yes | BillingMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | |
Response examples
Example
{
"data": {
"id": 100245,
"status": "queued"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
BillingError401
Authentication required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Authentication required"
}
403 Forbidden
BillingError403
Billing permission, tab or warehouse scope is insufficient
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Billing permission, tab or warehouse scope is insufficient"
}
404 Not found
BillingError404
Resource is unavailable in the caller’s scope
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Resource is unavailable in the caller’s scope"
}
409 Conflict
BillingError409
Lifecycle or idempotency conflict
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Lifecycle or idempotency conflict"
}
422 Validation error
BillingError422
Input validation failed
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Input validation failed"
}
429 Rate limit exceeded
BillingError429
Rate limit exceeded
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
errors |
no | object |
|
|||
error |
no | string |
"IDEMPOTENCY_KEY_CONFLICT" |
Response examples
Example
{
"message": "Rate limit exceeded"
}