API Reference

Endpoint to update Place configurations.

  • HasSlotConfirmation
    This endpoint is used to update the variable hasSlotConfirmation for a specific gym to true or false.
    By default, the hasSlotConfirmation variable is set to false for all gyms.

    This feature is only applicable for partners who utilize the Confirm Slot functionality.
    (For more information, check this part of the documentation: Confirm Slot API).

    The Confirm Slot functionality works as follows:
    When a booking is made through the app, the booking system creates a confirmation address and sends it to the partner along with the slot webhook.
    Below is an example of the confirmation address sent to the partner:

    {
      "event": {
        "id": "40dc2acc-f418-4447-9d78-7b1c76fc8399",
        "title": "Yoga"
      },
      "place": {
        "place": "9c83d967-d783-4e74-9e11-4ebe462ab7d9",
        "name": "TUDO JEANS"
      },
      "user": {
        "name": "Pedro Santos",
        "email": "[email protected]",
        "phone": "(11) 98222-4623",
        "document_number": "23312388894",
        "document_type": "cpf",
        "code": "S2MXBABC"
      },
      "slot": {
        "id": "677fc3d14bc7797787a4e8c7",
        "status": "active",
        "date": "2025-01-10T20:30:00.000Z",
        "seat": null,
        "confirmation_url": "https://booking-api.totalpass.com/partner/slot/confirmSlot/677fc3d14bc7797787a4e8c7"
      }
    }
    

    Additional Notes:

    • This endpoint should only be used by partners who use the Confirm Slot feature.
    • Ensure proper authentication and authorization mechanisms are in place.
Language
URL
Click Try It! to start a request and see the response here!