Expose

Some endpoints have fields that can be exposed, which will then show some of the inner fields of the exposed object. The exposable fields can be seen at the top of your Provet Cloud REST API endpoint page (eg. https://provetcloud.com/<provet_id>/api/0.1/invoicerow/) if the endpoint has exposable fields.

To expose a field, you can add expose_<field_name> as query parameter, much like how filters are used:

https://provetcloud.com/<provet_id>/api/0.1/invoicerow/1/?expose_consultation_item

Example result:

{
    "url": "https://provetcloud.com/4/api/0.1/invoicerow/1/",
    "id": 1,
    "invoice": "https://provetcloud.com/4/api/0.1/invoice/2/",
    "consultation_item": {
        "url": "https://provetcloud.com/4/api/0.1/consultationitem/1/",
        "code": "",
        "name": "lääke X",
        "quantity": 1.0,
        "price": 22.0,
        "price_with_vat": 24.97,
        "vat_percentage": 13.5,
        "type_code": 2,
        "used": "2015-07-02T10:53:00+03:00",
        "created": "2015-07-02T10:53:00+03:00",
        "modified": "2016-01-18T18:43:01+02:00",
        "hide_on_consultation": false,
        "no_department_rates": false,
        "no_commissions": false,
        "is_dispense_fee_item": false,
        "herd_size_multiplier": null,
        "item": "https://provetcloud.com/4/api/0.1/item/1/",
        "created_user": "https://provetcloud.com/4/api/0.1/user/1/",
        "modified_user": null,
        "supervising_veterinarian": null,
        "performed_by": null,
        "consultation": "https://provetcloud.com/4/api/0.1/consultation/2/",
        "patient": "https://provetcloud.com/4/api/0.1/patient/2/",
        "template": null,
        "template_item": null,
        "parent_linked_item": null,
        "patient_group": null
    },
    "original_consultation": "https://provetcloud.com/4/api/0.1/consultation/2/",
    "item": "https://provetcloud.com/4/api/0.1/item/1/",
    "name": "lääke X",
    "invoice_group": "",
    "quantity": 1.0,
    "price": 22.0,
    "price_with_vat": 24.97,
    "sum": 22.0,
    "sum_vat": 2.97,
    "sum_total": 24.97,
    "percentage_change": 0.0,
    "created": "2015-07-02T10:53:00+03:00",
    "modified": "2017-11-03T04:08:07+02:00",
    "used": "2015-07-02T10:53:00+03:00",
    "prescription": false,
    "vat_percentage": 13.5,
    "account_number": null,
    "reporting_dimension_1": null,
    "reporting_dimension_2": null,
    "credited_invoicerow": null,
    "first_credited_invoicerow": null,
    "first_credit_invoicerows": [
        "https://provetcloud.com/4/api/0.1/invoicerow/15431/"
    ],
    "patient": null,
    "parent_linked_item": null,
    "linked_items": [],
    "panel": null,
    "order_in_panel": 1,
    "additional_tax_percentage": 0.0,
    "royalty_fee": null,
    "calculated_price": 22.0,
    "calculated_price_with_vat": 24.97,
    "invoicable_quantity": 1.0,
    "invoicerow_vat_group": null
}