Create Inventory Integration
DESCRIPTION
Web Service for inserting barcode and invoice information.
Request
Method: POST
Content-Type: application/json
URL:
| Test Environment: | https://training.logiztik.com:5005/logCloudWSPre/api/v2/InventarioTemporalCliente/Insertar |
| Production Environment: | https://cloud.logiztikalliance.com:5005/logCloudWS/api/v2/InventarioTemporalCliente/Insertar |
INPUT PARAMETERS
| Name | Type | Required | Description |
| AuthenticationToken | string(50) (Required) | Yes | Alliance cloud security token (Api Key). |
Body
| Name | Type | Required | Description |
| awb | string(16) | Yes | Shipment number. |
| fechaDespacho | string(10)(yyyy-MM-dd) | No | Shipment date. |
| origen | string(3) | Yes | Origin airport IATA code. |
| destino | string(3) | Yes | Destination airport IATA code. |
| tipoEnvio | string(16) | Yes | Send always OPERACION. |
| hawb | string(32) | Yes | HAWB number. This number has to be correct in order for the integration to work. To make sure that the HAWB is valid you can use our “House Validation” API. |
| codigoClienteExportador | string(16) | No | Distribution customer code. |
| nombreClienteExportador | string(256) | No | Distribution customer name. |
| codigoCultivo | string(16) | Yes | Exporter code. |
| nombreCultivo | string(256) | No | Exporter name. |
| packing | string(10) | Yes | Number of pieces in the HAWB. |
| numeroDae | string(32) | No | DAE number. |
| codigoCliente | string(16) | Yes | Ship-to (final client) code. |
| nombreCliente | string(256) | No | Ship-to name. |
| codigoPieza | string(32) | Yes | Barcode number, has to be a unique number per box, maximum 11 digits long. Logiztik Alliance Group provides a 2-letter prefix that should be used together with an alphanumeric sequential that can be defined by the client. |
| codigoProducto | string(16) | Yes | Product category code (ex. ROS for roses). |
| descripcionProducto | string(256) | No | Name of the product category (ex. ROSES). |
| descripcionVariedad | string(127) | Yes | Product variety, can be used whatever text of max. 127 digits to explain what exact product is in the box. |
| empaque | string(16) | Yes | Box type (ex. FB, HB, QB…). |
| factura | string(60) | No | Invoice number. |
| unidades | int | No | Number of units per piece. |
| piezas | int | No | Send always 1. |
| largo | decimal(9,3) | No | Length in cm. |
| alto | decimal(9,3) | No | Height in cm. |
| ancho | decimal(9,3) | No | Width in cm. |
| kilos | decimal(9,3) | No | Weight in kg. |
| tallos_ramo | int | No | Number of units per bunch. |
| ramos_caja | int | No | Number of bunches per box. |
| precio | decimal(9,3) | No | Price per unit. |
| valortotal | decimal(9,3) | No | Price of the piece (price per unit * number of units per piece). |
| precio_ramo | decimal(9,3) | No | Price of the bunch. |
| po | string(32) | No | PO number. |
| caja_transportador | string(16) | No | Carrier code in destination. |
| caja_fecha_transportador | string(10)(yyyy-MM-dd) | No | Shipping date in destination. |
| tipo | string(16) | No | Bouquets |
| codigoProducto | string(16) | No | Product category code (ex. ROS for roses). |
| descripcionProducto | string(256) | No | Name of the product category (ex. ROSES). |
| descripcionVariedad | string(127) | No | Product variety, can be used whatever text of max. 127 digits to explain what exact product is in the box. |
| tallos_ramo | int | No | Number of units per bunch. |
| precio | decimal(9,3) | No | Price per unit. |
EXAMPLE
{
"ReservasExportadores": {
"masterAwb": [
{
"awb": "145-0755 6662",
"fechaDespacho": "2020-02-20",
"origen": "UIO",
"destino": "MIA",
"tipoEnvio": "OPERACION",
"House": [
{
"hawb": "LA0021703629",
"codigoClienteExportador": "",
"nombreClienteExportador": "",
"codigoCultivo": "FL-657",
"nombreCultivo": "Sande Ecuador Cía. Ltda.",
"packing": "6",
"box": [
{
"numeroDae": "05520204000073316",
"codigoCliente": "",
"nombreCliente": "EC FLOWERS MORE",
"codigoPieza": "SU4638429",
"codigoProducto": "ORL",
"descripcionProducto": "ORIENTAL LILY",
"descripcionVariedad": "OR CORCOVADO ORANGEYELLOW 2BL 10ST SGOL",
"empaque": "QB",
"factura": "5421111",
"unidades": "60",
"piezas": "1",
"largo": "107",
"alto": "15",
"ancho": "31.2",
"kilos": "6.000",
"tallos_ramo": "10",
"ramos_caja": "6",
"precio": "0",
"valortotal": "22.68",
"precio_ramo": "0",
"po": "FEDEX PO 11788",
"caja_transportador": "",
"caja_fecha_transportador": ""
}
]
}
]
}
]
}
}
Example with Bouquet.{
"ReservasExportadores": {
"masterAwb": [
{
"awb": "145-0755 6662",
"fechaDespacho": "2020-02-20",
"origen": "UIO",
"destino": "MIA",
"tipoEnvio": "OPERACION",
"House": [
{
"hawb": "LA0021703629",
"codigoClienteExportador": "",
"nombreClienteExportador": "",
"codigoCultivo": "FL-657",
"nombreCultivo": "Sande Ecuador Cía. Ltda.",
"packing": "6",
"box": [
{
"numeroDae": "05520204000073316",
"codigoCliente": "",
"nombreCliente": "EC FLOWERS MORE",
"codigoPieza": "SU4638429",
"codigoProducto": "BOU",
"descripcionProducto": "BOUQUET",
"descripcionVariedad": "BOUQUET",
"empaque": "QB",
"factura": "5421111",
"unidades": "60",
"piezas": "1",
"largo": "107",
"alto": "15",
"ancho": "31.2",
"kilos": "6.000",
"tallos_ramo": "10",
"ramos_caja": "6",
"precio": "0",
"valortotal": "22.68",
"precio_ramo": "0",
"po": "11788",
"caja_transportador": "",
"caja_fecha_transportador": "",
"boxDetail": [
{
"tipo": "Bouquets",
"codigoProducto": "ACH",
"descripcionProducto": "ACHILLEA",
"descripcionVariedad": "ACHILLEA",
"tallos": "6",
"precio": "0.259"
},
{
"tipo": "Bouquets",
"codigoProducto": "AGE",
"descripcionProducto": "Aster Sp",
"descripcionVariedad": "Aster Sp",
"tallos": "12",
"precio": "0.259"
}
]
}
]
}
]
}
]
}
}
Response
Output Success
BODY
EXAMPLE
File Uploaded Correctly
Output Error
BODY
| Name | Type | Description |
| ReservasExportadores.masterAwb[0].House[0].box[0].{Variable} | string(256) | In case of an error, we return the error message in this field. |
EXAMPLE
Output Error
BODY
| Name | Type | Description |
| numeroGuia | string(32) | |
| cliente | string(256) | |
| exportador | string(256) | |
| house | string(15) | |
| observaciones | string(256) | |
| general | string(50) | |
| nombreElemento | string(50) | |
| codigoExportador | string(32) | |
| codigoProducto | string(32) | |
| codigoError | string(32) | |
| errorNroGuia | string(32) | |
| estado | string(32) | |
| nombreCarrier | string(256) | |
| codigoCarrier | string(32) | |
| codigoPieza | string(32) | |
| tipoError | string(32) | |
| noExcluirHouse | string(50) |
EXAMPLE
ERRORS MESSAGES
DATE FORMATE ERROR
Data type error (PACKING)
Data type error (UNIDADES)
Data type error (PIEZAS)
Data type error (LARGO)
DATA TYPE ERROR (ALTO)
DATA TYPE ERROR (ANCHO)
DATA TYPE ERROR (KILOS)
DATA TYPE ERROR (TALLOS_RAMO)
DATA TYPE ERROR (RAMOS_CAJA)
DATA TYPE ERROR (PRECIO)
DATA TYPE ERROR (VALORTOTAL)
DATA TYPE ERROR (PRECIO_RAMO)
DATA FORMAT ERROR (VALORTOTAL)
UNAUTHORIZED
401 Unauthorized
GUIDE IN EMBARKED STATE
GUIDE IS ALREADY PROCESSED
{
"nombre":"name"
}
