Versión de API
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 desarrolladoresConsultar tarifas
Esta referencia está disponible en inglés y chino simplificado. A continuación se muestra el contenido en inglés.
POST
/v1/shipping/ratesPermisos: labels.read or labels.buy
Campos de solicitud
from, to | Address 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. |
|---|---|
parcels | Package array. Each item contains weight and, for your own packaging, length, width and height. carrierPackageType selects supported carrier packaging. |
weightUnit, dimensionUnit | Units for package weights and dimensions. Send these explicitly, for example lb and in. |
requestedServiceType, customs | Optional 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.
AnteriorAutenticación
SiguienteComprar una etiqueta