Please use universal Billing feed instead.
Bill event that can be either invoice or credit note.
{
"billNumber": "invoice1",
"type": "INVOICE",
"accountId": "account1",
"createdDateTime": "2021-10-12T08:30:22.804Z",
"totalAmount": {
"amount": 552778,
"scale": 2,
"currency": "EUR"
},
"details": {
"status": "PENDING",
"dueDateTime": "2021-12-12T08:30:22.804+01:00",
"orderIds": [
"order1",
"order2"
]
}
}
{
"billNumber": "invoice2",
"type": "INVOICE",
"accountId": "account1",
"createdDateTime": "2021-10-12T08:30:22.804+01:00",
"totalAmount": {
"amount": 552777,
"scale": 2,
"currency": "EUR"
},
"details": {
"status": "PARTIALLY_PAID",
"dueDateTime": "2021-12-12T08:30:22.804Z",
"orderIds": [
"order1",
"order2"
]
},
"dueAmount": {
"amount": 100000,
"scale": 2,
"currency": "EUR"
}
}
{
"billNumber": "invoice3",
"type": "INVOICE",
"accountId": "account1",
"createdDateTime": "2021-10-12T08:30:22.804Z",
"totalAmount": {
"amount": 552777,
"scale": 2,
"currency": "EUR"
},
"details": {
"status": "PAID",
"dueDateTime": "2021-11-12T08:30:22.804Z",
"orderIds": [
"order1",
"order2"
]
}
}
{
"billNumber": "credit1",
"type": "CREDIT_NOTE",
"accountId": "account2",
"createdDateTime": "2021-10-12T08:30:22.804+01:00",
"totalAmount": {
"amount": 50077,
"scale": 2,
"currency": "EUR"
},
"details": {
"status": "USED",
"orderIds": [
"order1",
"order2"
]
}
}
{
"billNumber": "credit2",
"type": "CREDIT_NOTE",
"accountId": "account3",
"createdDateTime": "2021-10-12T08:30:22.804+01:00",
"totalAmount": {
"amount": 50077,
"scale": 2,
"currency": "EUR"
},
"details": {
"status": "UNUSED",
"invoiceNumbers": [
"invoice1",
"invoice2"
]
}
}
The opco identifier of the credit note or the invoice.
"4999569661752721026"
Type of the document, invoice or credit notes
OpCo's organizatinal customer number that uniquely identifies its account. In the case of OpCo organised with a regional model or commercial organisation this should be suffix by '{orgId}'. if the accountId is 13563 and the orgId is OVIA so this field should contains 13563OVIA
"1234567"
"1234567_OVIA"
The creation date and time of this credit notes.
"2021-10-12T08:30:22.804Z"
"2021-10-12T08:30:22.804+01:00"
The total amount that should be credited to the customer
{
"amount": 2000000,
"scale": 2,
"currency": "EUR"
}
The actual unscaled amount
205987
the scale to be applied on the unscaled amount
Value must be greater or equal to 0
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
Details of an invoice. This document describe invoice meta informations, Invoice complete informations can be downloaded by the customer throught the get document endpoint of the order history api
No Additional PropertiesThe status of the bill document. These statuses will not be validated within Spark but will be displayed to the user as CMS label mapped to the status.
"PENDING"
The due date and time where the total amount the should be payed by the customer
"2021-10-12T08:30:22.804Z"
"2021-10-12T08:30:22.804+01:00"
The list of order ids concerned by this invoice
Must contain a minimum of 1 items
[
"order1"
]
[
"order1",
"order2"
]
Details of a credit note; It's sort of a negative bill. It is an amount credited generally during a product return, but also to correct a price or invoicing error. It affects the value of customer invoices and credit line limit.
No Additional PropertiesThe status of the bill document. These statuses will not be validated within Spark but will be displayed to the user as CMS label mapped to the status.
"PARTIALLY_USED"
An optional list of order ids concerned by this credit note.
Must contain a minimum of 1 items
[
"order1"
]
[
"order1",
"order2"
]
An optional list of invoice numbers concerned by this credit note.
Must contain a minimum of 1 items
[
"4999569661752721026"
]
[
"4999569661752721027",
"4999569661752721028"
]
Optional field, needed by OpCo organised with a regional model or commercial organisation. It can be used to filter or route based on the orgId.
"org123"
"SNE"
The amount due in case the bill is partially processed.
{
"amount": 500000,
"scale": 2,
"currency": "EUR"
}
The actual unscaled amount
205987
the scale to be applied on the unscaled amount
Value must be greater or equal to 0
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"