![]() |
Documentación de los servicios web (Web Services) para el proceso de MarketPlace de:
RIF J-00102174-4
|
ZOOM ofrece servicios web en formato JSON con el motivo de extender la funcionalidad a sus clientes.
{ "codrespuesta": "COD_001", "mensaje": "RECORD INSERTED SUCCESSFULLY", "entidadRespuesta": { "id": 258, "records": 1 } }Si el registro se modifica/actualiza (siempre y cuando coincidan: reference, shipmentReference, customerCode y no se encuentre procesado) retorna el siguiente JSON:
{ "codrespuesta": "COD_002", "mensaje": "RECORD UPDATED SUCCESFULLY", "entidadRespuesta": { "id": 5170, "records": 1 } }Posibles errores que pueden ocurrir al intentar prealertar el envío (formato JSON):
{ "codrespuesta": "CODE_002", "mensaje": "THE PARAMETERS ENTERED ARE INCORRECT", "entidadRespuesta": [ "The reference field is required.", "The shipment reference field is required.", "The customer number must be an integer.", "The remitter name field is required.", "The remitter city field is required.", "The remitter country origin field is required.", "The remitter acronym country field is required.", "The destination address field is required.", "The destination name field is required.", "The destination phone field is required.", "The destination city field is required.", "The destination acronym country field is required.", "The destination zipcode field is required.", "The destination suburbs field is required.", "The mailbox number field is required.", "The pieces field is required.", "The weight field is required.", "The width field is required.", "The item quantity field is required.", "The seller name field is required.", "The seller acronym country field is required.", "The passwd field is required." ] }
{ "codrespuesta": "CODE_002", "mensaje": "THE PARAMETERS ENTERED ARE INCORRECT", "entidadRespuesta": [ "destinationZipcode and destinationSuburbs have incorrect values" ] }
{ "codrespuesta": "CODE_002", "mensaje": "THE PARAMETERS ENTERED ARE INCORRECT", "entidadRespuesta": [ "The selected destination acronym country is invalid." ] }
{ "codrespuesta": "CODE_005", "mensaje": "ERROR. THIS RECORD COULD NOT BE UPDATED", "entidadRespuesta": { "id": 0, "records": 0 } }
{ "codrespuesta": "COD_000", "mensaje": "QUERY EXECUTED SUCCESFULLY", "entidadRespuesta": [ { "id": 162, "reference": "O59980001", "shipmentReference": "SG59911001", "customerNumber": 1410, "sellerName": "WILLIAM TERRENCE", "sellerPhone": "13053210012", "sellerAddress": "MIAMI - US", "sellerCity": "MIAMI", "sellerCountryOrigin": "ESTADOS UNIDOS", "sellerAcronymCountry": "US", "remitterName": "E-BOX LOGISTICS", "remitterPhone": "+1-786-272-7070", "remitterAddress": "2250 NW 114TH AVE, DORAL, F", "remitterCity": "MIAMI", "remitterCountryOrigin": "ESTADOS UNIDOS", "remitterAcronymCountry": "US", "remitterZipcode": "33192", "destinationAddress": "11C MARAVAL ROAD", "destinationCompany": "REDBARREL", "destinationName": "JOHN MORTON", "destinationPhone": "758-728-1234", "destinationCity": "ARIMA", "destinationCountry": "TRINIDAD Y TOBAGO", "destinationAcronymCountry": "TT", "destinationZipcode": "0", "destinationSuburbs": "ARIMA", "destinationTaxId": "0", "destinationEmail": "cian.odowd.test@gmail.com", "mailboxNumber": "TTO999111", "pieces": 1, "weight": "1.5", "width": "4", "height": "2", "depth": "3", "content": "OEM ORIGINAL SAMSUNG ECC1DU2BBE MICRO-USB CHARGING DATA CABLE FOR S2 S3 S4 NOTE", "declaredValue": "45", "globalDeclaredValue": "45", "iValue": "0", "insure": "N", "shippingType": "P", "retainWaybill": "F", "generic1": "0", "generic2": "0", "generic3": "0", "htsCode": 510320, "itemQuantity": 1, "processed": true, "createdAt": "2017-07-13 11:56:40", "dateSync": "2017-07-13 11:56:41.84454", "ZOOMWaybill": "1303756932", "DHLWaybill": "3886742554" "lastStatus": { "code": 8, "name": "ENVIADO A LA OFICINA DESTINO", "acronym": "EN" } "consolidateNumber": null, "accountNumberDHL": "959213959", "destinationTypeDocId": null, "destinationDocId": null, "serviceType": "M", "nameFileInvoice": "" } ] }
A continuación se muestra una imagen de cómo consumir el servicio web desde la aplicación Postman: