Extent of data to be returned. E.g. it is possible to specify that together with the bills, payments and revenue items should be also returned. Deprecated!
Receipt - Default; the bill has been paid in full; only applicable after the bill is closed.
Invoice - Bill has not been paid in full but an invoice has been issued to request payment.
Bill options
Options of the bill.
Bill assignee data
Bill associated account data discriminator
BillCustomerData
BillCompanyData
Bill company data
Bill customer data
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.
Associated account bill data
Bill enterprise data
Additional information about the enterprise issuing the bill, including bank account details. Persisted at the time of closing of the bill.
Bill correction state
Bill - Regular bill.
CorrectiveBill - Corrective bill, i.e. the CorrectionType is either Edit, Cancellation, or ReceivablePaymentsBalance.
Bill correction type
Cancellation
Edit
CreditNote
Reinstatement
ReceivablePaymentsBalance
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.
BillPdfFile - PDF version of a Bill was successfully created, Value is BillPdfFile.
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 BillPrintEvent
Bill PDF file
Bill print event
Add bill
Creates new empty bill assigned to specified account. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/bills/add
{"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D","AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D","Client": "Sample Client 1.0.0","EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","Bills": [ {"AccountId":"a5786a7b-a388-43cc-a838-abd7007b5ff7","Name":"Bill of Joe Doe" } ]}
Extent of data to be returned. E.g. it is possible to specify that together with the bills, payments and revenue items should be also returned.Deprecated! Use orderItems/getAll and payments/getAll with BillIds filter instead.
Items
boolean
required
Whether the response should contain payments and revenue items.Deprecated! Use orderItems/getAll and payments/getAll with BillIds filter instead.
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.
Id
string
required
Unique identifier of the bill.
Name
string
optional
Name of the bill.
EnterpriseId
string
required
Unique identifier of the Enterprise.
AccountId
string
required
Unique identifier of the account (Customer or Company) the bill is issued to.
AssociatedAccountIds
array of string
optional
Unique identifiers of the Customers or Companies that are associated to the bill.
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.
Number
string
optional
Number of the bill.
VariableSymbol
string
optional
Variable symbol of the bill.
CreatedUtc
string
required
Date and time of the bill creation in UTC timezone in ISO 8601 format.
IssuedUtc
string
optional
Date and time of the bill issuance in UTC timezone in ISO 8601 format.
TaxedUtc
string
optional
Taxation date of the bill in UTC timezone in ISO 8601 format.
PaidUtc
string
optional
Date when the bill was paid in UTC timezone in ISO 8601 format.
DueUtc
string
optional
Bill due date and time in UTC timezone in ISO 8601 format.
LastReminderDateUtc
string
optional
Date and time when an email reminder to pay an invoice was last sent, in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Date and time when the bill was last updated, in UTC timezone in ISO 8601 format.
PurchaseOrderNumber
string
optional
Unique number of the purchase order from the buyer.
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.
Additional information about the company assigned to the bill. Not the same as the owner. Persisted at the time of closing of the bill.Deprecated! Use AssociatedAccountData instead.
DisplayCustomer
boolean
required
Display customer information on a bill.
DisplayTaxation
boolean
required
Display taxation detail on a bill.
TrackReceivable
boolean
required
Tracking of payments is enabled for bill, only applicable for BillType of Invoice.
DisplayCid
boolean
required
Display CID number on bill, only applicable for BillType of Invoice.
Rebated
boolean
required
Whether the bill is rebated (both fully or partially).
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.
BillCounterId
string
optional
Unique identifier of the Counter to be used for closing. Default one is used when no value is provided.
FiscalMachineId
string
optional
Unique identifier of the Fiscal Machine to be used for closing. Default one is used when no value is provided.
Address of the account to be displayed on bill. Overrides the default one taken from account profile.Deprecated! Use AccountAddress or AssociatedAccountData instead.