Bills
Get all bills
Returns all bills, optionally filtered by customers, identifiers and other filters. Note this operation uses Pagination.
Request
[PlatformAddress]/api/connector/v1/bills/getAll
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| array of string | optional, max 1000 items | Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token. |
| array of string | optional, max 1000 items | Unique identifiers of the Bills. Required if no other filter is provided. |
| array of string | optional, max 1000 items | Unique identifiers of the Customers. |
| string | optional | Bill state the bills should be in. If not specified |
| optional, max length 3 months | Interval in which the Bill was closed. | |
| optional, max length 3 months | Interval in which the Bill was created. | |
| optional, max length 3 months | Interval in which the Bill was updated. | |
| optional , max length 3 months | Interval in which the Bill is due to be paid. | |
| optional, max length 3 months | Interval in which the Bill was paid. | |
|
|
| |
| required | Limitation on the quantity of bill data returned. |
Bill state
Open
Closed
Bill extent
Property | Type | Contract | Description |
---|---|---|---|
|
|
|
|
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Bill | required | The filtered bills. |
| string | required | Unique identifier of the last and hence oldest bill returned. This can be used in Limitation in a subsequent request to fetch the next batch of older bills. |
Bill
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the bill. |
| string | required | Unique identifier of the Enterprise. |
| string | required | |
|
|
|
|
|
|
| |
| array of string | optional | |
| string | optional | Unique identifier of the bill Counter. |
| string Bill state | required | State of the bill. |
| string Bill type | required | Type of the bill. |
| string | required | Number of the bill. |
| string | optional | Variable symbol of the bill. |
| string | required | Date and time of the bill creation in UTC timezone in ISO 8601 format. |
| string | optional | Date and time of the bill issuance in UTC timezone in ISO 8601 format. |
| string | optional | Date and time when the bill was last updated, in UTC timezone in ISO 8601 format. |
| string | optional | Taxation date of the bill in UTC timezone in ISO 8601 format. |
| string | optional | Date when the bill was paid in UTC timezone in ISO 8601 format. |
| string | optional | Bill due date and time in UTC timezone in ISO 8601 format. |
| string | optional | Unique number of the purchase order from the buyer. |
| string | optional | Additional notes. |
| required | Options of the bill. | |
| array of Order item | required | The order items (consumed items such as nights or products) on the bill. |
| array of Payment item | required | The payment items (such as cash, credit card payments or invoices) on the bill. |
| optional | ||
|
|
| |
| array of Associated account data | optional | |
| optional | Additional information about the enterprise issuing the bill, including bank account details. Persisted at the time of closing of the bill. |
Bill type
A bill is either a Receipt
which means that it has been fully paid, or Invoice
that is supposed to be paid in the future.
Receipt
- the bill has already been fully paid.Invoice
- the bill is supposed to be paid in the future. Before closing it is balanced with an invoice payment.
Bill options
Property | Type | Contract | Description |
---|---|---|---|
| boolean | required | Display customer information on a bill. |
| boolean | required | Display taxation detail on a bill. |
| boolean | required | Tracking of payments is enabled for bill, only applicable for |
| boolean | required | Display CID number on bill, only applicable for |
Bill owner data
Property | Type | Contract | Description |
---|---|---|---|
| required | Determines type of value. | |
| object | required | Structure of object depends on Bill owner data discriminator. Can be either of type Bill customer data or Bill company data. |
Bill owner data discriminator
BillCustomerData
- Owner data specific to a Customer.BillCompanyData
- Owner data specific to a Company.
Bill associated account data
Property | Type | Contract | Description |
---|---|---|---|
| required | Determines type of value. | |
| object | optional | Associated account bill data of type Bill customer data. |
| object | optional | Associated account bill data of type Bill company data. |
Bill associated account data discriminator
BillCustomerData
- Associated account bill data of type Bill customer data.BillCompanyData
- Associated account bill data of type Bill company data.
Bill customer data
Property | Type | Contract | Description |
---|---|---|---|
| string | required | ID of the Customer to whom the bill was assigned. |
| optional | Address of the customer. | |
| optional | The set of LegalIdentifiers for the customer. | |
| string | optional | A unique code for Mews to list on invoices it sends to the customer. |
| string | required | Last name of the customer. |
| string | optional | First name of the customer. |
| string | optional | Second last name of the customer. |
| optional | Title prefix of the customer. |
Bill company data
Property | Type | Contract | Description |
---|---|---|---|
| string | required | ID of the Company. |
| optional | Address of the company. | |
| optional | The set of LegalIdentifiers for the company. | |
| string | optional | A unique code for Mews to list on invoices it sends to the company. |
| string | required | Name of the company. |
| string | optional | Fiscal identifier of the company. |
| string | optional | Additional tax identifier of the company. |
Bill enterprise data
Property | Type | Contract | Description |
---|---|---|---|
| string | optional | Enterprise additional tax identifier. |
| string | optional | Enterprise company name. |
| string | optional | Enterprise bank account. |
| string | optional | Enterprise bank name. |
| string | optional | Enterprise IBAN (International Bank Account Number). |
| string | optional | Enterprise BIC (Bank Identifier Code). |
Bill address
Property | Type | Contract | Description |
---|---|---|---|
| string | optional | First line of the address. |
| string | optional | Second line of the address. |
| string | optional | City of the address. |
| string | optional | Postal code of the address. |
| string | optional | ISO 3166-2 code of the administrative division. |
| string | optional | ISO 3166-1 code of the country. |
Legal Identifiers
LegalIdentifiers
is a Dictionary, where the key is the type of legal identifier and the value is the corresponding value of that identifier. Keys are as follows:
TaxIdentifier
Siret
Siren
NafCode
RcsCode
LegalStatus
RegisteredCapital
CityOfRegistration
TradesDirectoryRegistrationNumber
ItDestinationCode
ItFiscalCode
ItLotteryCode
HungarianVatCode
HungarianCompanyName
HungarianTaxPayerIdentifier
...
Add bill
Creates new empty bill assigned to specified account. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/bills/add
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| string | optional | Unique identifier of the Enterprise. Required when using a Portfolio Access Token, ignored otherwise. |
| array of Bill parameters | required, max 1000 items | Information about bills to be created. |
Bill parameters
Property | Type | Contract | Description |
---|---|---|---|
| string | required | |
| string | optional | Name of the newly created bill |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Bill | required | The created bills. |
Delete bill
Removes selected bills. Bill must be empty, otherwise it's not possible to delete it. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/bills/delete
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| array of string | required | Unique identifiers of the Bills to be deleted. |
| string | optional | Unique identifier of the Enterprise. Required when using a Portfolio Access Token, ignored otherwise. |
Response
Close bill
Closes a bill so no further modification to it is possible. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/bills/close
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| string | required | Unique identifier of the Bill to be closed. |
| string | optional | Unique identifier of the Enterprise. Required when using a Portfolio Access Token, ignored otherwise. |
| string Bill type | required | Specifies the mode bill should be closed in. |
| string | optional | Unique identifier of the Counter to be used for closing. Default one is used when no value is provided. |
| string | optional | Unique identifier of the Fiscal Machine to be used for closing. Default one is used when no value is provided. |
| optional | Options of the bill. If not provided both | |
| optional | Date of consumption for tax purposes. Can be used only with Bill type | |
| optional | ||
| optional | Optional unique identifier of requested payment. Can be used only with Bill type | |
|
|
| |
| optional | Tax identifier of account to be put on a bill. | |
| optional | Unique number of the purchase order from the buyer. | |
| optional | Notes to be attached to bill. | |
|
|
| |
| optional | Address of the account to be displayed on bill. Overrides the default one taken from account profile. | |
| array of Bill close account parameters | optional | Account data of the associated account on a bill. Currently one object is supported and only populated when the bill is closed. |
Bill options parameters
Property | Type | Contract | Description |
---|---|---|---|
| required | Display customer information on a bill. | |
| required | Display taxation detail on a bill. |
Bill close account parameters
Property | Type | Contract | Description |
---|---|---|---|
| string | required | |
| optional | Tax identifier of the assosicated account to be put on a bill. | |
| optional | Address of the associated account to be displayed on bill. Overrides the default one taken from account profile. |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Bill | required | The closed bill. |
Get bill PDF
Creates a PDF version of the specified bill. In case it's not possible to return PDF immediately, you must retry the call later while providing the unique event identifier that is returned from the first invocation.
Request
[PlatformAddress]/api/connector/v1/bills/getPdf
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| string | required | Unique identifier of the Bill to be printed. |
| string | optional | Unique identifier of the Bill print event returned by previous invocation. |
Response
Property | Type | Contract | Description |
---|---|---|---|
| string | required | The unique identifier of printed Bill. |
| object Bill PDF result | required | The result of operation. |
Bill PDF result
Property | Type | Contract | Description |
---|---|---|---|
| required | Determines type of result. | |
| object | required | Structure of object depends on Bill PDF result discriminator. |
Bill PDF result discriminator
BillPdfFile
- PDF version of a Bill was successfully created,Value
is Bill PDF file.BillPrintEvent
- PDF version of a Bill couldn't be created at this moment (for example bill haven't been reported to authorities yet),Value
is Bill print event.
Bill PDF file
Property | Type | Contract | Description |
---|---|---|---|
| string | required | BASE64 encoded PDF file. |
Bill print event
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of print event. Must be used in retry calls to retrieve the PDF. |
Last updated