user=[user]&key=[key]&version=1
Basic [base64_token]
https://www.billetweb.fr/api/events?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1&past=1
[ { "id": "1235", "ext_id": "soiree", "name": "Retro future shock", "start": "2015-12-31 20:00:00", "end": "2016-01-01 00:00:00", "multiple": "1", "place": "Champs-\u00c9lys\u00e9es, Paris, France", "shop": "https://www.billetweb.fr/shop.php?event=soiree", "online": "1", "tax": "20", "tags": ["toto", "titi", "tata"], "description": "text or < htmlcode >", "image": "https://www.billetweb.fr/files/event/1235.jpg" "cover": "https://www.billetweb.fr/files/cover/1235.jpg" } ]
https://www.billetweb.fr/api/event/1000/attendees?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1&last_update=1471467631
[ { "id": "656087", "ext_id": "T356-3899-E1000", "barcode": "4475320", "used": "1", "lane": "controle n°1", email de l'opérateur ou nom de la file "used_date": "2016-06-15 22:39:24", "firstname": "Prénom", "name": "Nom", "ticket": "Plein tarif", "ticket_id": "12693", "category": "Catégorie 1 > Or", "price": "1.00", "seating_location": "Tribune C > Rang 1 > Siège 2", "last_update": "2016-03-02 10:41:36", "reduction_code": "PROMO12", "authorization_code": "", "pass": "0", "disabled": "0", 1 pour billet remboursé, 0 sinon "product_management: "http://www.billetweb.fr/my_order.php?xxx", "product_download: "http://www.billetweb.fr/download.php?xxx", "order_id": "264751", "order_ext_id": "C425-1306-E4170", "order_firstname": "Prénom", "order_name": "Nom", "order_email": "[email protected]", "order_date": "2016-03-02 10:41:36", "order_paid": "1", 1 pour payé, 0 pour remboursé ou réservation non payée "order_payment_type": "web", "order_origin": "web", "order_price": "1.00", "order_session": "656087", "session_start": "2016-02-01 20:00:00", "order_accreditation: "0", 1 pour en attente, 2 pour refusé, 3 pour accepté "order_management: "http://www.billetweb.fr/my_order.php?xxx", "language" : "fr", "custom": { "champs perso billet": "exemple" } "custom_order": { "champs perso commande": "exemple" } }, ... ]
https://www.billetweb.fr/api/event/1000/waiting?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "24", "date": "2023-12-28 23:46:01", "ticket": "0", id ou 0 si liste d'attent globale "session": "398792", "firstname": "Jean", "name": "José", "email": "[email protected]", "phone": "", "custom": "", votre champ custo si définit "quantity": "2", "notified": "0", 1 si email envoyé, 0 sinon "notify_date": "0000-00-00 00:00:00" }, { "id": "456", "date": "2023-12-28 23:47:01", ... }, ]
{ { "name": "Nom du nouvel événement", "start": "1583247094", }, }
{ "data"=> [ { "description": "This is a test", "status": "1", }, ... ] }
https://www.billetweb.fr/api/event/1000/dates?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "656087", "start": "2016-01-01 20:00:00", "end": "2016-01-01 22:00:00", "name": "", "place": "", "description": "", "instructions": "", "disabled": "0", "last_update": "0000-00-00 00:00:00", "quota": "10", "total_sales": "0", "tickets": { "123": "123", "124": "124" }, }, { "id": "656087", "start": "2016-02-01 20:00:00", "end": "2016-02-01 22:00:00", "name": "", "place": "", "description": "", "instructions": "", "disabled": "0", "last_update": "0000-00-00 00:00:00", "quota": "0", "total_sales": "10", "tickets": { "123": "123", "124": "124" }, }, ]
{ "data"=> [ { "id": "0", "start": "1583247094", "tickets": "all", }, ... ] }
{ "data"=> [ 123, 124, ] }
https://www.billetweb.fr/api/event/1000/avail?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "type": "event", "status": "", "avail": "-1", "quota": "-1", }, { "type": "category", "id": "123", "parent":"0", "name": "Catégorie 1", "fullname": "Catégorie 1", "avail": "180", "quota": "200", }, { "type": "ticket", "id": "124", "parent":"123", "name": "Tarif 1", "fullname": "Catégorie 1 > Tarif 1", "avail": "90", "quota": "100", }, ]
https://www.billetweb.fr/api/event/1000/tickets?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "123", "name" : "Nom du tarif 1", "full_name": "Catégorie > Nom du tarif 1", "price": "2.00", "category" : "Catégorie", "description" : "lorem ipsum", "visibility" : 0, (0 = visible, 1 = web seulement, 2 = guichet uniquement, 3 = lien secret seulement, 4 = masqué), "sales_start" : "", "sales_end" : "", "quota" : "100", "label" : "Offre spéciale", "form" : "123", "tax" : "10", (vient écraser le taux de l'événement si défini) "commission" : "0.31", (commission sur vente en ligne pour ce tarif) }, { "id": "456", "name": "Catégorie > Nom du tarif 2" ... }, ]
{ "data"=> [ { "id": "0", "name: "Mon premier tarif", "price": "20.49", "description": "Voici une description" }, { "id": "0", "name: "Mon second tarif", "price": "30.49", "description": "Voici une seconde description" }, ] }
https://www.billetweb.fr/api/forms?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "123", "name" : "Nom du formulaire partagé 1", }, { "id": "456", "name": "Nom du formulaire partagé 2" ... }, ]
{ "data"=> [ { "id" : id billet "used" : état (0 pour non composté, 1 pour composté, 2 pour sorti) "lane" : nom du poste de contrôle (optionnel) "used_date_unix" : heure du compostage en sec UNIX (optionnel) }, ... ] }
https://www.billetweb.fr/api/attendees?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1&last_update=1471467631
[ { "event" =>"123", "event_name" => "Event 12", "event_start" =>"2016-03-02 10:41:36", "id": "656087", "ext_id": "T356-3899-E1000", "barcode": "4475320", "used": "1", "lane": "controle n°1", email de l'opérateur ou nom de la file "used_date": "2016-06-15 22:39:24", "firstname": "Prénom", "name": "Nom", "ticket": "Plein tarif", "ticket_id": "12693", "category": "Catégorie 1 > Or", "price": "1.00", "seating_location": "Tribune C > Rang 1 > Siège 2", "last_update": "2016-03-02 10:41:36", "reduction_code": "PROMO12", "authorization_code": "", "pass": "0", "disabled": "0", 1 pour billet remboursé, 0 sinon "product_management: "http://www.billetweb.fr/my_order.php?xxx", "product_download: "http://www.billetweb.fr/download.php?xxx", "order_id": "264751", "order_ext_id": "C425-1306-E4170", "order_firstname": "Prénom", "order_name": "Nom", "order_email": "[email protected]", "order_date": "2016-03-02 10:41:36", "order_paid": "1", 1 pour payé, 0 pour remboursé ou réservation non payée "order_payment_type": "web", "order_origin": "web", "order_price": "1.00", "order_session": "656087", "session_start": "2016-02-01 20:00:00", "order_accreditation: "0", 1 pour en attente, 2 pour refusé, 3 pour accepté "order_management: "http://www.billetweb.fr/my_order.php?xxx", "language" : "fr", "custom": { "champs perso billet": "exemple" } "custom_order": { "champs perso commande": "exemple" } }, ... ]
{ "data"=> [ { "name": "y", "firstname": "x", "email": "[email protected]", "session": "123", id ou date de début de la séance (YYYY-MM-DD HH:MM) si unique dans l'événement "custom": { "8": "75008", }, "request_id":"X1",identifiant interne à votre système qu'on vous retourne dans la réponse "payment_type": "card", obligatoire | 'card', 'cash', 'check', 'other' ou votre id personnalisé "products":[ { "ticket": "Plein tarif", obligatoire | id ou nom si unique dans l'événement "barcode": "12345678", "name": "y", "firstname": "x", "email": "[email protected]", "price": "5.52", "lane": "entree 1", "used": "1", 0,1,2,3 "reference": "abc", "custom": { "11": "15/08/1976", }, "request_id":"Y1",identifiant interne à votre système qu'on vous retourne dans la réponse }, { ... }, ] }, { ... }, ] }
[ { "id": "billetweb_internal_order_id_1", "request_id": "X1", "products":[ 'billetweb_internal_product_id_1', 'billetweb_internal_product_id_2', ], 'products_eq':[ {'Y1':'billetweb_internal_product_id_1'}, {'Y2':'billetweb_internal_product_id_2'}, ] }, { "id": "billetweb_internal_order_id_2", "request_id": "X2", "products":[ 'billetweb_internal_product_id_3', 'billetweb_internal_product_id_4', ], 'products_eq':[ {'Y3':'billetweb_internal_product_id_3'}, {'Y4':'billetweb_internal_product_id_4'}, ] }, ]
{ "data"=> [ { "id": "1234567", "payment_type": "other", "notification": "1", }, ... ] }
{ "data"=> [ { "id": "1234567", }, ... ] }
{ "data"=> [ { "id": "1234567", "accredited": "3", "notification": "1", }, { "id": "1234566", "accredited": "3", "notification": "1", }, ] }
{ "data"=> [ { "id": "1234567", "name": "x", "firstname": "y", "custom" : [{ "392" : "Ma réponse custo", "393" : "Valeur 1-Valeur 2-Valeur 3", }], }, { "id": "1234566", "name": "z", "firstname": "a", }, ] }
$ch = curl_init("https://www.billetweb.fr/api/event/1000/poster?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1"); $cfile = new CURLFile("/path/to/my_file.jpg",'image/jpeg','my_file.jpg'); $data = array('image' => $cfile); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch);
$ch = curl_init("https://www.billetweb.fr/api/event/1000/cover?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1"); $cfile = new CURLFile("/path/to/my_file.jpg",'image/jpeg','my_file.jpg'); $data = array('image' => $cfile); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch);
https://www.billetweb.fr/api/accounting?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1&start=1471467631
[ {, "date": "2021-12-26 12:15:32", "event": "123456", "order": "12345678", "product":"123456789", "ext_id": "T356-3899-E1000", "email" : "[email protected]" "session": "0", "ticket": "123", "price": "5.00", "type": "product_pay", "payment_type": "web", "tax_rate": "20", "tax_amount": "1", "fees":"0.35", }, { ... }, ]
https://www.billetweb.fr/api/payouts?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
https://www.billetweb.fr/api/payouts/2018-01-16/?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "123", "date": "2014-01-01", "amount": "795.04", "account": "NAME", "iban": "FR1420041010050500013M0260", "swift": "XXXXXXX", }, { ... }, ]
https://www.billetweb.fr/api/payout/100/?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
https://www.billetweb.fr/api/payout/2018-01-16/?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "10000", "ext_id": "T001-0002-E12", "date": "2013-12-26 12:15:32", "order_id":"123456", "event": "12", "price": "10", "tax_rate": "20", "tax_amount": "2", "fees": "0.49", }, { ... }, ]
https://www.billetweb.fr/api/date_changes?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1&start=1606783191
[ { "date": "2020-12-04 01:38:47", "order": "123456" "old_session_date": "2020-12-17 00:00:00" "new_session_date": "2020-12-04 05:00:00" }, ... ]
https://www.billetweb.fr/api/lists?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "123", "name": "Abonnés 2016" }, { "id": "456", "name": "Abonnés 2017" }, ]
https://www.billetweb.fr/api/list/1000/data?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ ["[email protected]","Jean","Dupont","10/02/1969"], ["[email protected]","Pierre","Richard",25/05/1965"], ]
{ "data"=> [ ["[email protected]","Jean","Dupont"], ["[email protected]"], ... ] }
https://www.billetweb.fr/api/campaigns?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "123", "name": "Réduction de 5€ sur X,Y,Z", "list":"12456", }, { "id": "456", "name": "Réduction de 10€ sur A,B", "list":"12456", }, ]
https://www.billetweb.fr/api/campaign/1000/data?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "key": "[email protected]", "used": "2", "max": "5", "context":"", "list_col_1": "Jean", "list_col_2": "Dupont", "list_col_3": "", "list_col_4": "", "list_col_5": "", }, { "key": "[email protected]", "used": "1", "max": "7", "context":"", "list_col_1": "", "list_col_2": "", "list_col_3": "", "list_col_4": "", "list_col_5": "", }, ]
https://www.billetweb.fr/api/crm/contacts?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1&
[ "[email protected]": { "id": "1023936", "email": "[email protected]", "name": "ANDRE ", "firstname": "Alice", "added_on": "2022-04-21 15:54:06", "last_update": "2022-04-21 15:54:06", "trans_count": "2", "trans_total": "15", "trans_first": "2020-02-02", "trans_last": "2021-06-16", "product_count": "2", "product_price_max": "15", "product_price_average": "8" "custom": { "Pays": "fr", "Code postal": "38000" } }, }, "[email protected]": { "id": "1023937", "email": "[email protected]", "name": "XXX", "firstname": "xxx", "added_on": "2022-04-21 15:54:06", "last_update": "2022-04-21 15:54:06", "trans_count": "2", "trans_total": "12", "trans_first": "2022-02-02", "trans_last": "2022-06-16", "product_count": "3", "product_price_max": "15", "product_price_average": "8" "custom": { "Pays": "es", "Code postal": "1212" } }, }, ... ]
https://www.billetweb.fr/api/crm/segments?user=1&key=eccbc87e4b5ce2fe28308fd9f2a7baf3&version=1
[ { "id": "111", "name": "Acheteurs de plus de 5 achats", "created_on": "2020-02-05 17:45:35", "last_sync": "0000-00-00 00:00:00", }, { "id": "112", "name": "Acheteur avec un seul achat", "created_on": "2020-03-06 12:25:35", "last_sync": "0000-00-00 00:00:00", }, ]