Dettaglioauto SA - API Collection V1
  1. Booking
Dettaglioauto SA - API Collection V1
  • Vehicle Size
    • List Vehicle Sizes
      GET
  • Catalog
    • List categories with services
      GET
  • Region
    • List regions
      GET
  • Branch
    • List Branches
      GET
  • Branch Times
    • List Days
      GET
    • List Hours
      GET
  • Booking
    • Store Booking
      POST
    • List Bookings
      GET
  • Payment
    • Get Payment Details
      GET
  • Coupon
    • Apply Coupon
      POST
  • Cart
    • Initialize Cart
      POST
    • Add To Cart
      POST
    • Get Cart
      GET
    • Remove Cart Item
      DELETE
    • Clear Cart
      DELETE
  1. Booking

Store Booking

POST
/v1/booking
making new booking for the customer

Request

Header Params

Body Params multipart/form-data

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/v1/booking' \
--header 'Customer-Key: {{Customer-Key}}' \
--header 'Secret-Key: {{Secret-Key}}' \
--header 'Accept-Language: ar' \
--form 'vehicle_size_uuid="{{vehicle_size_uuid}}"' \
--form 'branch_uuid="{{branch_uuid}}"' \
--form 'booking_date="2025-08-27"' \
--form 'booking_time="11:00"' \
--form 'payment_method_identifier="cash"' \
--form 'customer_data[first_name]="تجربة"' \
--form 'customer_data[last_name]="تجربة"' \
--form 'customer_data[phone]="0563669696"' \
--form 'customer_data[country_code]="966"' \
--form 'customer_data[email]="test@test.com"' \
--form 'customer_data[address]="1.St"' \
--form 'services[]="{{service_uuid}}"' \
--form 'payment_redirect_url="https://dettaglioauto.sa/thankyou"'
Response Response Example
{
    "success": true,
    "message": "success",
    "data": {
        "transaction_id": "29a1bb76-b49b-41e1-b338-0bf12c0e9596",
        "total_amount": 950,
        "payment_url": "https://checkout.tabby.ai/?apiKey=pk_bdfdfrelvm-4het-erw-f4a7c826d&lang=ara&merchantCode=DedfsA&product=installments&sessionId=a41ctt3-9fcb-4ab7-bdc7-5aa9728cec5e"
    }
}
Modified at 2025-12-26 13:13:15
Previous
List Hours
Next
List Bookings
Built with