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 website.module

El usuario solo necesita uno de los permisos listados.

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-11-02T19:00:57Z
HTTP 200

Request

{
    "fulfillmentUuid": "41fcedc3-676c-4220-b9b1-173c771003d6",
    "allowExternalOrder": 1
}

Response

{
    "success": true,
    "message": "Pedidos en línea del canal actualizados",
    "data": {
        "fulfillments": [
            {
                "fulfillmentUuid": "03846687-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "DiDi Food",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "038465df-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "Domicilio",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 1
            },
            {
                "fulfillmentUuid": "038466bb-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "iFood",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "0384661c-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "Rappi",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "03846653-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "Uber Eats",
                "fulfillmentTypeCode": "fulfillment.delivery",
                "fulfillmentTypeName": "A domicilio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "41fcedc3-676c-4220-b9b1-173c771003d6",
                "fulfillmentName": "Entrega 096da6",
                "fulfillmentTypeCode": "fulfillment.takeout",
                "fulfillmentTypeName": "Para llevar",
                "allowExternalOrder": 1
            },
            {
                "fulfillmentUuid": "03c84bbb-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "Para llevar",
                "fulfillmentTypeCode": "fulfillment.takeout",
                "fulfillmentTypeName": "Para llevar",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "0384659f-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "Vehículo",
                "fulfillmentTypeCode": "fulfillment.curbside",
                "fulfillmentTypeName": "Vehiculo",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "03846536-d113-11f1-8bb6-de64ef616b7c",
                "fulfillmentName": "Autoservicio",
                "fulfillmentTypeCode": "fulfillment.counter",
                "fulfillmentTypeName": "Autoservicio",
                "allowExternalOrder": 0
            },
            {
                "fulfillmentUuid": "99377008-d31a-4aad-af90-fdc33d8f4804",
                "fulfillmentName": "Entrega 157971",
                "fulfillmentTypeCode": "fulfillment.counter",
                "fulfillmentTypeName": "Autoservicio",
                "allowExternalOrder": 0
            }
        ]
    }
}