Quote Sales Order Freight
Beta/v1/sales/sales-orders/{id}/actions/quote-freightIdempotent with Idempotency-Key header. Learn more
Re-estimates the freight (shipping) charge for an order using the latest carrier rates.
Computes what the order's freight charge would be from its current ship-to address, carrier, service level, and line items — applying the same freight-exemption, flat-rate, and live carrier-rate logic used when the order is created. The order is not modified: the returned amount is a quote to review, and callers apply it by updating the order's shipping line. Use this to refresh freight after changing the address or line items, or at any time to re-price against current rates.
idstringSales order ID.
objectstringenumValues:sales_order_freight_quoteResource type identifier.
unit_pricecomputed_ratenullableEstimated freight unit price.
objectstringenumValues:computed_rateResource type identifier.
valuestring (decimal)Decimal value of the rate, as a string to preserve precision.
Expressed as the amount of the numerator unit per one denominator unit.
Unit of the rate's numerator (e.g. the currency of a price).
idstringUnit ID.
objectstringenumValues:unitResource type identifier.
namestringDisplay name of the unit (e.g. "Gram", "Kilogram").
abbreviationstringShort abbreviation for the unit (e.g. "g", "kg").
typestringenumValues:currencyquantitytimeThe dimension this unit measures, such as mass, volume, or currency.
A unit can only be converted to another unit of the same dimension. The quantity dimension is for discrete countable items rather than a physical measure.
ratio_numeratorstring (decimal)Numerator of the ratio that converts a quantity in this unit into the dimension's base unit.
A quantity is converted with value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator), so a kilogram in a gram-based dimension has a numerator of 1000 and a denominator of 1.
ratio_denominatorstring (decimal)Denominator of the ratio that converts a quantity in this unit into the dimension's base unit.
Cannot be zero.
offset_numeratorstring (decimal)Numerator of the conversion offset, applied after the ratio for scales that do not share a zero point, such as temperature.
Zero for units that convert by ratio alone.
offset_denominatorstring (decimal)Denominator of the conversion offset applied after the ratio.
Never zero; a unit with no offset carries a numerator of 0 over a denominator of 1.
is_base_unitbooleanWhether this is the base unit for its dimension.
Every other unit's conversion ratio is expressed relative to the base unit. Base units are platform-defined; units created through the API are never base units.
ownerownernullableOwner of this resource.
objectstringenumValues:ownerResource type identifier.
typestringenumValues:systemaccountWhere this resource came from.
system: a platform-provided default shared across all accounts; not editable.account: created and owned by a specific account; theaccountfield identifies which.
accountaccountnullableThe account that owns this resource.
Present only when type is account; system-owned resources have no owning account.
idstringAccount ID.
objectstringenumValues:accountResource type identifier.
namestringThe account's display name.
The address billed by default on orders for this account.
idstringAddress ID.
objectstringenumValues:addressResource type identifier.
namestringDisplay name of the address.
phonestringnullablePhone number associated with the address.
emailstringnullableEmail address associated with the address.
typestringenumValues:standarddrop_shipHow the address is used.
standard: a normal shipping or billing address.drop_ship: an address an order is shipped to directly, typically a third party or end customer rather than the account itself.
receive_calendar_idstringnullableThe operating calendar naming the days this dock accepts freight.
The most specific link in the receiving chain: set it when one of a customer's sites keeps different days from the rest. Null falls through to the customer, then their group, then the account default.
geolocationgeolocationnullableStreet-level location details for the address.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
The address shipped to by default on orders for this account.
idstringAddress ID.
objectstringenumValues:addressResource type identifier.
namestringDisplay name of the address.
phonestringnullablePhone number associated with the address.
emailstringnullableEmail address associated with the address.
typestringenumValues:standarddrop_shipHow the address is used.
standard: a normal shipping or billing address.drop_ship: an address an order is shipped to directly, typically a third party or end customer rather than the account itself.
receive_calendar_idstringnullableThe operating calendar naming the days this dock accepts freight.
The most specific link in the receiving chain: set it when one of a customer's sites keeps different days from the rest. Null falls through to the customer, then their group, then the account default.
geolocationgeolocationnullableStreet-level location details for the address.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
brandingaccount_brandingnullableCustomer-facing branding for the account, such as the logo, support contacts, and social links.
idstringBranding ID.
objectstringenumValues:account_brandingResource type identifier.
support_emailstringnullableThe email address customers are directed to for support.
phone_numberstringnullableThe account's public contact phone number.
logo_urlstringnullableStored location of the account's logo image.
Logos uploaded through the API are stored as an object key rather than a fetchable link, so use the Get Account Logo URL endpoint to obtain a short-lived download URL.
favicon_urlstringnullableStored location of the account's customer-portal favicon.
Favicons uploaded through the API are stored as an object key rather than a fetchable link, so use the Get Account Favicon URL endpoint to obtain a short-lived download URL.
facebook_handlestringnullableFacebook handle.
instagram_handlestringnullableInstagram handle.
linkedin_handlestringnullableLinkedIn handle.
twitter_handlestringnullableTwitter handle.
website_urlstringnullableThe account's public website.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
portalaccount_portalnullableThe account's customer portal settings, including the portal URL slug.
idstringPortal ID.
objectstringenumValues:account_portalResource type identifier.
slugstringURL slug that identifies the account's customer portal.
Unique across all accounts.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)When this unit was created.
updated_atstring (date-time)When this unit was last updated.
Unit of the rate's denominator (the per-unit basis, e.g. pairs for a price per pair).
idstringUnit ID.
objectstringenumValues:unitResource type identifier.
namestringDisplay name of the unit (e.g. "Gram", "Kilogram").
abbreviationstringShort abbreviation for the unit (e.g. "g", "kg").
typestringenumValues:currencyquantitytimeThe dimension this unit measures, such as mass, volume, or currency.
A unit can only be converted to another unit of the same dimension. The quantity dimension is for discrete countable items rather than a physical measure.
ratio_numeratorstring (decimal)Numerator of the ratio that converts a quantity in this unit into the dimension's base unit.
A quantity is converted with value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator), so a kilogram in a gram-based dimension has a numerator of 1000 and a denominator of 1.
ratio_denominatorstring (decimal)Denominator of the ratio that converts a quantity in this unit into the dimension's base unit.
Cannot be zero.
offset_numeratorstring (decimal)Numerator of the conversion offset, applied after the ratio for scales that do not share a zero point, such as temperature.
Zero for units that convert by ratio alone.
offset_denominatorstring (decimal)Denominator of the conversion offset applied after the ratio.
Never zero; a unit with no offset carries a numerator of 0 over a denominator of 1.
is_base_unitbooleanWhether this is the base unit for its dimension.
Every other unit's conversion ratio is expressed relative to the base unit. Base units are platform-defined; units created through the API are never base units.
ownerownernullableOwner of this resource.
objectstringenumValues:ownerResource type identifier.
typestringenumValues:systemaccountWhere this resource came from.
system: a platform-provided default shared across all accounts; not editable.account: created and owned by a specific account; theaccountfield identifies which.
accountaccountnullableThe account that owns this resource.
Present only when type is account; system-owned resources have no owning account.
idstringAccount ID.
objectstringenumValues:accountResource type identifier.
namestringThe account's display name.
The address billed by default on orders for this account.
idstringAddress ID.
objectstringenumValues:addressResource type identifier.
namestringDisplay name of the address.
phonestringnullablePhone number associated with the address.
emailstringnullableEmail address associated with the address.
typestringenumValues:standarddrop_shipHow the address is used.
standard: a normal shipping or billing address.drop_ship: an address an order is shipped to directly, typically a third party or end customer rather than the account itself.
receive_calendar_idstringnullableThe operating calendar naming the days this dock accepts freight.
The most specific link in the receiving chain: set it when one of a customer's sites keeps different days from the rest. Null falls through to the customer, then their group, then the account default.
geolocationgeolocationnullableStreet-level location details for the address.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
The address shipped to by default on orders for this account.
idstringAddress ID.
objectstringenumValues:addressResource type identifier.
namestringDisplay name of the address.
phonestringnullablePhone number associated with the address.
emailstringnullableEmail address associated with the address.
typestringenumValues:standarddrop_shipHow the address is used.
standard: a normal shipping or billing address.drop_ship: an address an order is shipped to directly, typically a third party or end customer rather than the account itself.
receive_calendar_idstringnullableThe operating calendar naming the days this dock accepts freight.
The most specific link in the receiving chain: set it when one of a customer's sites keeps different days from the rest. Null falls through to the customer, then their group, then the account default.
geolocationgeolocationnullableStreet-level location details for the address.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
brandingaccount_brandingnullableCustomer-facing branding for the account, such as the logo, support contacts, and social links.
idstringBranding ID.
objectstringenumValues:account_brandingResource type identifier.
support_emailstringnullableThe email address customers are directed to for support.
phone_numberstringnullableThe account's public contact phone number.
logo_urlstringnullableStored location of the account's logo image.
Logos uploaded through the API are stored as an object key rather than a fetchable link, so use the Get Account Logo URL endpoint to obtain a short-lived download URL.
favicon_urlstringnullableStored location of the account's customer-portal favicon.
Favicons uploaded through the API are stored as an object key rather than a fetchable link, so use the Get Account Favicon URL endpoint to obtain a short-lived download URL.
facebook_handlestringnullableFacebook handle.
instagram_handlestringnullableInstagram handle.
linkedin_handlestringnullableLinkedIn handle.
twitter_handlestringnullableTwitter handle.
website_urlstringnullableThe account's public website.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
portalaccount_portalnullableThe account's customer portal settings, including the portal URL slug.
idstringPortal ID.
objectstringenumValues:account_portalResource type identifier.
slugstringURL slug that identifies the account's customer portal.
Unique across all accounts.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)When this unit was created.
updated_atstring (date-time)When this unit was last updated.
display_valuestringHuman-readable formatted value (e.g. "$25.50 / pr").
Responses
Successful response for Quote Sales Order Freight