Allocate import costs to SKU landed cost
ecommerce-profitability_landed-cost-importAllocate shipment freight and insurance by value, weight or volume, compute CIF or FOB customs value, duty and import VAT from caller rates, and return per-unit landed cost. Price $0.04 USDC. POST /api/v1/ecommerce-profitability/landed-cost-import. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "<currency>",
"lines": "<lines>",
"freight": "<freight>",
"insurance": "<insurance>",
"allocation": "<allocation>",
"dutyBasis": "<dutyBasis>",
"importVatRate": "<importVatRate>",
"vatRecoverable": "<vatRecoverable>"
},
"name": "ecommerce-profitability_landed-cost-import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | lines, array. Required. | |
| freight | Yes | unitCost, integer, from 0 to 9007199254740991. Required. | |
| currency | Yes | currency, string, length 3 to 3. Required. | |
| dutyBasis | Yes | dutyBasis, string, one of CIF, FOB. Required. | |
| insurance | Yes | unitCost, integer, from 0 to 9007199254740991. Required. | |
| allocation | Yes | allocation, string, one of value, weight, volume. Required. | |
| importVatRate | Yes | dutyRate, number, from 0 to 1. Required. | |
| vatRecoverable | Yes | vatRecoverable, boolean. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | lines. Array. | |
| totals | No | totals. Object. | |
| sources | No | sources. Array. | |
| currency | No | currency. String. | |
| limitations | No | limitations. Array. |