request_business_diagnosis
Requests the business's diagnosis from the swarm, with its key
POST https://emporium.ultravioletadao.xyz/api/businesses/{slug}/diagnosis/request
Where to reach it
| REST API | Live | POST https://emporium.ultravioletadao.xyz/api/businesses/{slug}/diagnosis/request |
|---|---|---|
| MCP | Coming soon | |
| CLI | Coming soon | |
| Python SDK | Coming soon | |
| TypeScript SDK | Coming soon | |
| Rust SDK | Coming soon |
Live: you can use it today, to read and to write. Read-only: today you can read, not write. Coming soon: not there yet.
Parameters
| Name | In | Required | Schema | What it is |
|---|---|---|---|---|
slug | path | yes | string | |
X-Emporium-Clave | header | yes | string | The business's draft key: shown once, in the response to POST /api/businesses |
Request body
Optional.
application/json
{
"$ref": "#/components/schemas/CuerpoDelPedido"
}
Responses
200
OK
application/json
{
"$ref": "#/components/schemas/RespuestaDelPedido"
}
201
Created
application/json
{
"$ref": "#/components/schemas/RespuestaDelPedido"
}
Any other status
An error: with JSON, the single envelope, whose error.codigo is one of a closed list
application/json
{
"$ref": "#/components/schemas/SobreDeError"
}
Schemas
The ones this operation names, as they are in the contract's components.schemas.
CodigoDeError
{
"enum": [
"dominio_invalido",
"slug_ocupado",
"tenant_no_encontrado",
"tenant_no_publicado",
"tenant_suspendido",
"clave_invalida",
"estado_no_permite",
"ventana_no_cumplida",
"metodo_invalido",
"manifiesto_invalido",
"categoria_prohibida",
"terminos_no_aceptados",
"canal_no_confirmado",
"version_de_terminos_desconocida",
"pedido_invalido",
"faltan_datos",
"respuesta_invalida",
"firma_invalida",
"enlace_vencido",
"enlace_ya_usado",
"demasiadas_peticiones",
"parametro_invalido",
"metodo_no_permitido",
"firma_no_configurada",
"correo_no_configurado",
"terminos_no_configurados",
"casa_no_configurada",
"almacen_no_disponible",
"error_interno",
"paybox_no_configurado",
"boveda_no_disponible",
"sesion_requerida",
"estado_oauth_invalido",
"consentimiento_rechazado",
"concesion_insegura",
"paybox_no_responde",
"paybox_rechazo",
"sin_vinculo",
"vinculo_revocado",
"vinculo_vencido",
"reconexion_requerida",
"vinculo_ajeno",
"renovacion_en_curso"
],
"type": "string"
}
CuerpoDelError
{
"additionalProperties": false,
"properties": {
"codigo": {
"$ref": "#/components/schemas/CodigoDeError"
},
"detalles": {
"items": {
"$ref": "#/components/schemas/Detalle"
},
"type": "array"
},
"mensaje": {
"type": "string"
},
"peticion_id": {
"type": "string"
}
},
"required": [
"codigo",
"detalles",
"mensaje",
"peticion_id"
],
"type": "object"
}
CuerpoDelPedido
{
"additionalProperties": false,
"properties": {
"metodo": {
"anyOf": [
{
"$ref": "#/components/schemas/MetodoVerificacion"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
}
Detalle
{
"additionalProperties": false,
"properties": {
"campo": {
"type": "string"
},
"problema": {
"type": "string"
}
},
"required": [
"campo",
"problema"
],
"type": "object"
}
EstadoQueSeVe
{
"enum": [
"pendiente",
"entregado",
"vencido"
],
"type": "string"
}
MetodoVerificacion
{
"enum": [
"dns",
"archivo"
],
"type": "string"
}
PedidoQueSeVe
{
"properties": {
"creado_en": {
"type": "string"
},
"entregado_en": {
"type": [
"string",
"null"
]
},
"estado": {
"$ref": "#/components/schemas/EstadoQueSeVe"
}
},
"required": [
"creado_en",
"entregado_en",
"estado"
],
"type": "object"
}
RespuestaDelPedido
{
"properties": {
"aviso": {
"type": "string"
},
"dominio": {
"type": "string"
},
"pedido": {
"anyOf": [
{
"$ref": "#/components/schemas/PedidoQueSeVe"
},
{
"type": "null"
}
]
},
"propiedad_probada_en": {
"type": [
"string",
"null"
]
},
"slug": {
"type": "string"
}
},
"required": [
"aviso",
"dominio",
"pedido",
"propiedad_probada_en",
"slug"
],
"type": "object"
}
SobreDeError
{
"additionalProperties": false,
"properties": {
"error": {
"$ref": "#/components/schemas/CuerpoDelError"
}
},
"required": [
"error"
],
"type": "object"
}