purchase-bill topic object description.
Used to transfer Purchase Invoices and Credit Notes events from marketplace Sellers to OpCos.
It is not the same as the bill model which is used for OpCos to Customers billing events.
{
"type": "INVOICE",
"documents": [
{
"id": "4999569661752721026"
}
],
"issueDate": "2023-05-25T09:15:22.807Z",
"opcoSellerId": "shop-2009",
"sellerDocumentId": "SCHN-2812939182",
"totalAmount": {
"amount": 13800,
"scale": 2,
"currency": "EUR"
},
"totalAmountIncludingTaxes": {
"amount": 17760,
"scale": 2,
"currency": "EUR"
},
"totalByTax": [
{
"code": "tax-fra-20",
"taxAmount": {
"amount": 12000,
"scale": 4,
"currency": "EUR"
}
},
{
"code": "tax-fra-shipping",
"isShipping": true,
"taxAmount": {
"amount": 12000,
"scale": 4,
"currency": "EUR"
}
},
{
"code": "ecotax-deee",
"isSurcharge": true,
"taxAmount": {
"amount": 260,
"scale": 2,
"currency": "EUR"
}
}
],
"lineItems": [
{
"netPrice": {
"amount": 138,
"currency": "EUR"
},
"opCoPurchaseOrderId": "SON-PO-123456789",
"opCoPurchaseOrderLineId": "SON-PO-123456789-1",
"shippingCost": {
"amount": 2,
"currency": "EUR"
},
"taxes": [
{
"code": "tax-fra-20",
"taxAmount": {
"amount": 133,
"scale": 2,
"currency": "EUR"
},
"percentage": 20
},
{
"code": "tax-fra-shipping",
"isShipping": true,
"taxAmount": {
"amount": 12,
"scale": 2,
"currency": "EUR"
},
"percentage": 20
},
{
"code": "ecotax-deee",
"isSurcharge": true,
"taxAmount": {
"amount": 3,
"scale": 1,
"currency": "EUR"
}
}
],
"unitNetPrice": {
"amount": 13800,
"scale": 2,
"currency": "EUR"
}
}
]
}
This object is used to describe some technical meta information related to the event.
The application source of this event
The version of the json format event
Defines the type of document.
- INVOICE: Amounts are owed by the OpCo to the Seller.
- CREDIT_NOTE: Amounts are owed by the Seller to the OpCo.
Seller ID, as known by the opCo. It represents the entity emitting the purchase bill.
"shop-2009"
Identifier of the document as provided by the seller.
Date on which this accounting document has been issued.
"2023-05-25T09:15:22.807Z"
The total amount of the purchase bill excluding taxes.
{
"amount": 13800,
"scale": 2,
"currency": "EUR"
}
the actual unscaled amount based on list or customer
205987
the scale to be applied on the unscaled amount
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
The total amount of the purchase bill including all taxes.
{
"amount": 17760,
"scale": 2,
"currency": "EUR"
}
the actual unscaled amount based on list or customer
205987
the scale to be applied on the unscaled amount
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
This is the sum of tax amounts of all line items grouped by tax code.
No Additional ItemsContains the tax informations with both percentage or exact amount as preferable.
No Additional PropertiesA tax code which identifies the tax applied to this item. It can be used to carry more details than the high level tax type information.
"tax-fra-20"
"tax-fra-shipping"
"ecotax-deee"
contains the amount informations based on the type of prices we might have
the actual unscaled amount based on list or customer
205987
the scale to be applied on the unscaled amount
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
This flag determines if the tax is a surcharge to be added to netPrice/promotionalNetPrice before applying Tax. The Tax computation happens on top of ((netPrice or promotionalNetPrice)+surcharges)
true
This flag determines if the tax is applied on the shipping cost
true
The percentage of the net price
20.0
[
{
"code": "tax-fra-20",
"taxAmount": {
"amount": 12000,
"scale": 4,
"currency": "EUR"
}
},
{
"code": "tax-fra-shipping",
"isShipping": true,
"taxAmount": {
"amount": 12000,
"scale": 4,
"currency": "EUR"
}
},
{
"code": "ecotax-deee",
"isSurcharge": true,
"taxAmount": {
"amount": 260,
"scale": 2,
"currency": "EUR"
}
}
]
List of document representing this purchase bill
No Additional ItemsInformation identifying a document.
The id of the document.
This can be used to download the document from Mirakl as the document_request_id parameter of the DR73 api.
"4999569661752721026"
Line items that are part of this purchase bill.
Must contain a minimum of 1 items
A line item part of this purchase bill.
No Additional PropertiesIdentifier of the purchase order initially sent by the OpCo to the Seller and associated to this purchase bill line item.
Note that one invoice document can reference line items from different purchase orders.
The identifier of this lineItem in the opco purchase order
Purchase order line’s price excluding shipping charges
the actual unscaled amount based on list or customer
205987
the scale to be applied on the unscaled amount
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
Purchase unit price (computed from the provided offer price)
the actual unscaled amount based on list or customer
205987
the scale to be applied on the unscaled amount
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
This is the shipping cost for this line item excluding taxes.
{
"amount": 200,
"scale": 2,
"currency": "EUR"
}
the actual unscaled amount based on list or customer
205987
the scale to be applied on the unscaled amount
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
List of taxes applied on this line item (price, shipping costs, eco tax)
No Additional ItemsContains the tax informations with both percentage or exact amount as preferable.
No Additional PropertiesA tax code which identifies the tax applied to this item. It can be used to carry more details than the high level tax type information.
"tax-fra-20"
"tax-fra-shipping"
"ecotax-deee"
contains the amount informations based on the type of prices we might have
the actual unscaled amount based on list or customer
205987
the scale to be applied on the unscaled amount
2
the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed
"EUR"
This flag determines if the tax is a surcharge to be added to netPrice/promotionalNetPrice before applying Tax. The Tax computation happens on top of ((netPrice or promotionalNetPrice)+surcharges)
true
This flag determines if the tax is applied on the shipping cost
true
The percentage of the net price
20.0
[
{
"code": "tax-fra-20",
"taxAmount": {
"amount": 133,
"scale": 2,
"currency": "EUR"
},
"percentage": 20
},
{
"code": "tax-fra-shipping",
"isShipping": true,
"taxAmount": {
"amount": 12,
"scale": 2,
"currency": "EUR"
},
"percentage": 20
},
{
"code": "ecotax-deee",
"isSurcharge": true,
"taxAmount": {
"amount": 3,
"scale": 1,
"currency": "EUR"
}
}
]