added
ZPL format added
almost 4 years ago by Rigo B Castro
Ahora puede utilizar nuestro formato ZPL para sus etiquetas.
Para eso, puede configurar el formato ZPL en la consulta como el siguiente ejemplo:
{
"query": "mutation createDeliveryWithLabel($labelType: DeliveryLabelFormat, $input: CreateDeliveryInput!){createDeliveryWithLabel(input: $inputDelivery){id trackingNumber label referenceId}}",
"variables": {
"labelType": "ZPL",
"input": {
"type": "ON_DEMAND",
"referenceId": "your-reference-id",
"storeId": "your-store-id",
"dropoff": {
"contact": {
"name": "John Smitth",
"phone": "5511223344",
"email":"[email protected]"
},
"location": {
"address":"P.za de la Constitución S/N, Centro Histórico de la Cdad. de México, Centro, Cuauhtémoc"
"zipCode": "06010",
"latitude": 19.4324451,
"longitude": -99.131193
}
},
"packages": [
{
"referenceId":"1773609103",
"dimensions": {
"height": 1.4,
"width": 5.5,
"length": 4.2,
"weight": 0.34
},
"items": [
{
"referenceId":"your-package-reference-id",
"description": "your-package-description",
"quantity": 1
}
]
}
]
}
}
}
The response will be:
{
"data": {
"createDeliveryWithLabel": {
"id": "100000",
"trackingNumber": "005527156P002983274",
"trackingUrl": "https://tracking.ivoy.mx/guide/005527156P002983274",
"referenceId": "your-reference-id",
"label": "^XA\n\n ^FX logo\n ^FO35,40^GFA,1491,1491,21,0F,3FC,7FE,:IF01FFCL0FFE,IF01FFCK01FFC,IF01FFEK01FFC,IF00FFEK01FFC,7FE00FFEK03FF8,7FC00IFK03FF8,3F8007FFK03FF8,06I07FFK07FF,K03FF8J07FF,:K03FF8J0FFE,K01FFCJ0FFE,:IF001FFEI01FFC,IFI0FFEI01FFCI03FFCI01DFK0FF,IFI0FFEI01FF8001JF8001FF8I03FF8,IFI0IFI03FF8007JFC001FFCI03FF,IFI07FFI03FF800LF001FFCI03FF,IFI07FFI03FF003LF800FFCI07FF,IFI07FF8007FF007LFC00FFEI07FE,IFI03FF8007FF007LFE007FEI07FE,IFI03FF8007FE00NF007FEI0FFC,IFI01FFC00FFE01IF01IF007FFI0FFC,IFI01FFC00FFE01FFE007FF803FFI0FFC,IFI01FFC00FFC03FFC003FF803FF001FF8,IFJ0FFE01FFC03FF8001FFC03FF801FF8,IFJ0FFE01FF803FFJ0FFC01FF801FF8,IFJ0FFE01FF807FFJ0FFE01FF803FF,IFJ07FF03FF807FEJ0FFE00FFC03FF,IFJ07FF03FF007FEJ07FE00FFC03FF,IFJ07FF03FF007FEJ07FE00FFC07FE,IFJ03FF87FF007FEJ07FE007FE07FE,IFJ03FF87FE00FFEJ07FE007FE07FC,IFJ03FF87FE00FFEJ07FE003FE0FFC,IFJ01FFCFFE007FEJ07FE003FF0FFC,IFJ01FFCFFC007FEJ07FE003FF0FF8,IFK0FFCFFC007FEJ07FE001FF1FF8,IFK0KFC007FEJ07FE001FF9FF8,IFK0KF8007FEJ0FFE001FF9FF,IFK07JF8007FFJ0FFCI0FFBFF,IFK07JFI03FFI01FFCI0JFE,IFK07JFI03FF8001FFCI07IFE,IFK03JFI03FFC003FF8I07IFE001E,IFK03IFEI01FFE007FF8I07IFC003F,IFK03IFEI01IF83IFJ03IFC003F,IFK01IFEJ0MFEJ03IFC003F,IFK01IFCJ07LFEJ03IF8003F,IFK01IFCJ03LFCJ01IF800DE,IFL0IFCJ01LF8J01IF803F8,IFL0IF8K0KFEL0IF00FF80F8,IFL07FF8K03JFCL0IF01FFC0F8,IFL07FF8L0JFM0FFE07CFE0F8,Y01FF8M07FE1E0FFBF8,gP0FFE3C0FBFF8,gP0FFC340F0FF8,gO01FFC001F00F8,:gO03FF8003E00FC,gO07FF8003F8,gM07JFI03FE,gM07JFI07BF,gM07IFE038F0791,gM07IFE07EE00F04,gM07IFC0C7C006,gM07IF80018,gM07IF,gM03FF8,^FS\n \n \n ^FX fecha\n ^FO35,120\n ^CF0,20\n ^FX variable de fecha\n ^FD5 / 5 / 2021^FS\n \n \n ^FX cuadrado del almacen de entrega\n ^FO600,50\n ^GB170,100,50,B,0^FS\n ^FO630,60\n ^CF0,100,60\n ^FR\n ^FDMEX^FS\n \n \n \n \n \n ^FX Almacen de recoleccion\n ^FO600,170\n ^GB170,100,3,B,1^FS\n ^FO630,180\n ^CF0,100,60\n ^FDMEX^FS\n \n \n ^FX Remitente\n ^FO35,170\n ^CF0,25\n ^FB550,15\n ^FDADIDAS SERVICIO AL CLIENTE - ADIDAS MEXICO\\&\\&N/A NULL, N/A, CIUDAD DE MEXICO, CIUDAD DE MEXICO, 54948\\&\\&TEL: 01800-849-9889^FS\n \n ^FX separador superior del barcode\n ^FO35,370\n ^GB500,1\n ^FS\n ^FX barcode\n ^FO35,380\n ^BY2,2\n ^BCN,70,N\n ^FD 005527156P002983274^FS\n ^FX separador inferior del barcode\n ^FO35,460\n ^GB500,1\n ^FS\n \n ^FX destinatario\n ^FO35,490\n ^CF0,25\n ^FB500,20\n ^FDCLAUDIO KEREKES\\&\\&BORIS GODUNOV 17 LA NOPALERA 13220\\&\\&TEL: +7777777777^FS\n ^FX separador guia\n ^FO35,740\n ^GB500,2^FS\n ^FX guias\n ^FO35,760\n ^CFA,27\n ^FB500,6\n ^FDGUIA: 005527156P002983274\\&REF: AMX06914091-1^FS\n \n ^FX instrucciones\n ^FO35,830\n ^GB500,140,1,B,0\n ^FS\n ^FO45,840\n ^CFA,20\n ^FB480,10\n ^FDInstrucciones de entrega:\\&NULL^FS\n ^FX qrcode trackingNumber\n ^FO600,300\n ^BQN,2,6\n ^FDHM,A 005527156P002983274^FS\n \n ^FX Tipo de negocio\n ^FO600,520\n ^GB170,80,40,B,0^FS\n ^FO650,530\n ^CF0,80,40\n ^FR\n ^FDSMD^FS\n \n ^FX qrcode referenceId\n ^FO600,640\n ^BQN,2,6\n ^FDHM,A AMX06914091-1^FS\n ^FX Consecutivo\n ^FO600,860\n ^GB170,80,2,B,0^FS\n ^FO650,880\n ^CF0,40\n ^FR\n ^FD1/1^FS\n \n ^FX 1era visita\n ^FO35,1000^GB375,90,1,B,0^FS\n ^FO45,1010^CFA,20,10^FD1ra visita^FS\n ^FO410,1000^GB90,90,1,B,0^FS\n ^FO440,1025^CF0,50,30^FDPM^FS\n ^FO500,1000^GB90,90,1,B,0^FS\n ^FO530,1025^CF0,50,30^FDCA^FS\n ^FO590,1000^GB90,90,1,B,0^FS\n ^FO610,1025^CF0,50,30^FDCNR^FS\n ^FO680,1000^GB90,90,1,B,0^FS\n ^FO700,1025^CF0,50,30^FDREF^FS\n ^FX 2da visita\n ^FO35,1090^GB375,90,1,B,0^FS\n ^FO45,1100^CFA,20,10^FD2da visita^FS\n ^FO410,1090^GB90,90,1,B,0^FS\n ^FO440,1115^CF0,50,30^FDPM^FS\n ^FO500,1090^GB90,90,1,B,0^FS\n ^FO530,1115^CF0,50,30^FDCA^FS\n ^FO590,1090^GB90,90,1,B,0^FS\n ^FO610,1115^CF0,50,30^FDCNR^FS\n ^FO680,1090^GB90,90,1,B,0^FS\n ^FO700,1115^CF0,50,30^FDREF^FS\n \n ^XZ",
"packages": [
{
"id": "100000",
"referenceId": "your-package-reference-id",
"trackingNumber": "005527156P002983274"
}
]
}
}
}