Skip to content

Close bill

POST
/api/connector/v1/bills/close

Closes a bill so no further modification to it is possible. Note this operation supports Portfolio Access Tokens.

BillCloseParameters
object
ClientToken
required

Token identifying the client application.

string
>= 1 characters
AccessToken
required

Access token of the client application.

string
>= 1 characters
Client
required

Name and version of the client application.

string
>= 1 characters
EnterpriseId

Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.

string format: uuid
nullable
BillId
required

Unique identifier of the Bill to be closed.

string format: uuid
Type
required
Bill type

After a bill is closed, the Bill Type is set to Receipt or Invoice. Receipt indicates that the bill has been fully paid and the balance is zero. Invoice indicates that the bill has not yet been fully paid but an invoice has been issued. Prior to closing, Bill Type should not be used.

string
Allowed values: Receipt Invoice
BillCounterId

Unique identifier of the Counter to be used for closing. Default one is used when no value is provided.

string format: uuid
nullable
FiscalMachineId

Unique identifier of the Fiscal Machine to be used for closing. Default one is used when no value is provided.

string format: uuid
nullable
Options
Bill options parameters

Options of the bill. If not provided, both DisplayCustomer and DisplayTaxation are set by default.

object
DisplayCustomer
required
Boolean update value

Display customer information on a bill.

object
Value

Value which is to be updated.

boolean
DisplayTaxation
required
Boolean update value

Display taxation detail on a bill.

object
Value

Value which is to be updated.

boolean
TaxedDate
String update value

Date of consumption for tax purposes. Can be used only with Type of Invoice.

object
Value

Value which is to be updated.

string
nullable
DueDate
String update value

Deadline when bill is due to be paid. Can be used only with Type of Invoice.

object
Value

Value which is to be updated.

string
nullable
VariableSymbol
String update value

Optional unique identifier of requested payment. Can be used only with Type of Invoice.

object
Value

Value which is to be updated.

string
nullable
TaxIdentifier
String update value

Tax identifier of account to be put on a bill.

object
Value

Value which is to be updated.

string
nullable
AccountTaxIdentifier
String update value

Tax identifier of account to be put on a bill.

object
Value

Value which is to be updated.

string
nullable
CompanyTaxIdentifier
String update value

Tax identifier of company to be put on a bill.

object
Value

Value which is to be updated.

string
nullable
PurchaseOrderNumber
String update value

Unique number of the purchase order from the buyer.

object
Value

Value which is to be updated.

string
nullable
Notes
String update value

Notes to be attached to bill.

object
Value

Value which is to be updated.

string
nullable
Address
Address parameters

Address of the account to be displayed on bill. Overrides the default one taken from account profile.

object
Line1

First line of the address.

string
nullable
Line2

Second line of the address.

string
nullable
City

The city.

string
nullable
PostalCode

Postal code.

string format: postal-code
nullable
CountryCode

ISO 3166-1 code of the Country.

string
nullable
CountrySubdivisionCode

ISO 3166-2 code of the administrative division, e.g. DE-BW

string
nullable
AccountAddress
Address parameters

Address of the account to be displayed on bill. Overrides the default one taken from account profile.

object
Line1

First line of the address.

string
nullable
Line2

Second line of the address.

string
nullable
City

The city.

string
nullable
PostalCode

Postal code.

string format: postal-code
nullable
CountryCode

ISO 3166-1 code of the Country.

string
nullable
CountrySubdivisionCode

ISO 3166-2 code of the administrative division, e.g. DE-BW

string
nullable
AssociatedAccountData

Account data of the associated account on a bill. Currently one object is supported and only populated when the bill is closed.

Array<object>
nullable <= 1 items
Bill close account parameters
object
Id
required

Unique identifier of the associated account (Customer or Company) the bill is associated to.

string format: uuid
TaxIdentifier
String update value

Tax identifier of the associated account to be put on a bill.

object
Value

Value which is to be updated.

string
nullable
Address
Address parameters

Address of the associated account to be displayed on bill. Overrides the default one taken from account profile.

object
Line1

First line of the address.

string
nullable
Line2

Second line of the address.

string
nullable
City

The city.

