This endpoint is a feature provided by an online Salla Store that allows customers to book a product as a service. This endpoint handles requests to add a new booking for a specific product/service, and creates a booking record in the store's database that includes relevant details. The endpoint streamlines the booking process for customers and store administrators, and provides a convenient way to book products as services.Payload#
This field specifies the ID of the product/service that the user wants to book. This field is typically a numerical value that uniquely identifies the product/service within the store's database.
This field is a boolean value that determines whether or not the API response should include a redirect to the newly created booking.
Response#
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A pre-defined url for redirecting customer.
A specific url for redirecting the customer after making a booking.
Usage#
To perform the action of booking a product as a service, the method add()
may be used as follows.Events#
This endpoint may trigger two events, the onAdded and onAdditionFailed events.onAdded#
This event is triggered when booking a product as a service is done without having any errors coming back from the backend.onAdditionFailed#
This event is triggered when booking a product as a service is not completed and an error has occurred. Modified at 2024-02-18 14:29:21