Booking: Preferred Language

edited February 24 in Developers
I am using Developer Console to create a booking 
I am doing a request like this:

booking/create?form[customer_name]=Ajay Dtester&form[customer_email]=ajay.gusain@prenetics.com&form[customer_phone]=+85298765432&form[product_id]=fit&form[product_name]=myDNA Pro&form[product_email]=care@mydnapro.com&form[cs_number]=(852) 2210 9595&form[booking_language]=zh_HK&session_id=5ic3vltul7qn0o2pkcimutsg43

In the response I see an error:
        "error": {
            "id": "validation_error",
            "title": "Missing required fields",
            "details": "The following fields are required: Your Preferred Language",
            "data": {
                "your_preferred_language": "Your Preferred Language"
            }
How can I specify the preferred language?

Comments

  • BrettBrett Checkfront
    Hi @Andrey,

    Thank you for reaching out on our forums!

    I can't say for sure what the issue you are experiencing is without knowing what fields are enabled in your Checkfront account, however it appears as though you have a required custom booking form field called "Your Preferred Language" that you are not submitting with your request. You should be able to submit it by adding a &form[your_preferred_language]=English to the request, since it is just another custom form field.

    I hope this helps, but if you have any additional questions, feel free to reply here or write in to us at support@checkfront.com

    All the best,
    Brett - Checkfront Support Team
Sign In or Register to comment.