string
nullable
PostalCode

Postal code.

string format: postal-code
nullable
CountryCode

ISO 3166-1 code of the Country.

string
nullable
CountrySubdivisionCode

ISO 3166-2 code of the administrative division, e.g. DE-BW

string
nullable
Example
{
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"BillId": "44eba542-193e-47c7-8077-abd7008eb206",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Type": "Receipt",
"BillCounterId": "84b25778-c1dd-48dc-8c00-ab3a00b6df14",
"FiscalMachineId": null,
"Options": {
"DisplayCustomer": {
"Value": false
},
"DisplayTaxation": null
},
"TaxedDate": {
"Value": "2020-07-07"
},
"DueDate": {
"Value": "2020-07-14"
},
"VariableSymbol": {
"Value": "5343"
},
"AccountTaxIdentifier": {
"Value": "446768"
},
"AccountAddress": {
"Line1": "Astronautů 2",
"Line2": "",
"City": "Havířov",
"PostalCode": "736 01",
"CountryCode": "CZ",
"CountrySubdivisionCode": null
},
"PurchaseOrderNumber": {
"Value": "XX-123"
},
"Notes": {
"Value": "Bill closing note"
},
"AssociatedAccountData": [
{
"Id": "84b25778-c1dd-48dc-8c00-ab3a00b6df14",
"TaxIdentifier": {
"Value": "123459"
},
"Address": {
"Line1": "Astronautů 2",
"Line2": "",
"City": "Havířov",
"PostalCode": "736 01",
"CountryCode": "CZ",
"CountrySubdivisionCode": null
}
}
]
}

OK

BillsCloseResult
object
Bills
required

The closed bills.

Array<object>
Bill
object
Id
required

Unique identifier of the bill.

string format: uuid
Name

Name of the bill.

string
nullable
EnterpriseId
required

Unique identifier of the Enterprise.

string format: uuid
AccountId
required

Unique identifier of the account (Customer or Company) the bill is issued to.

string format: uuid
AccountType
required
Account type

A discriminator specifying the type of account, i.e. Customer or Company.

Company

Customer

string
Allowed values: Company Customer
CustomerId

Unique identifier of the Customer the bill is issued to.

string format: uuid
nullable
CompanyId

Unique identifier of the Company specified in CompanyDetails or the Company the bill is issued to.

string format: uuid
nullable
AssociatedAccountIds
required

Unique identifiers of the Customers or Companies that are associated to the bill.

Array<string>
nullable
CounterId

Unique identifier of the bill Counter.

string format: uuid
nullable
State
required
Bill state

Whether the bill is Open or Closed.

string
Allowed values: Open Closed
Type
required
Bill type

After a bill is closed, the Bill Type is set to Receipt or Invoice. Receipt indicates that the bill has been fully paid and the balance is zero. Invoice indicates that the bill has not yet been fully paid but an invoice has been issued. Prior to closing, Bill Type should not be used.

string
Allowed values: Receipt Invoice
Number

Number of the bill.

string
nullable
VariableSymbol

Variable symbol of the bill.

string
nullable
CreatedUtc
required

Date and time of the bill creation in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
IssuedUtc

Date and time of the bill issuance in UTC timezone in ISO 8601 format.

string format: date-time
nullable
TaxedUtc

Taxation date of the bill in UTC timezone in ISO 8601 format.

string format: date-time
nullable
PaidUtc

Date when the bill was paid in UTC timezone in ISO 8601 format.

string format: date-time
nullable
DueUtc

Bill due date and time in UTC timezone in ISO 8601 format.

string format: date-time
nullable
LastReminderDateUtc

Date and time when an email reminder to pay an invoice was last sent, in UTC timezone in ISO 8601 format.

string format: date-time
nullable
UpdatedUtc
required

Date and time when the bill was last updated, in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
PurchaseOrderNumber

Unique number of the purchase order from the buyer.

string
nullable
Notes

Additional notes.

string
nullable
Options
Bill options

Options of the bill.

object
DisplayCustomer

Display customer information on a bill.

boolean
DisplayTaxation

Display taxation detail on a bill.

boolean
TrackReceivable

Tracking of payments is enabled for bill, only applicable for BillType of Invoice.

