Link Search Menu Expand Document

POST https://api.bookthatapp.com/v1/bookings

Create a booking.

Example

curl -X POST "https://api.bookthatapp.com/v1/bookings" \ 
    -H "Authorization: Bearer auth_token" \
    -H 'Content-Type: application/json' \
    -d '{
          "starts_at": "2019-03-18 00:00",
          "finishes_at": "2019-03-19 00:00",
          "items": [ 
            { 
              "external_id": "28912354753",
              "resource_id": "123456",
              "quantity": "2"
            }
          ],
          "customers": [
            {
              "first_name": "Joe",
              "last_name": "Blogs",
              "email": "[email protected]"
            }
          ],
          "fields": [
            { 
              "name": "Where are you from?", 
              "value": "Sydney" 
            },
            { 
              "name": "How did you hear about us?", 
              "value": "Through the grapevine" 
            }
          ],
          "tags": [
            "api_booking"
          ],
          "create_draft_order": "true",
        }'

Copyright © 2017-2024 BTA Commerce, Inc, a Delaware corporation.