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.
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.
withRedirect
boolean
optional
This field is a boolean value that determines whether or not the API response should include a redirect to the newly created booking.
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.
Allowed values:
200201202
success
boolean
optional
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.
data
object
optional
to
enum<string>
optional
A pre-defined url for redirecting customer.
Allowed values:
loginbooking
url
string|null
optional
A specific url for redirecting the customer after making a booking.