arrow_back_iosQuestions
help

Can the system automatically transfer order data to our API?

check_circle
Yes, you can configure the sending of order data from Bukza to a third-party server.
You can define the data format yourself using the web request template editor. A web request can be sent automatically or by clicking on a button.
To create a web request go to the dashboard and click the Templates and integrations.
Then click Create web request.
Enter the name, URL and body for the POST request.
You can insert order data into the request body template and URL. To do this, press Insert parameter and select the required order parameter. This will add the parameter in square brackets into the template.
You can also insert the entire order structure into the request body template, for example, a block with a list of reservations. To do this, press Insert structure and select the desired format.
The following blocks can be used in the structure:
  • [bukza_reservations_start]...[bukza_reservations_end] — reservation list block. If there are several reservations in the order, a template of this block will be inserted and populated for each of them.
  • [bukza_reservations_comma] is a comma in the reservation list. This block will be replaced with a comma for all reservations except the last one.
  • [bukza_invoice_items_start]...[bukza_invoice_items_end] — a similar block for the list of invoice items inside the reservation.
  • [bukza_invoice_items_name] — the name of the invoice item.
  • [bukza_invoice_items_quantity] — the quantity of the invoice item.
  • [bukza_invoice_items_price] — the price of the invoice item.
  • [bukza_invoice_items_total] — the total amount of the invoice item.
  • [bukza_invoice_items_deposit] — the deposit of the invoice item.
  • [bukza_invoice_items_comma] is a comma in the list of invoice items. This block will be replaced with a comma for all invoice items except the last one.
  • [bukza_fields_start]...[bukza_fields_end] — a block for the list of fields inside the reservation.
  • [bukza_fields_name] — the name of the field.
  • [bukza_fields_value] — the vlaue of the field.
  • [bukza_fields_comma] is a comma in the field list. This block will be replaced with a comma for all fields except the last one.
If there are several reservations in the order, then you can send one request separately for each of these reservations. In this case, you do not need to create a block for the list of reservations. You should use the structure for a single reservation instead.
The created web request can now be sent from the order form on the Manage tab.
You can also send a web request using a button or automatically when certain events occur. To do this, create a trigger and add a task with an action Send web request. Read more about how triggers work here.
Didn't find the answer to your question?
Feel free to ask it at
mail_outline support@bukza.com