• Documentación

    • Información general
    • Entornos
    • Primeros pasos
    • Listar CFDI's
    • Buscar CFDI
    • Crear CFDI 4.0
    • Crear CFDI Global 4.0
    • Borradores CFDI 4.0
    • Descargar CFDI
    • Cancelar CFDI 4.0
    • Descargar acuse CFDI 4.0
    • Enviar CFDI
    • Consultar estatus de cancelación de un CFDI
    • Autofacturación
    • Grupos de empleados
    • Empleados
    • Nóminas
    • Complementos
    • Retenciones
    • Complementos de retenciones
    • Carta porte v3.1
    • Comercio exterior v2.0
    • Catálogos
    • Clientes
    • Empresas
    • Migraciones
    • Series
    • Productos
    • Addendas

      • Introducción
      • ADO
      • Aduanero
      • Amazon
      • APR
      • Arteche North America
      • Asonioscoc
      • Asoprolimates
      • Basware
      • Calsonic Kansei
      • CENACE
      • City Fresko
      • Comentario
      • Costco
      • Custom (cambio de concepto)
      • Envases Universales de México (EUM)
      • Gunderson
      • Hapag-Lloyd
      • Herdez
      • Inbursa
      • Kuehne + Nagel
      • Lesaffre
      • Liverpool
      • Mabe
      • Nortech
      • NS (propina)
      • PepsiCo
      • Plastek
      • Proveedores
      • Sanmina
      • Sevisible
      • Sidel
      • Sintenovo
      • Soriana
      • Soriana simplificada
      • Thetodoonline
      • Tsubakimoto
      • Walmart
      • Whirlpool
    • Fundamentos legales del SAT

Liverpool

Así podremos crear una addenda de Liverpool, con un ejemplo y la muestra de la respuesta al crearla.

Esta addenda utiliza el estándar Detallista que solicita Liverpool para recibir facturas, notas y recibos de sus proveedores.

Para crear la addenda de Liverpool serán necesarios los siguientes parámetros:

ParámetroTipoRequeridoDetalles
 invoice String Requerido Es el identificador del CFDI al cual se le agregará la addenda, puede ser el UID o el UUID.
 detallista Objeto Requerido Contiene la información de la addenda. La clave del body es detallista, no liverpool.
 documentStatus String Requerido Estado del documento. Valores: ORIGINAL, DELETE, COPY o REEMPLAZA.
 entityType String Requerido Tipo de comprobante. Valores: INVOICE (factura), DEBIT_NOTE (nota de cargo), CREDIT_NOTE (nota de crédito), LEASE_RECEIPT (recibo de arrendamiento), HONORARY_RECEIPT (recibo de honorarios), PARTIAL_INVOICE (factura parcial) o TRANSPORT_DOCUMENT (carta porte).
 specialInstruction Objeto Requerido Instrucción especial del documento.
 specialInstruction.code String Requerido Código de la instrucción: AAB condiciones de pago, DUT impuestos o pedimentos, PUR compras, ZZZ importe con letra.
 specialInstruction.text String Requerido Texto de la instrucción que corresponde al code.
 orderIdentification Objeto Requerido Datos del pedido.
 orderIdentification.referenceIdentification String Requerido Número de pedido de Liverpool.
 orderIdentification.type String Requerido Valor fijo ON.
 orderIdentification.referenceDate String Opcional Fecha del pedido en formato yyyy-MM-dd.
 AdditionalInformation Objeto Requerido Referencia adicional del documento (recibo de mercancía, cheque, remisión, etc.).
 AdditionalInformation.referenceIdentification String Requerido Número de la referencia adicional.
 AdditionalInformation.type String Requerido Tipo de referencia. Valores: AAE, CK, ACE, ATZ, AWR, ON, DQ o IV.
 DeliveryNote Objeto Requerido Datos del contrarrecibo.
 DeliveryNote.referenceIdentification String Requerido Folio de contrarrecibo.
 DeliveryNote.referenceDate String Opcional Fecha del contrarrecibo en formato yyyy-MM-dd.
 buyer Objeto Requerido Datos del comprador.
 buyer.gln String Requerido GLN del comprador.
 buyer.text String Opcional Texto adicional del comprador.
 seller Objeto Requerido Datos del vendedor.
 seller.gln String Requerido GLN del vendedor.
 seller.alternatePartyIdentification String Requerido Número interno del proveedor.
 seller.type String Requerido Tipo de identificación. Valores: SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY o IEPS_REFERENCE.

Nota

Los valores de catálogo se envían como string (la clave del catálogo), no como objeto.

Construcción de la URL

Importante

El metodo para agregar una addenda es de tipo POST

Host: https://cfdi.bindus3.com (producción) / https://pruebas-cfdi.bindus3.com (sandbox)

Endpoint: /v3/addenda/liverpool/store

Ejemplo: https://cfdi.bindus3.com/v3/addenda/liverpool/store

Tip

Para probar el ejemplo de código, necesitas cambiar "Tu API key" por la clave de API de tu cuenta, y "Tu Secret key" por la clave secreta correspondiente.

