Restofy Docs
Disponibilidad por canal POST

Activar pedidos en línea de un canal

POST /api/fulfillment-config/set-allow-external-order

Descripción

Prende o apaga los pedidos de clientes que llegan sin QR en un canal de entrega.

Detalles

* Un canal con pedidos en línea aparece como opción para quien entra desde el mercado de Restofy, el enlace público o una web propia. * De ese canal salen la carta, las formas de pago y el horario que ve el cliente. * Para prenderlo, el canal no puede ser en mesa ni en habitación y tiene que estar activo en QR / Enlace. * Apagarlo siempre se permite; sin canales en línea el cliente solo ve la carta.

Permisos requeridos

admin.module

Request

Nombre Tipo Requerido Reglas
fulfillmentUuid string Sí
min:36 max:36
allowExternalOrder int Sí
enum:0,1

Ejemplo de request

curl -X POST https://restofy.pro/api/fulfillment-config/set-allow-external-order \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <accessToken>" \
  -d '{
    "fulfillmentUuid": "string",
    "allowExternalOrder": 1
}'

Los valores son demo: reemplázalos por datos reales del negocio.

Ejemplo de respuesta

Actualizado: 2026-10-09T02:12:12Z
HTTP 200

Request

{
    "fulfillmentUuid": "36e3f3ad-01fa-4f44-b001-7e0d5ac7981e",
    "allowExternalOrder": 1
}

Response

{
    "success": true,
    "message": "Pedidos en línea del canal actualizados",
    "data": {
        "fulfillments": [
            {
                "fulfillmentUuid": "f600982d-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "DiDi Food",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "f600977d-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "Domicilio",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 1
            },
            {
                "fulfillmentUuid": "f6009864-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "iFood",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "f60097b9-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "Rappi",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "f60097f5-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "Uber Eats",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "36e3f3ad-01fa-4f44-b001-7e0d5ac7981e",
                "fulfillmentName": "Entrega 2e6449",
                "fulfillmentTypeCode": "fulfillment.takeout",
                "fulfillmentTypeName": "Para llevar",
                "allowExternalOrder": 1
            },
            {
                "fulfillmentUuid": "f6424c46-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "Para llevar",
                "fulfillmentTypeCode": "fulfillment.takeout",
                "fulfillmentTypeName": "Para llevar",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "f6009738-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "Vehículo",
                "fulfillmentTypeCode": "fulfillment.curbside",
                "fulfillmentTypeName": "Vehiculo",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "f60096d1-c384-11f1-a755-a2f78ac020f7",
                "fulfillmentName": "Autoservicio",
                "fulfillmentTypeCode": "fulfillment.counter",
                "fulfillmentTypeName": "Autoservicio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "7c74086a-6fdf-4c26-a53d-bd0ea2994122",
                "fulfillmentName": "Entrega 3555e8",
                "fulfillmentTypeCode": "fulfillment.counter",
                "fulfillmentTypeName": "Autoservicio",
                "allowExternalOrder": 0
            }
        ]
    }
}