Referencia del puente Java

Este enlace antiguo sin versión describe los tres endpoints del puente Java con clave API. No es la API JWT de V1 ni la nueva API de recursos V2. Selecciona la versión de tu integración.

API para desarrolladores

Consultar tarifas

Esta referencia está disponible en inglés y chino simplificado. A continuación se muestra el contenido en inglés.

POST
/v1/shipping/rates

Permisos: labels.read or labels.buy

Campos de solicitud

from, toAddress objects: name, company, phone, email, street1, street2, city, state, zip, country and residential. Use a two-letter country code. Required address details depend on the carrier.
parcelsPackage array. Each item contains weight and, for your own packaging, length, width and height. carrierPackageType selects supported carrier packaging.
weightUnit, dimensionUnitUnits for package weights and dimensions. Send these explicitly, for example lb and in.
requestedServiceType, customsOptional service filter and customs details when needed for the shipment.

Respuesta

data.rates contains shippingAccountId, rateId, serviceType, amount and currency. data.alerts contains messages from the rate request. Use the selected rate and the same shipment details when buying.

Responses use { code, message, data }. Check both the HTTP status and response code; provider errors are not successful purchases.