boolean
DisplayCid

Display CID number on bill, only applicable for BillType of Invoice.

boolean
Rebated

Whether the bill is rebated (both fully or partially).

boolean
Revenue
required
Array<object>
nullable
Accounting item
object
Id
string format: uuid
AccountId
string format: uuid
CustomerId
string format: uuid
nullable
OrderId
string format: uuid
nullable
ServiceId
string format: uuid
nullable
ProductId
string format: uuid
nullable
BillId
string format: uuid
nullable
InvoiceId
string format: uuid
nullable
AccountingCategoryId
string format: uuid
nullable
CreditCardId
string format: uuid
nullable
Type
string
nullable
SubType
string
nullable
Name
string
nullable
Notes
string
nullable
ConsumptionUtc
string
nullable
ClosedUtc
string
nullable
State
string
nullable
SubState
string
nullable
Amount
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
TaxExemptionReasonCode

Code of tax exemption reason. Restricted! This property is currently intended for Mews’ internal usage and may be subject to change.

string
nullable
Payments
required
Array<object>
nullable
Accounting item
object
Id
string format: uuid
AccountId
string format: uuid
CustomerId
string format: uuid
nullable
OrderId
string format: uuid
nullable
ServiceId
string format: uuid
nullable
ProductId
string format: uuid
nullable
BillId
string format: uuid
nullable
InvoiceId
string format: uuid
nullable
AccountingCategoryId
string format: uuid
nullable
CreditCardId
string format: uuid
nullable
Type
string
nullable
SubType
string
nullable
Name
string
nullable
Notes
string
nullable
ConsumptionUtc
string
nullable
ClosedUtc
string
nullable
State
string
nullable
SubState
string
nullable
Amount
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
TaxExemptionReasonCode

Code of tax exemption reason. Restricted! This property is currently intended for Mews’ internal usage and may be subject to change.

string
nullable
OrderItems
required

The order items (consumed items such as nights or products) on the bill.

Array<object>
nullable
Order item
object
Id

Unique identifier of the item.

string format: uuid
AccountId

Unique identifier of the account (for example Customer) the item belongs to.

string format: uuid
nullable
OrderId

Unique identifier of the order (or Reservation which is a special type of order) the item belongs to.

string format: uuid
BillId

Unique identifier of the Bill the item is assigned to.

string format: uuid
nullable
AccountingCategoryId

Unique identifier of the Accounting category the item belongs to.

string format: uuid
nullable
UnitCount

Unit count of item, i.e. the number of sub-items or units, if applicable.

integer format: int32
UnitAmount
Amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Amount
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
OriginalAmount
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
RevenueType

Revenue type of the item.

string
nullable
CreatorProfileId
string format: uuid
UpdaterProfileId
string format: uuid
CreatedUtc
string format: date
nullable
UpdatedUtc
string format: date
nullable
ConsumedUtc

Date and time of the item consumption in UTC timezone in ISO 8601 format.

string format: date
nullable
CanceledUtc
string format: date
nullable
ClosedUtc

Date and time of the item bill closure in UTC timezone in ISO 8601 format.

string format: date
nullable
StartUtc
string format: date
nullable
AccountingState

Accounting state of the item.

string
nullable
Data
Data

Additional data specific to particular order item.

object
Discriminator
string
Allowed values: CancellationFee Rebate Deposit ExchangeRateDifference CustomItem Surcharge SurchargeDiscount SpaceOrder ProductOrder Other TaxCorrection ResourceUpgradeFee InvoiceFee
Value
One of:
RebateOrderItemData
object
RebatedItemId
string format: uuid
nullable
PaymentItems
required

The payment items (such as cash, credit card payments or invoices) on the bill.

Array<object>
nullable
Payment item

Payment item

object
Id

Unique identifier of the item.

string format: uuid
AccountId

Unique identifier of the account (for example Customer) the item belongs to.

string format: uuid
BillId

Unique identifier of the Bill the item is assigned to.

string format: uuid
nullable
AccountingCategoryId

Unique identifier of the Accounting category the item belongs to.

string format: uuid
nullable
Amount
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
OriginalAmount
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
AmountDefault
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
Notes

