curl https://crypto.cucu.ai/api/v1/merchants/me/health \
-H "X-API-Key: sk_live_xxxx"
const response = await fetch(
'https://crypto.cucu.ai/api/v1/merchants/me/health',
{ headers: { 'X-API-Key': 'sk_live_xxxx' } }
);
const data = await response.json();
import requests
response = requests.get(
'https://crypto.cucu.ai/api/v1/merchants/me/health',
headers={'X-API-Key': 'sk_live_xxxx'}
)
print(response.json())
{
"ok": true,
"merchant": {
"id": "392b8825-18d3-404f-a029-2f11c8d14d32",
"name": "Mi Tienda"
},
"webhook_registered": true,
"webhook_url": "https://tu-servidor.com/webhooks/cucu-crypto"
}
Endpoints
Health Check
Verifica el estado de tu integración y si tienes webhook registrado.
GET
/
api
/
v1
/
merchants
/
me
/
health
curl https://crypto.cucu.ai/api/v1/merchants/me/health \
-H "X-API-Key: sk_live_xxxx"
const response = await fetch(
'https://crypto.cucu.ai/api/v1/merchants/me/health',
{ headers: { 'X-API-Key': 'sk_live_xxxx' } }
);
const data = await response.json();
import requests
response = requests.get(
'https://crypto.cucu.ai/api/v1/merchants/me/health',
headers={'X-API-Key': 'sk_live_xxxx'}
)
print(response.json())
{
"ok": true,
"merchant": {
"id": "392b8825-18d3-404f-a029-2f11c8d14d32",
"name": "Mi Tienda"
},
"webhook_registered": true,
"webhook_url": "https://tu-servidor.com/webhooks/cucu-crypto"
}
Verifica el estado de tu integración y si tienes webhook registrado.
Headers
| Header | Tipo | Req | Descripción |
|---|---|---|---|
X-API-Key | string | Sí | API Key del merchant |
Response
| Campo | Tipo | Descripción |
|---|---|---|
ok | boolean | true si la integración está activa. |
merchant.id | string | UUID del merchant en CUCU. |
merchant.name | string | Nombre del merchant. |
webhook_registered | boolean | true si hay una URL de webhook registrada. |
webhook_url | string | null | URL de webhook actualmente registrada. |
curl https://crypto.cucu.ai/api/v1/merchants/me/health \
-H "X-API-Key: sk_live_xxxx"
const response = await fetch(
'https://crypto.cucu.ai/api/v1/merchants/me/health',
{ headers: { 'X-API-Key': 'sk_live_xxxx' } }
);
const data = await response.json();
import requests
response = requests.get(
'https://crypto.cucu.ai/api/v1/merchants/me/health',
headers={'X-API-Key': 'sk_live_xxxx'}
)
print(response.json())
{
"ok": true,
"merchant": {
"id": "392b8825-18d3-404f-a029-2f11c8d14d32",
"name": "Mi Tienda"
},
"webhook_registered": true,
"webhook_url": "https://tu-servidor.com/webhooks/cucu-crypto"
}
⌘I