Ejemplo de addenda de Liverpool
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => '{ HOST }/v3/addenda/liverpool/store',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "invoice": "1592adb9-e45a-4464-8878-8c359a9a7d26",
    "detallista": {
        "documentStatus": "ORIGINAL",
        "entityType": "INVOICE",
        "specialInstruction": {
            "code": "ZZZ",
            "text": "MIL CIENTO SESENTA PESOS 00/100 M.N."
        },
        "orderIdentification": {
            "referenceIdentification": "1234567890",
            "type": "ON",
            "referenceDate": "2026-11-20"
        },
        "AdditionalInformation": {
            "referenceIdentification": "REM-0001",
            "type": "ATZ"
        },
        "DeliveryNote": {
            "referenceIdentification": "CR-12345",
            "referenceDate": "2026-11-21"
        },
        "buyer": {
            "gln": "7504000107903",
            "text": ""
        },
        "seller": {
            "gln": "7501234567890",
            "alternatePartyIdentification": "123456",
            "type": "SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY"
        }
    }
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'F-PLUGIN: 9d4095c8f7ed5785cb14c0e3b033eeb8252416ed',
    'F-Api-Key: Tu API key',
    'F-Secret-Key: Tu Secret key'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

var request = require('request');
var options = {
  'method': 'POST',
  'url': '{ HOST }/v3/addenda/liverpool/store',
  'headers': {
    'Content-Type': 'application/json',
    'F-PLUGIN': '9d4095c8f7ed5785cb14c0e3b033eeb8252416ed',
    'F-Api-Key': 'Tu API key',
    'F-Secret-Key': 'Tu Secret key'
  },
  body: JSON.stringify({
    "invoice": "1592adb9-e45a-4464-8878-8c359a9a7d26",
    "detallista": {
      "documentStatus": "ORIGINAL",
      "entityType": "INVOICE",
      "specialInstruction": {
        "code": "ZZZ",
        "text": "MIL CIENTO SESENTA PESOS 00/100 M.N."
      },
      "orderIdentification": {
        "referenceIdentification": "1234567890",
        "type": "ON",
        "referenceDate": "2026-11-20"
      },
      "AdditionalInformation": {
        "referenceIdentification": "REM-0001",
        "type": "ATZ"
      },
      "DeliveryNote": {
        "referenceIdentification": "CR-12345",
        "referenceDate": "2026-11-21"
      },
      "buyer": {
        "gln": "7504000107903",
        "text": ""
      },
      "seller": {
        "gln": "7501234567890",
        "alternatePartyIdentification": "123456",
        "type": "SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY"
      }
    }
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

import requests
import json

url = "{ HOST }/v3/addenda/liverpool/store"

payload = json.dumps({
  "invoice": "1592adb9-e45a-4464-8878-8c359a9a7d26",
  "detallista": {
    "documentStatus": "ORIGINAL",
    "entityType": "INVOICE",
    "specialInstruction": {
      "code": "ZZZ",
      "text": "MIL CIENTO SESENTA PESOS 00/100 M.N."
    },
    "orderIdentification": {
      "referenceIdentification": "1234567890",
      "type": "ON",
      "referenceDate": "2026-11-20"
    },
    "AdditionalInformation": {
      "referenceIdentification": "REM-0001",
      "type": "ATZ"
    },
    "DeliveryNote": {
      "referenceIdentification": "CR-12345",
      "referenceDate": "2026-11-21"
    },
    "buyer": {
      "gln": "7504000107903",
      "text": ""
    },
    "seller": {
      "gln": "7501234567890",
      "alternatePartyIdentification": "123456",
      "type": "SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY"
    }
  }
})
headers = {
  'Content-Type': 'application/json',
  'F-PLUGIN': '9d4095c8f7ed5785cb14c0e3b033eeb8252416ed',
  'F-Api-Key': 'Tu API key',
  'F-Secret-Key': 'Tu Secret key'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

require "uri"
require "json"
require "net/http"

url = URI("{ HOST }/v3/addenda/liverpool/store")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["F-PLUGIN"] = "9d4095c8f7ed5785cb14c0e3b033eeb8252416ed"
request["F-Api-Key"] = "Tu API key"
request["F-Secret-Key"] = "Tu Secret key"
request.body = JSON.dump({
  "invoice": "1592adb9-e45a-4464-8878-8c359a9a7d26",
  "detallista": {
    "documentStatus": "ORIGINAL",
    "entityType": "INVOICE",
    "specialInstruction": {
      "code": "ZZZ",
      "text": "MIL CIENTO SESENTA PESOS 00/100 M.N."
    },
    "orderIdentification": {
      "referenceIdentification": "1234567890",
      "type": "ON",
      "referenceDate": "2026-11-20"
    },
    "AdditionalInformation": {
      "referenceIdentification": "REM-0001",
      "type": "ATZ"
    },
    "DeliveryNote": {
      "referenceIdentification": "CR-12345",
      "referenceDate": "2026-11-21"
    },
    "buyer": {
      "gln": "7504000107903",
      "text": ""
    },
    "seller": {
      "gln": "7501234567890",
      "alternatePartyIdentification": "123456",
      "type": "SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY"
    }
  }
})

response = http.request(request)
puts response.read_body

Respuesta

Ejemplo de respuesta exitosa.
{
    "response": "success",
    "message": "Addenda agregada con éxito"
}

Ejemplo de respuesta cuando la factura ya cuenta con una addenda

Importante

Los CFDI solo pueden contar con una addenda añadida, por lo que este mensaje es importante para conocer si estamos intentando duplicar una addenda o ya se asigno alguna a nuestro CFDI

{
    "response": "failed",
    "message": "Ya cuenta con addenda"
}

Ejemplo de respuesta erronea

Aviso

El mensaje de error puede variar dependiendo el nodo en el que haya información incorrecta. Te sugerimos leer cuidadosamente el mensaje del error ya que en el mismo se indica donde es necesario corregir la información.

{
    "response": "failed",
    "message": "CFDI invalido"
}

Prev
Lesaffre
Next
Mabe