Create a new active tenant bundle version
curl --request PUT \
--url https://api.simplepay.mx/v1/products/{id}/bundle \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"components": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 1,
"sort_order": 0,
"public": true,
"metadata": {}
}
]
}
'const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
components: [
{
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
price_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 1,
sort_order: 0,
public: true,
metadata: {}
}
]
})
};
fetch('https://api.simplepay.mx/v1/products/{id}/bundle', 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}/bundle"
payload = { "components": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 1,
"sort_order": 0,
"public": True,
"metadata": {}
}
] }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "<unknown>",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"components": 123,
"version_number": 123
}Create a new active tenant bundle version
Referencia detallada para PUT /v1/products//bundle.
PUT
https://api.simplepay.mx
/
v1
/
products
/
{id}
/
bundle
Create a new active tenant bundle version
curl --request PUT \
--url https://api.simplepay.mx/v1/products/{id}/bundle \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"components": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 1,
"sort_order": 0,
"public": true,
"metadata": {}
}
]
}
'const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
components: [
{
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
price_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 1,
sort_order: 0,
public: true,
metadata: {}
}
]
})
};
fetch('https://api.simplepay.mx/v1/products/{id}/bundle', 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}/bundle"
payload = { "components": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 1,
"sort_order": 0,
"public": True,
"metadata": {}
}
] }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "<unknown>",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"components": 123,
"version_number": 123
}Uso
Usalo para administrar productos del tenant, ofertas, disponibilidad o inventario empresarial asociado al catalogo SimplePay.Antes de llamar
| Tema | Detalle |
|---|---|
| Metodo | PUT |
| Ruta | /v1/products/{id}/bundle |
| 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 PUT "https://api.simplepay.mx/v1/products/id_123/bundle" \
-H "Authorization: Bearer $SIMPLEPAY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: upsert-product-bundle_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
Required string length:
8 - 255Path Parameters
Body
application/json
Available options:
fixed_price, sum_components Minimum array length:
1Hide child attributes
Hide child attributes
Required range:
x >= 1Available options:
included, credit_grant, upsell, internal Last modified on June 21, 2026
⌘I