Create code to catch a webhook and use the Checkfront API to create a Pre-quote from the data within the webhook

Job ID: 32127277

Budget: $250 – $750 AUD

Our Wordpress website has a plugin called CFF (enquiry form) where we can configure a webhook address to POST inquiries to a webhook.

We use a booking system called Checkfront. We would like to catch the info from the webhook address to be determined and pre-fill a booking in the Pre-Quote stage with information such as:
fieldname19 firstname
fieldname20 lastname
fieldname24 email address
fieldname21 Company
fieldname18 Catering Address
fieldname50 Billing Address
fieldname48 Phone Number
fieldname1 Truck Choice
fieldname2 Date of event
fieldname57 Google Date Format
fieldname4 Number of Adults
fieldname5 Number of Kids
fieldname7 Event Start time
fieldname8 # extra hours of service
fieldname9 # hours early arrival
fieldname16 # waiters required
fieldname28 Package
fieldname11 # pizzas if package = "Number of Pizzas ($25/pizza)"
fieldname33 Extra Options
1
Salads (+$6/pers)
2
Gelato (+$6/pers)
3
Spuds (+$12/pers)
4
Garden Games Hire ($200)
fieldname31 Comments
fieldname42 Return travel costs
fieldname58 Event Type

Code would be preferably Javascript hosted on our Cloudflare environment as a Worker https://workers.cloudflare.com/

with limits within the FREE plan:
https://developers.cloudflare.com/workers/platform/limits

Code to be sent to me and I will upload via wrangler

connection to Checkfront API with a token with an API Key and an API Secret
API doc at:
http://api.checkfront.com/
Related categories: JavaScript API Cloudflare