# ShippingQuote

> What shipping a product to a place costs, by the supplier's freight template.

Canonical page: https://okdata.online/docs/objects/shipping_quote/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `product_id` | string | El producto. |
| `destination` | string | A dónde se envía, según se indica. |
| `unit` | string \| null | What the fee is counted by: kg or piece. |
| `first_units` | number \| null | Cuánto cubre la primera tarifa, en unidades. |
| `first_fee` | number \| null | La primera tarifa, en la moneda indicada. |
| `next_units` | number \| null | Cada paso adicional, en unidades. |
| `next_fee` | number \| null | La tarifa de cada paso adicional. |
| `quantity` | integer \| null | Ítems a los que corresponde la cotización. |
| `weight_kg` | number \| null | Weight the quote is for, in kg, where given. |
| `total_fee` | number \| null | The fee for that quantity or weight; null where the marketplace does not work it out (use the steps above). |
| `currency` | string | Código de moneda ISO 4217. |
| `ext` | object | Datos adicionales propios de la plataforma. Solo se devuelven con view=full. |

## Endpoints that return a ShippingQuote

- [Coste de envío de 1688](https://okdata.online/apis/alibaba_1688/products/shipping/get/) (`alibaba_1688.products.shipping.get`): $0.022 per call

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `product_id`, `destination`, `unit`, `first_units`, `first_fee`, `next_units`, `next_fee`, `quantity`, `weight_kg`, `total_fee`, `currency`
- standard: —
- full: `ext`
