Create booking (with products)
documentedCreate a new booking based on a list of products
POST /api2/book_productsBook Productsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$recras_domain}}.recras.nl/api2/book_products" \
-X POST \
-H "Authorization: Bearer {{RECRAS_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"status": "{{$status}}", "customer": {"email": "{{$customer_email}}", "company_id": {{$customer_company_id}}, "first_name": "{{$customer_first_name}}", "last_name": "{{$customer_last_name}}", "phone_number": "{{$customer_phone}}"}, "products": [ {"amount": {{$product_amount}}, "product_id": {{$product_id}}, "datetime": "{{$product_datetime}}"} ], "should_invoice": {{$should_invoice}} }'