{
    "cash_point_closing": {
        "number": 234,
        "taxonomy_version": "1.0",
        "custom_field_definitions": {
            "custom_field_name": {
                "description": ""
            }
        },
        "head": {
            "creation_date": "2016-10-10T17:00:01+01:00",
            "start_sequence_number": 2345,
            "end_sequence_number": 2000,
            "company": {
                "name": "123",
                "address": {
                    "street": "MusterAllee MusterNr",
                    "postal_code": "99999",
                    "city": "MusterOrt",
                    "country_code": "DEU"
                },
                "tax_number": "MusterSteuernummer",
                "vat_id_number": "MusterUStId",
                "location": {
                    "name": "Filiale",
                    "address": {
                        "street": "FilialStraße FilialNummer",
                        "postal_code": "FilialPLZ",
                        "city": "FilialOrt",
                        "country_code": "DEU"
                    },
                    "vat_id_number": "MusterUStId",
                    "cash_register": {
                        "id": "kasse1",
                        "brand": "MusterKassenhersteller",
                        "model": "MusterKassenhersteller",
                        "serial_number": "12345-9876",
                        "software": {
                            "brand": "MusterSoftwarehersteller",
                            "version": "MusterVersion"
                        },
                        "slaves": [
                            {
                                "slave_id": "slave_kasse1",
                                "brand": "MusterKassenhersteller",
                                "model": "MusterKassenhersteller",
                                "serial_number": "12345-3333",
                                "software": {
                                    "brand": "MusterSoftwarehersteller",
                                    "version": "MusterVersion"
                                },
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            }
                        ],
                        "purchaser_agencies": [
                            {
                                "id": 1,
                                "name": "MusterAgentur",
                                "address": {
                                    "street": "MusterAgenturStraße MusterNr",
                                    "postal_code": "99999",
                                    "city": "AgenturStadt",
                                    "country_code": "DEU"
                                },
                                "tax_number": "MusterSteuernummer",
                                "vat_id_number": "MusterUStId",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            }
                        ],
                        "vat_definitions": [
                            {
                                "id": 1,
                                "percentage": 19.00,
                                "description": "Regelsteuersatz",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            {
                                "id": 2,
                                "percentage": 7.00,
                                "description": "Ermäßigt",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            {
                                "id": 3,
                                "percentage": 10.70,
                                "description": "Durchschnittsatz (§24(1)Nr.3 UStG) übrige Fälle",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            {
                                "id": 4,
                                "percentage": 5.50,
                                "description": "Durchschnittsatz (§24(1)Nr.1 UStG)",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            {
                                "id": 5,
                                "percentage": 0.00,
                                "description": "Nicht steuerbar",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            {
                                "id": 6,
                                "percentage": 0.00,
                                "description": "Umsatzsteuerfrei",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            {
                                "id": 7,
                                "percentage": 0.00,
                                "description": "Umsatzsteuer nicht ermittelbar",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            {
                                "id": 1000,
                                "percentage": 99.99,
                                "description": "individuell",
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            }
                        ],
                        "processing_flags": {
                            "UmsatzsteuerNichtErmittelbar": false
                        },
                        "base_currency_code": "EUR",
                        "custom_fields": {
                            "custom_field_name": "1.33"
                        }
                    }
                }
            },
            "custom_fields": {
                "custom_field_name": "1.33"
            }
        },
        "cash_statement": {
            "business_cases": [
                {
                    "type": "Umsatz",
                    "name": "Verkauf",
                    "purchaser_agency_id": 1,
                    "amounts_per_vat_id": [
                        {
                            "id": 2,
                            "incl_vat": 501.19,
                            "excl_vat": 468.40187,
                            "vat": 31.78813
                        }
                    ],
                    "custom_fields": {
                        "custom_field_name": "1.33"
                    }
                },
                {
                    "type": "Auszahlung",
                    "name": "Auslagen",
                    "purchaser_agency_id": 1,
                    "amounts_per_vat_id": [
                        {
                            "id": 5,
                            "incl_vat": 10.00,
                            "excl_vat": 10.00,
                            "vat": 0.00
                        }
                    ],
                    "custom_fields": {
                        "custom_field_name": "1.33"
                    }
                }
            ],
            "payment": {
                "full_amount": 23423.00,
                "cash_amount": 1234.00,
                "cash_amounts_by_currency": [
                    {
                        "currency_code": "EUR",
                        "amount": 1000.00,
                        "custom_fields": {
                            "custom_field_name": "1.33"
                        }
                    },
                    {
                        "currency_code": "USD",
                        "amount": 200.00,
                        "custom_fields": {
                            "custom_field_name": "1.33"
                        }
                    }
                ],
                "payment_types": [
                    {
                        "name": "Geld",
                        "type": "Bar",
                        "amount": 1234.00,
                        "custom_fields": {
                            "custom_field_name": "1.33"
                        }
                    },
                    {
                        "name": "Visa",
                        "type": "Kreditkarte",
                        "amount": 311.19,
                        "custom_fields": {
                            "custom_field_name": "1.33"
                        }
                    }
                ]
            }
        },
        "transactions": [
            {
                "head": {
                    "type": "Beleg",
                    "closing_cash_register": {
                        "id": "kasse1",
                        "slave_id": "slave_kasse1"
                    },
                    "storno": false,
                    "sequence_number": 53112,
                    "number": 4711,
                    "timestamp_start": "2016-09-27T17:30:23+01:00",
                    "timestamp_end": "2016-09-27T17:32:16+01:00",
                    "user": {
                        "id": "MusterId",
                        "name": "MusterName"
                    },
                    "buyer": {
                        "name": "Musterkunde, Hans",
                        "id": "2",
                        "type": "Kunde",
                        "address": {
                            "street": "MusterKundenStraße MusterNr",
                            "postal_code": "99999",
                            "city": "MusterKundenOrt",
                            "country_code": "DEU"
                        },
                        "vat_id_number": "DE999999999"
                    },
                    "external_delivery_numbers": [ "2017-05-09/00313" ],
                    "allocation_groups": [
                        "MusterAbrechnungskreis"
                    ],
                    "custom_fields": {
                        "custom_field_name": "1.33"
                    }
                },
                "data": {
                    "full_amount_incl_vat": 501.19,
                    "payment_types": [
                        {
                            "name": "Geld",
                            "type": "Bar",
                            "currency_code": "USD",
                            "foreign_amount": 210.96,
                            "amount": 200.00,
                            "custom_fields": {
                                "custom_field_name": "1.33"
                            }
                        },
                        {
                            "name": "Visa",
                            "type": "Kreditkarte",
                            "amount": 311.19,
                            "custom_fields": {
                                "custom_field_name": "1.33"
                            }
                        }
                    ],
                    "amounts_per_vat_id": [
                        {
                            "id": 2,
                            "incl_vat": 501.19,
                            "excl_vat": 468.40,
                            "vat": 32.79
                        }
                    ],
                    "notes": "WichtigeZusatznotizen",
                    "lines": [
                        {
                            "line_number": "1111",
                            "source_cash_register": {
                                "id": "kasse1",
                                "slave_id": "slave_kasse1"
                            },
                            "business_case": {
                                "type": "Umsatz",
                                "name": "Verkauf",
                                "purchaser_agency_id": 1,
                                "amounts_per_vat_id": [
                                    {
                                        "id": 2,
                                        "incl_vat": 501.19
                                    }
                                ],
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            "in_house": true,
                            "storno": false,
                            "external_invoice_number": "MusterRechnungsnummer",
                            "text": "MenüI",
                            "item": {
                                "number": "5555",
                                "gtin": "Ausprägung",
                                "quantity": 100,
                                "quantity_factor": 1,
                                "quantity_measure": "Stück",
                                "group_id": 55,
                                "group_name": "SpeisenMenü",
                                "price_per_unit": 5.00,
                                "base_amounts_per_vat_id": [
                                    {
                                        "id": 2,
                                        "incl_vat": 500.00
                                    }
                                ],
                                "discounts_per_vat_id": [
                                    {
                                        "id": 2,
                                        "incl_vat": -1.19
                                    }
                                ],
                                "extra_amounts_per_vat_id": [
                                    {
                                        "id": 2,
                                        "incl_vat": 2.38
                                    }
                                ],
                                "sub_items": [
                                    {
                                        "number": "5555",
                                        "gtin": "Ausprägung",
                                        "name": "Cola",
                                        "quantity": 100,
                                        "quantity_factor": 0.2,
                                        "quantity_measure": "Liter",
                                        "group_id": 55,
                                        "group_name": "Antialkoholisch",
                                        "amount_per_vat_id": {
                                            "id": 2,
                                            "incl_vat": 150.00
                                        },
                                        "custom_fields": {
                                            "custom_field_name": "1.33"
                                        }
                                    }
                                ],
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            "custom_fields": {
                                "custom_field_name": "1.33"
                            }
                        },
                        {
                            "line_number": "1112",
                            "source_cash_register": {
                                "id": "kasse1",
                                "slave_id": "slave_kasse1"
                            },
                            "business_case": {
                                "type": "Auszahlung",
                                "name": "Auslagen",
                                "purchaser_agency_id": 1,
                                "amounts_per_vat_id": [
                                    {
                                        "id": 5,
                                        "incl_vat": 10.00
                                    }
                                ],
                                "custom_fields": {
                                    "custom_field_name": "1.33"
                                }
                            },
                            "storno": false
                        }
                    ]
                }
            }
        ]
    }
}
