Discussions
API Rates Call - Confusion about actual weight and dimensions when multiple items are in a predefined 1-item box
Is this the correct way to compute the weight and dimensions when multiple items are in a predefined 1-item box:
{
originaddress: {
line_1: "13734 Bermuda Cay Ct",
state: "FL",
city: "Jacksonville",
postal_code: "32225",
country_alpha2: "US",
company_name: "Quick Shaver LLC",
contact_name: "Attn Wes Krosnick",
contact_phone: "9043801159",
contact_email: "[email protected]",
},
destination_address: {
line_1: data.freshdesk_webhook.ticket_cf_shipping_address,
line_2: data.freshdesk_webhook.ticket_cf_shipping_address_2,
state: data.freshdesk_webhook.ticket_cf_shipping_state,
city: data.freshdesk_webhook.ticket_cf_shipping_city,
postal_code: data.freshdesk_webhook.ticket_cf_shipping_zip,
contact_name: data.freshdesk_webhook.ticket_contact_name,
contact_phone: data.freshdesk_webhook.ticket_contact_phone,
country_alpha2: "US",
},
incoterms: "DDU",
insurance: { is_insured: false },
courier_selection: {
allow_courier_fallback: false,
apply_shipping_rules: true,
selected_courier_id: courier_id,
},
shipping_settings: {
units: {
weight: "lb",
dimension: "in",
},
output_currency: "USD",
},
parcels: [
{
box: {
slug: "bubble-shipping-bag",
length: 17,
width: 9,
height: 4 qnty1,
},
items: [
{
quantity: qnty1,
dimensions: {
length: 11,
width: 9,
height: 4,
},
description:
"Electric Shaver and Trimming System with Travel Case",
category: "health_beauty",
sku: "QS-3300",
hs_code: "8510.10.00",
origin_country_alpha2: "US",
declared_currency: "USD",
declared_customs_value: 59.95,
},
],
totalactual_weight: 2 qnty1,
},
{
box: {
slug: "accessory-shipping-bag",
length: 4,
width: 4,
height: 2 qnty2,
},
items: [
{
quantity: qnty2,
dimensions: {
length: 4,
width: 4,
height: 2,
},
description: "Shaver Replacement Heads",
category: "Accessory (no-battery)",
sku: "QS-3301",
hs_code: "8510.10.00",
origin_country_alpha2: "US",
declared_currency: "USD",
declared_customs_value: 4.95,
},
],
total_actual_weight: 0.2 qnty2,
},
],
platform_name: "Shopify",
platform_order_number: orderNumber,
selected_courier_id: courier_id,
}