Create a new till
Create a new till based on the legacy application name and id.
POST
/v1/tills/authorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
applicationstring
POS application
Value in
"POPINA" | "JALIA"legacyIdinteger
Legacy backoffice identifier
Range
1 <= valuetillJson
Till V1 JSON model
Response Body
application/json
curl -X POST "https://api.pragma-project.dev/v1/tills/" \ -H "Content-Type: application/json" \ -d '{ "application": "JALIA", "legacyId": 32, "tillJson": { "client_id": "sB8DC389A-2F38-4C22-8E24-7B03F727FF76", "server_id": 711, "locale": "fr_FR", "name": "Default Name", "device_name": "François\'s MacBook Pro", "device_id": "d85074d5-0b77-4214-aef7-0c37b0a560b7", "date_begin": "2022-11-07T11:39:36+01:00", "date_end": "2022-11-07T11:40:38+01:00", "date_deleted": null, "number_guests": 2, "note": null, "fiscal": 1, "ticket_name": "Jalia Démo", "ticket_address": "3 rue Théodore Blanc", "ticket_text": "Démonstration \n ", "ticket_company": "35075312500235", "ticket_phone": "05 56 43 26 37", "ticket_zip": "33520", "ticket_city": "Bruges", "ticket_country": "France", "ticket_url": "www.jdc.fr", "ticket_naf": "5610A", "ticket_tva": "FR89350753125", "tickets": [ { "date_begin": "2022-11-07T11:39:37+01:00", "date_end": "2022-11-07T11:39:46+01:00", "number_guests": 2, "customer_identifier": null, "prints_count": 0, "device_id": "997440E0-C77E-4751-94D2-EABD11EDECAB", "device_name": "Faker Device", "transferred": false, "transferred_motif": null, "ticket_date": "2022-11-07T11:39:46+01:00", "waiter": "Gérant", "waiter_id": "6a4b7edf-bfdf-4bb2-9b00-a48e55580aa7", "room": "Salle", "room_id": "170e2859-c336-4677-9f18-860d5ff1804b", "table": "7", "cancelled": false, "motif": null, "live_paid": true, "fiscal": 1, "order_id": "D3B5125E-F206-458A-8F18-F1332B774FBA", "signature": "MEUCIQDDHTjTEuYvo1bMkpGtsA+QCBPFBdCfO530LzrYaqTwZwIgD7k7ZKDVLKbPSqk0wZtubTRmuCFaI7Q2MkPZ9Zr1j6g=", "menus": [], "items": [ { "name": "Moules marinieres", "item_client_id": "763a0d36-b4d5-46ff-80e4-82c4637d0eae", "sku": "763a0d36-b4d5-46ff-80e4-82c4637d0eae", "parent_category": "Plats", "parent_category_index": 4, "category": "Plats", "ordered_date": "2022-11-07T11:39:37+01:00", "quantity": 1, "waiter_id": "6a4b7edf-bfdf-4bb2-9b00-a48e55580aa7", "waiter": "Gérant", "step": null, "step_index": -1, "creation_date": "2022-11-07T11:39:44+01:00", "cancelled": false, "motif": null, "transferred": false, "transferred_motif": null, "device_id": "997440E0-C77E-4751-94D2-EABD11EDECAB", "device_name": "Faker Device", "weight": null, "live_paid": true, "options": [], "discounts": [], "price": { "amount": 1200, "currency": "€", "tax": 1000, "tier": "Normal", "tax_name": "TVA 10" }, "is_loss": false, "loss_reason": null }, { "name": "Pelforth 25cl", "item_client_id": "6ff60523-6d8a-408c-8871-d426eb3bf71d", "sku": "6ff60523-6d8a-408c-8871-d426eb3bf71d", "device_id": "997440E0-C77E-4751-94D2-EABD11EDECAB", "device_name": "Faker Device", "parent_category": "Aperitifs", "parent_category_index": 0, "category": "Bières pression", "ordered_date": "2022-11-07T11:39:37+01:00", "quantity": 1, "weight": null, "waiter_id": "6a4b7edf-bfdf-4bb2-9b00-a48e55580aa7", "waiter": "Gérant", "step": null, "step_index": -1, "creation_date": "2022-11-07T11:39:42+01:00", "cancelled": false, "motif": null, "transferred": false, "transferred_motif": null, "live_paid": true, "options": [], "discounts": [], "price": { "amount": 350, "currency": "€", "tax": 2000, "tier": "Normal", "tax_name": "TVA 20" }, "is_loss": false, "loss_reason": null } ], "payments": [ { "name": "Carte de crédit", "client_id": null, "type": 0, "mode": 1, "amount": 1550, "cancelled": false, "currency": "€", "locale": "fr_FR", "person_client_id": "6a4b7edf-bfdf-4bb2-9b00-a48e55580aa7", "person_name": "Gérant", "creation_date": "2022-11-07T11:39:46+01:00" } ], "price": { "amount": 1550, "currency": "€", "tax": 0, "tier": "" } } ], "team": [ { "name": "Gérant", "person_client_id": "6a4b7edf-bfdf-4bb2-9b00-a48e55580aa7", "date_begin": "2022-11-07T11:40:00+01:00", "date_end": "2022-11-07T11:40:00+01:00" } ], "person_name": "Gérant", "person_id": "6a4b7edf-bfdf-4bb2-9b00-a48e55580aa7", "total_payments": [ { "type": "Carte de crédit", "mode": 1, "amount": 1550, "currency": "€", "locale": "fr_FR" } ], "cash_movements": [], "cash_float_initial": 0, "cash_float_final": 0 } }'{
"id": "d6f5e4d3-c2b1-42a0-9c68-31a3b4d5e6f7",
"createdAt": {},
"updatedAt": {},
"locationId": "b5ef2e7f-9010-41db-8dc5-7b0b453f81a0",
"serverId": 711,
"objectUrl": "https://storage.cloud.google.com/pragma-tills-bucket-example/b5ef2e7f-9010-41db-8dc5-7b0b453f81a0_d6f5e4d3-c2b1-42a0-9c68-31a3b4d5e6f7.json",
"application": "JALIA"
}