Additional notes.

string
nullable
SettlementId

Identifier of the settled payment from the external system (ApplePay/GooglePay).

string
nullable
ConsumedUtc

Date and time of the item consumption in UTC timezone in ISO 8601 format.

string
nullable
ClosedUtc

Date and time of the item bill closure in UTC timezone in ISO 8601 format.

string
nullable
AccountingState

Accounting state of the item.

string
nullable
State

Payment state of the item.

string
nullable
Identifier
string
nullable
Data
Data

Additional data specific to particular payment item.

object
Discriminator
string
Allowed values: CreditCard Invoice Cash Unspecified BadDebts WireTransfer ExchangeRateDifference ExchangeRoundingDifference BankCharges Cheque Other
Value
One of:
PaymentCardPaymentData
object
PaymentCardId
string format: uuid
nullable
AssigneeData
Bill assignee data
object
Discriminator
Bill associated account data discriminator
string
Allowed values: BillCustomerData BillCompanyData
Value
One of:
Bill company data
object
Id
required

ID of the Company.

string
nullable
Address

Address of the company.

object
Line1
string
nullable
Line2
string
nullable
City
string
nullable
PostalCode
string
nullable
SubdivisionCode
string
nullable
CountryCode
string
nullable
LegalIdentifiers

The set of LegalIdentifiers for the company.

object
key
additional properties
string
BillingCode

A unique code for Mews to list on invoices it sends to the company.

string
nullable
Name
required

Name of the company.

string
>= 1 characters
FiscalIdentifier

Fiscal identifier of the company.

string
nullable
AdditionalTaxIdentifier

Additional tax identifier of the company.

string
nullable
DUNS

DUNS (Data Universal Numbering System) number of the company.

string
nullable
Telephone

Company telephone number.

string
nullable
TaxIdentifier

Tax identifier of the company.

string
nullable
InvoicingEmail

Invoicing email of the company.

string
nullable
Department

Department of the company.

string
nullable
OwnerData
Bill owner data

Additional information about owner of the bill. Can be a Customer or Company. Persisted at the time of closing of the bill.

object
Discriminator
Bill associated account data discriminator
string
Allowed values: BillCustomerData BillCompanyData
Value
One of:
Bill company data
object
Id
required

ID of the Company.

string
nullable
Address

Address of the company.

object
Line1
string
nullable
Line2
string
nullable
City
string
nullable
PostalCode
string
nullable
SubdivisionCode
string
nullable
CountryCode
string
nullable
LegalIdentifiers

The set of LegalIdentifiers for the company.

object
key
additional properties
string
BillingCode

A unique code for Mews to list on invoices it sends to the company.

string
nullable
Name
required

Name of the company.

string
>= 1 characters
FiscalIdentifier

Fiscal identifier of the company.

string
nullable
AdditionalTaxIdentifier

Additional tax identifier of the company.

string
nullable
DUNS

DUNS (Data Universal Numbering System) number of the company.

string
nullable
Telephone

Company telephone number.

string
nullable
TaxIdentifier

Tax identifier of the company.

string
nullable
InvoicingEmail

Invoicing email of the company.

string
nullable
Department

Department of the company.

string
nullable
CompanyDetails
Bill company data

Additional information about the company assigned to the bill. Not the same as the owner. Persisted at the time of closing of the bill.

object
Id
required

ID of the Company.

string
nullable
Address

Address of the company.

object
Line1
string
nullable
Line2
string
nullable
City
string
nullable
PostalCode
string
nullable
SubdivisionCode
string
nullable
CountryCode
string
nullable
LegalIdentifiers

The set of LegalIdentifiers for the company.

object
key
additional properties
string
BillingCode

A unique code for Mews to list on invoices it sends to the company.

string
nullable
Name
required

Name of the company.

string
>= 1 characters
FiscalIdentifier

Fiscal identifier of the company.

string
nullable
AdditionalTaxIdentifier

Additional tax identifier of the company.

string
nullable
DUNS

DUNS (Data Universal Numbering System) number of the company.

string
nullable
Telephone

Company telephone number.

string
nullable
TaxIdentifier

