馃殌 RBI Integration API

API para integraci贸n con Rabbit Burger (RBI). Todos los endpoints requieren autenticaci贸n.

馃攼 Autenticaci贸n Requerida: Incluye el header x-api-key en todas las peticiones.

馃搵 Endpoints Disponibles:

POST /rbi/job
Crear un nuevo trabajo/pickup
{
  "pickup": {
    "address": "Calle Principal 123",
    "customer": {
      "name": "Juan P茅rez",
      "phone": "+34600123456"
    },
    "items": [...]
  }
}
GET /rbi/job/:pickupId
Obtener informaci贸n de un trabajo por ID
GET /rbi/job/ABC123XYZ
DELETE /rbi/job/:pickupId
Cancelar un trabajo
DELETE /rbi/job/ABC123XYZ
POST /rbi/job/webhook
Webhook para actualizaciones (sin autenticaci贸n)
PUT /rbi/job/:pickupId/webhooktest
Test de webhook

馃敆 Ejemplo de Uso:

// Crear un job
fetch('https://api-kometa-delivery.nexus-software.es/rbi/job', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'TU_API_KEY_AQUI'
  },
  body: JSON.stringify({
    pickup: { /* datos del pickup */ }
  })
})
.then(res => res.json())
.then(data => console.log(data));

// Obtener un job
fetch('https://api-kometa-delivery.nexus-software.es/rbi/job/ABC123', {
  headers: { 'x-api-key': 'TU_API_KEY_AQUI' }
})
.then(res => res.json())
.then(data => console.log(data));

Dominio: api-kometa-delivery.nexus-software.es
Regi贸n: europe-west2
Proyecto: mushdrink-delivery-platform