Transform Restaurant json
Transform Pos config to a list of changes
POST
/v1/transform/authorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
restaurant
Response Body
application/json
curl -X POST "http://localhost:4001/v1/transform/" \ -H "Content-Type: application/json" \ -d '{ "restaurant": { "name": "string", "locale": "string", "last_update": "2019-08-24T14:15:22Z", "next_avoir_number": 0, "ticket_footer_note": "string", "ticket_image_url": "string", "ticket_company_name": "string", "setting_cut_kitchen_ticket": true, "setting_only_first_kitchen_ticket": true, "setting_send_preparation_on": true, "setting_detailed_report": true, "setting_not_claim": true, "setting_close_after_transmitted": true, "setting_send_tills": true, "setting_send_tills_live": true, "setting_use_qrcode": true, "setting_manual_steps_activated": true, "setting_print_on_pay": true, "number_of_preparation_steps": 0, "setting_ask_cash_in": true, "setting_group_item_kitchen": true, "setting_not_claim_content": true, "setting_allow_gap_till": true, "setting_detailed_menus": true, "setting_compact_order": true, "setting_print_menu_on_preparation": true, "setting_print_option_group_on_preparation": true, "number_of_lines": 0, "number_of_menus": 0, "number_of_selections": 0, "exercice_date": "2019-08-24T14:15:22Z", "macro_categories": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "index": 0, "color": 0, "image": "string", "preparation_step_index": -9007199254740991, "number_of_categories": 0 } ], "taxes": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "percentage": 0 } ], "shared_option_categories": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "index": 0, "name": "string", "is_mandatory": true, "is_multiple": true, "options": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "index": 0, "name": "string", "price": -9007199254740991 } ] } ], "payment_methods": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "mode": -1, "index": 0, "enabled": true, "change": true, "drawer": true, "should_print": true } ], "items": [ { "name": "string", "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "modular_price": true, "preparation_step_index": -9007199254740991, "screen_name": "string", "kitchen_name": "string", "date_creation": "2019-08-24T14:15:22Z", "barcode": "string", "is_weight_price": true, "kilo_price": 0, "option_categories": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "index": 0, "name": "string", "is_mandatory": true, "is_multiple": true, "options": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "index": 0, "name": "string", "price": 0 } ] } ], "prices": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "amount": -9007199254740991, "price_type": 0, "tax": { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643" } } ], "macro_category": { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643" }, "sku": "string", "shared_option_categories": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643" } ] } ], "printers": [ { "client_id": "string", "creation_date": "2019-08-24T14:15:22Z", "ip_address": "string", "is_bluetooth": true, "is_virtual": true, "is_customer_display": true, "is_reverse": true, "mac": "string", "device_id": "string", "model": "string", "name": "string", "port": 0 } ], "places": [ { "client_id": "string", "creation_date": "2019-08-24T14:15:22Z", "name": "string", "shloud_print_all_items": true, "printer_id": "05292539-b1c2-4227-ab47-ce6f0a5a9aea", "items": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] } ], "place_printer_links": [ {} ], "cards": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "categories": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "index": -1, "number_of_columns": 0, "number_of_lines": 0, "positions": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "highlight_level": -9007199254740991, "brightness_level": -9007199254740991, "alternate_color": -9007199254740991, "index": -9007199254740991, "item": { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643" } } ], "macro_category": { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643" } } ], "selections": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "index": 0, "number_of_columns": 0, "number_of_lines": 0, "positions": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "highlight_level": 0, "brightness_level": 0, "alternate_color": 0, "index": 0, "item": { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643" } } ] } ], "menus": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "index": 0, "steps": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "index": 0, "preparation_step_index": 0, "amount_to_substract": 0, "positions": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "highlight_level": 0, "index": 0, "amount": 0, "item": { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643" } } ] } ], "prices": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "amount": 0, "price_type": 0 } ] } ] } ], "people": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "password": "string", "is_root": true, "right_person": true, "right_till": true, "right_report": true, "right_all_orders": true, "right_apply_discount": true, "right_edit_discount": true, "right_delete_order": true, "right_cancel_order": true, "right_stats_till": true, "right_card": true, "right_device": true, "right_custom_price": true, "right_payment_type": true, "right_payment_order": true, "qrcode": "string", "key_dallas": "string", "color_blind_mode_on": true, "right_automatic_cash_drawer": true, "right_full_stats": true, "right_happy_hour": true, "right_payed_customer": true, "right_client": true, "right_manual_cash_drawer": true, "right_ownership": true, "right_edit_price_type": true, "right_transfer_order": true, "right_cancel_order_after_note": true, "right_update_order_after_note": true, "right_edit_justificatif": true } ], "rooms": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "type": 0, "price_type": 0, "index": 0, "enabled": true, "date_creation": "2019-08-24T14:15:22Z", "setting_new_order_after_paid": true, "setting_transmit_on_payment": true, "bippers_activated": true, "setting_logout_on_transmit": true, "number_of_additional_note_prints": 0, "should_display_owner_on_table": true, "setting_logout_on_payment": true, "should_send_to_preparation_on_close": true, "tables": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "shape": 0, "position_x": 0, "position_y": 0, "date_creation": "2019-08-24T14:15:22Z" } ] } ], "stock": [ {} ], "discounts": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "amount": 0, "name": "string", "discount_type": 0, "index": 0, "date_creation": "2019-08-24T14:15:22Z", "apply_on_units": true } ], "price_types": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "price_type": 0, "enabled": true, "date_begin": "string", "date_end": "string", "price_type_times": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "is_active": true, "date_begin": "2019-08-24T14:15:22Z", "date_end": "2019-08-24T14:15:22Z" } ] } ], "bookings": [ {} ], "customers": [ {} ], "cash_movement_motifs": [ { "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "name": "string", "creation_date": "2019-08-24T14:15:22Z" } ], "third_parties": [ {} ], "ticket_name": "string", "ticket_address": "string", "ticket_text": "string", "ticket_company": "string", "ticket_phone": "string", "ticket_zip": "string", "ticket_city": "string", "ticket_country": "string", "ticket_url": "string", "ticket_naf": "string", "ticket_tva": "string" } }'{
"changes": [],
"idsMapping": {}
}