Tax identifier of the company.

string
nullable
InvoicingEmail

Invoicing email of the company.

string
nullable
Department

Department of the company.

string
nullable
AssociatedAccountData

Additional information about the associated account of the bill. Can be a Customer or Company. Persisted at the time of closing of the bill. Currently only one account can be associated with a bill, but this may be extended in future.

Array<object>
nullable
Associated account bill data
object
Discriminator
Any of:
Bill associated account data discriminator
string
Allowed values: BillCustomerData BillCompanyData
BillCustomerData
Bill customer data

Associated account bill data for customer.

object
Id
required

ID of the Customer to whom the bill was assigned.

string
>= 1 characters
Address

Address of the customer.

object
Line1
string
nullable
Line2
string
nullable
City
string
nullable
PostalCode
string
nullable
SubdivisionCode
string
nullable
CountryCode
string
nullable
LegalIdentifiers

The set of LegalIdentifiers for the customer.

object
key
additional properties
string
BillingCode

A unique code for Mews to list on invoices it sends to the customer.

string
nullable
LastName
required

Last name of the customer.

string
>= 1 characters
FirstName

First name of the customer.

string
nullable
SecondLastName

Second last name of the customer.

string
nullable
TitlePrefix

Title prefix of the customer.

Mister (Mr.)

Miss (Ms.)

Misses (Mrs.)

string
Allowed values: Mister Miss Misses
TaxIdentifier

Tax identifier of the customer.

string
nullable
BillCompanyData
Bill company data

Associated account bill data for company.

object
Id
required

ID of the Company.

string
nullable
Address

Address of the company.

object
Line1
string
nullable
Line2
string
nullable
City
string
nullable
PostalCode
string
nullable
SubdivisionCode
string
nullable
CountryCode
string
nullable
LegalIdentifiers

The set of LegalIdentifiers for the company.

object
key
additional properties
string
BillingCode

A unique code for Mews to list on invoices it sends to the company.

string
nullable
Name
required

Name of the company.

string
>= 1 characters
FiscalIdentifier

Fiscal identifier of the company.

string
nullable
AdditionalTaxIdentifier

Additional tax identifier of the company.

string
nullable
DUNS

DUNS (Data Universal Numbering System) number of the company.

string
nullable
Telephone

Company telephone number.

string
nullable
TaxIdentifier

Tax identifier of the company.

string
nullable
InvoicingEmail

Invoicing email of the company.

string
nullable
Department

Department of the company.

string
nullable
EnterpriseData
Bill enterprise data

Additional information about the enterprise issuing the bill, including bank account details. Persisted at the time of closing of the bill.

object
AdditionalTaxIdentifier

Enterprise additional tax identifier.

string
nullable
CompanyName

Enterprise company name.

string
nullable
BankAccount

Enterprise bank account.

string
nullable
BankName

Enterprise bank name.

string
nullable
Iban

Enterprise IBAN (International Bank Account Number).

string
nullable
Bic

Enterprise BIC (Bank Identifier Code).

string
nullable
CorrectionState
required
Bill correction state

Whether the bill is a regular bill or a corrective bill.

Bill (Regular bill.)

CorrectiveBill (Corrective bill, i.e. the CorrectionType is either Edit, Cancellation, or ReceivablePaymentsBalance.)

string
Allowed values: Bill CorrectiveBill
CorrectionType

Type of correction.

Cancellation

Edit

CreditNote

Reinstatement

ReceivablePaymentsBalance

string
Allowed values: Cancellation Edit CreditNote Reinstatement ReceivablePaymentsBalance
CorrectedBillId

The ID of the bill that the corrective bill corrects. If the corrected bill was deleted, this field is null.

string format: uuid
nullable
Example
{
"BillId": "44eba542-193e-47c7-8077-abd7008eb206",
"Result": {
"Discriminator": "BillPdfFile",
"Value": {
"Base64Data": "JVBER....."
}
}
}

Server has successfully fulfilled the request and there is no additional information to send back.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see Request timeouts

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by too many requests sent in a given amount of time. Response contains Retry-After header indicating how long the user agent should wait before making a follow-up request. For more information, see Request limits.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our documentation repository.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable