Invoices

Businesses are able to create and manage invoices for their bookings on Bookinglayer.

The Invoice object

{
    "data": {
        "id": "a7443538-95e8-4ac9-b252-82d55b7887e9",
        "date": "2023-07-04T12:55:54+00:00",
        "due_date": "2023-07-18T12:55:54+00:00",
        "status": "closed",
        "reference": {
            "full": "20237322",
            "prefix": "20237",
            "suffix": "",
            "number": 322
        },
        "total_price_excl_tax": 2181.82,
        "final_price_incl_tax": 2400,
        "discount_total": 0,
        "final_price_excl_tax": 2181.82,
        "total_price_incl_tax": 2400,
        "tax_component": 218.18,
        "discounted_tax": 0,
        "final_tax_component": 0,
        "creditable_amount": 0,
        "credit_total": 0,
        "amount_due": 0,
        "amount_paid": 2400,
        "display": "items",
        "comment": null,
        "currency": "EUR",
        "tax_breakdown": {
            {
                "rate": 10,
                "amount": 218.18,
                "final_price_excl": 2181.82
            }
        }
        "booking": {
            "id": "2361736f-1646-426d-acf6-04c4f9d785dd"
        },
        "payments": [
            {
                "id": "ed3b8ffa-6ea7-4019-a9ba-3045caa7ab85",
                "currency": "EUR",
                "amount": 2400,
                "refund_amount": 0,
                "surcharge": 0,
                "status": "ok",
                "cc_brand": null,
                "cc_last4": null,
                "foreign_currency": null,
                "amount_in_foreign_currency": null,
                "transaction_reference": null,
                "comment": null,
                "metadata": null,
                "ip_address": null,
                "user": {
                    "id": "c6eef2d5-1019-11e9-bd3b-04016aacf401"
                },
                "booking": {
                    "id": "2361736f-1646-426d-acf6-04c4f9d785dd"
                },
                "guest": null,
                "invoice": {
                    "id": "a7443538-95e8-4ac9-b252-82d55b7887e9"
                },
                "payment_gateway": {
                    "id": 57,
                    "backoffice_title": "On site",
                    "slug": "onsite",
                    "description": "Activate this if you want to give bookers the option on your Payment Form to select an on site payment.",
                    "is_frontoffice": true,
                    "has_icon": false,
                    "invoicexpress_code": "OU",
                    "is_bookinglayer_pro": false,
                    "provider": null,
                    "provider_url": null,
                    "knowledge_base_link": null,
                    "notifications": null,
                    "created_at": "2018-12-05T17:47:23.000000Z",
                    "updated_at": "2020-10-22T11:38:56.000000Z",
                    "frontoffice": true,
                    "title": "On site",
                    "frontoffice_title": "On site"
                },
                "gift_certificate": null,
                "paid_at": "2023-07-03T12:57:00+00:00",
                "deleted_at": null,
                "created_at": "2023-07-03T10:57:52+00:00",
                "updated_at": "2023-07-04T12:56:00+00:00",
                "status_message": null,
                "channel": "backoffice"
            }
        ],
        "lines": [
            {
                "id": 4744208,
                "title": "Room Jenny",
                "title_translation": {
                    "en": null
                },
                "package_title": null,
                "package_title_translation": null,
                "unit_price_incl_tax": 200,
                "qty": 4,
                "total_price_incl_tax": 800,
                "discount_value": 0,
                "discount_rate": 0,
                "final_price_incl_tax": 800,
                "tax_rate": "10.00",
                "tax_value": 72.73,
                "creditable_amount": 0,
                "credit_total": 0,
                "deleted_at": null,
                "created_at": "2023-07-04T12:55:50+00:00",
                "updated_at": "2023-07-04T12:55:50+00:00"
            },
            {
                "id": 4744209,
                "description": "Room Jenny",
                "description_translation": {
                    "en": null
                },
                "package_title_translation": null,
                "unit_price_incl_tax": 200,
                "qty": 4,
                "total_price_incl_tax": 800,
                "discount_value": 0,
                "discount_rate": 0,
                "final_price_incl_tax": 800,
                "tax_rate": "0.00",
                "tax_value": 0,
                "creditable_amount": 0,
                "credit_total": 0,
                "deleted_at": null,
                "created_at": "2023-07-04T12:55:50+00:00",
                "updated_at": "2023-07-04T12:55:50+00:00"
            },
            {
                "id": 4744210,
                "description": "Room Jenny",
                "description_translation": {
                    "en": null
                },
                "package_title_translation": null,
                "unit_price_incl_tax": 200,
                "qty": 4,
                "total_price_incl_tax": 800,
                "discount_value": 0,
                "discount_rate": 0,
                "final_price_incl_tax": 800,
                "tax_rate": "0.00",
                "tax_value": 0,
                "creditable_amount": 0,
                "credit_total": 0,
                "deleted_at": null,
                "created_at": "2023-07-04T12:55:50+00:00",
                "updated_at": "2023-07-04T12:55:50+00:00"
            }
        ],
        "exports": [
            {
                "service": "fatture_in_cloud",
                "external_id": 553232,
                "status": "sent"
            }
        ],
        "created_at": "2023-07-04T12:55:50+00:00",
        "updated_at": "2023-07-04T12:56:01+00:00"
    }
}

id

Unique id of the invoice

date

The date when an invoice was closed.

due_date

The date by which payment for an invoice is expected to be received.

status

The current status of an invoice. Might be closed or draft

reference

The object with four fields: full - represents full invoice reference, prefix and suffix which are static parts of reference based on business settings, number with is integer that represents sequence.

final_price_incl_tax

The final price including all taxes.

final_price_excl_tax

The final price excluding taxes. (Net final price)

total_price_incl_tax

The total price including taxes. It is final price including taxes without discounts applied.

total_price_excl_tax

The total price excluding taxes. It is final price excluding taxes without discount applied.

discount_total

The discount including tax.

discounted_tax

The discounted tax part.

final_tax_component

The tax component after discount.

tax_component

The tax component before discount.

creditable_amount

Represents negative difference between invoiced booking lines final price including tax and current booking lines total.

credit_total

Total from invoice credit notes.

amount_due

The amount to be paid by the client.

amount_paid

Amount paid by the client up to the present time.

display

The strategy used for printing invoice PDF's, can have one of three values:

  • items

  • package

  • hybrid

comment

Arbirtrary comment.

currency

Currency the invoice is issued in.

tax_breakdown

An array of objects containing the tax amounts per tax rate. Each object contains the tax rate, the taxable amount and the tax amount.

booking

Expandable object containing the booking the invoice belongs to.

payments

Expandable array of payments bound to the invoice.

lines

Expandable array of lines contained within the invoice.

exports

Array of objects with exports of the invoice to external systems.

created_at

Datetime when the invoice was created.

updated_at

Datetime when the invoice was last updated.

Endpoints

Last updated