Detach a booking resource from a booking event type
curl --request DELETE \
--url https://api.simplepay.mx/v1/bookable-payments/event_types/{id_or_slug}/resources/{resource_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/bookable-payments/event_types/{id_or_slug}/resources/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/bookable-payments/event_types/{id_or_slug}/resources/{resource_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"active": true,
"capacity_override": 2,
"event_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "<unknown>",
"priority": 123,
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Detach a booking resource from a booking event type
Referencia detallada para DELETE /v1/bookable-payments/event_types//resources/.
DELETE
https://api.simplepay.mx
/
v1
/
bookable-payments
/
event_types
/
{id_or_slug}
/
resources
/
{resource_id}
Detach a booking resource from a booking event type
curl --request DELETE \
--url https://api.simplepay.mx/v1/bookable-payments/event_types/{id_or_slug}/resources/{resource_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/bookable-payments/event_types/{id_or_slug}/resources/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/bookable-payments/event_types/{id_or_slug}/resources/{resource_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"active": true,
"capacity_override": 2,
"event_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "<unknown>",
"priority": 123,
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Uso
Usalo dentro de Bookable Payments para modelar inventario reservado, calcular disponibilidad, crear holds, convertirlos en checkout y confirmar bookings.Antes de llamar
| Tema | Detalle |
|---|---|
| Metodo | DELETE |
| Ruta | /v1/bookable-payments/event_types/{id_or_slug}/resources/{resource_id} |
| Auth | Bearer API key del ambiente correcto. |
| Scope | availability:write |
| Idempotencia | Recomendada para cualquier retry. Usa una key deterministica por operacion de negocio. |
| Guia relacionada | Bookable Payments |
Patron recomendado
- Ejecuta este endpoint desde backend o job seguro, nunca desde frontend con API keys.
- Manda
Idempotency-Keycuando el endpoint cree, convierta, reprograme, cancele, capture o reembolse estado. - Confirma inventario final con
booking.confirmedo una lectura de booking, no solo con una URL de retorno. - Consulta el bloque OpenAPI de esta pagina para el shape exacto de parametros, body y respuestas.
Ejemplo minimo
terminal
curl -sS -X DELETE "https://api.simplepay.mx/v1/bookable-payments/event_types/experiencia-isla/resources/resource_123" \
-H "Authorization: Bearer $SIMPLEPAY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: detach-booking-event-type-resource_v1"
Errores a manejar
400indica payload, parametros o estado invalido.401o403indican API key, ambiente o scopes incorrectos.409suele indicar conflicto de estado, duplicado o idempotencia incompatible.404significa que el recurso no existe para ese tenant o ambiente.429y5xxse pueden reintentar con backoff; en writes conserva la misma idempotency key.
Contrato OpenAPI
El playground, parametros, body y respuestas de abajo salen de/openapi.json. Si el contrato cambia, actualiza la spec y regenera esta pagina.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Last modified on June 21, 2026
Attach a booking resource to a booking event typeAttach an availability schedule to a booking event type
⌘I