Update a tenant product
curl --request PATCH \
--url https://api.simplepay.mx/v1/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '{}'const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.simplepay.mx/v1/products/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/products/{id}"
payload = {}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"active": true,
"booking": {
"bufferAfterMinutes": 1,
"bufferBeforeMinutes": 1,
"capacity": 2,
"config": {},
"durationMinutes": 2,
"enabled": true,
"paymentRequired": true,
"slotIntervalMinutes": 2,
"timeZone": "<string>"
},
"defaultPrice": {
"amount": 1,
"currency": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"name": "<string>",
"object": "<unknown>",
"updatedAt": "2023-11-07T05:31:56Z"
}Update a tenant product
Referencia detallada para PATCH /v1/products/.
PATCH
https://api.simplepay.mx
/
v1
/
products
/
{id}
Update a tenant product
curl --request PATCH \
--url https://api.simplepay.mx/v1/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '{}'const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.simplepay.mx/v1/products/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/products/{id}"
payload = {}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"active": true,
"booking": {
"bufferAfterMinutes": 1,
"bufferBeforeMinutes": 1,
"capacity": 2,
"config": {},
"durationMinutes": 2,
"enabled": true,
"paymentRequired": true,
"slotIntervalMinutes": 2,
"timeZone": "<string>"
},
"defaultPrice": {
"amount": 1,
"currency": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"name": "<string>",
"object": "<unknown>",
"updatedAt": "2023-11-07T05:31:56Z"
}Uso
Usalo para administrar productos del tenant, ofertas, disponibilidad o inventario empresarial asociado al catalogo SimplePay.Antes de llamar
| Tema | Detalle |
|---|---|
| Metodo | PATCH |
| Ruta | /v1/products/{id} |
| Auth | Bearer API key del ambiente correcto. |
| Scope | products:write |
| Idempotencia | Recomendada para cualquier retry. Usa una key deterministica por operacion de negocio. |
| Guia relacionada | API Reference overview |
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. - Consulta el bloque OpenAPI de esta pagina para el shape exacto de parametros, body y respuestas.
Ejemplo minimo
terminal
curl -sS -X PATCH "https://api.simplepay.mx/v1/products/id_123" \
-H "Authorization: Bearer $SIMPLEPAY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: update-product_v1" \
-d '{ ... }'
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.
Headers
Path Parameters
Body
application/json
Hide child attributes
Hide child attributes
Required range:
x >= 0Required range:
x >= 0Required range:
x >= 1Required range:
x >= 1Required range:
x >= 1Minimum string length:
1Available options:
appointment, class, scheduled_offer, experience, rental, service, standard, date_range Response
200 - application/json
Tenant product updated
Hide child attributes
Hide child attributes
Required range:
x >= 0Required range:
x >= 0Required range:
x >= 1Required range:
x >= 1Required range:
x >= 1Available options:
appointment, bundle, class, scheduled_offer, experience, package, rental, service, standard, date_range Last modified on June 21, 2026
⌘I