This document describes a Google Checkout feature that enables Google to dynamically request rates from shipping carriers based on the information in your Checkout API request. Google supports the carrier-calculated shipping feature for three carriers: FedEx, UPS and the U.S. Postal Service (USPS). This document explains how the carrier-calculated shipping feature works and provides HTML examples that demonstrate how to use carrier-calculated shipping for several different shipping scenarios. This document also defines the HTML parameters that are used for carrier-calculated shipping and the Google Checkout XML schema changes that support this feature.
This document contains the following sections.
The Understanding Carrier-calculated Shipping section explains how the carrier-calculated shipping feature works. It also explains the information that you must include in your Checkout API request to use the feature as well as additional optional information that can be included in your request.
The Submitting Valid API Requests section explains several cases in which Google will reject a Checkout API request that uses carrier-calculated shipping even though the request is valid according to the Google Checkout XML schema.
The HTML Examples for Carrier-calculated Shipping provides several different HTML examples that show how you would provide carrier-calculated shipping in a Checkout API request.
The HTML Parameter Definitions section defines the HTML hidden input parameters used for carrier-calculated shipping.
Note: This feature is only supported for shipments sent to and from U.S. postal addresses. In addition, any costs associated with carrier-calculated shipping methods must be specified in U.S. dollars (USD).
When you submit a Checkout API request that includes carrier-calculated shipping methods, Google will dynamically determine the shipping rate for each of those methods. You can offer one or more carrier-calculated shipping methods and you can also offer carrier-calculated shipping methods from multiple carriers.
Please note that Google calculates shipping rates based on the assumption that all of the items in an order will be shipped in a single box. Google determines the total package weight by adding the weights of all of the items in the order. Typically, carriers will round the total order weight up to the nearest pound to determine shipping costs.
After calculating the shipping rates, Google will display those rates to buyers on the Place Order page along with the rates for any flat-rate shipping options specified in the request. If the buyer changes the shipping address, Google will use the new address to recalculate the shipping rates for each carrier-calculated shipping method. Note: If you offer flat-rate shipping options as well as carrier-calculated shipping options, the flat-rate shipping options must have different names than the carrier-calculated options that you offer. For example, if you offer the carrier-calculated shipping option for FedEx Standard Overnight shipping, you cannot also have a flat-rate shipping option named Standard Overnight.
If you have implemented the Notification API, Google will send you a new order notification after the customer places the order. If the customer has selected a carrier-calculated shipping option, the notification will include a carrier-calculated shipping adjustment identifying the selected shipping method and the calculated shipping rate.
To use carrier-calculated shipping, you must include the following information in your Checkout API request:
The weight of each item in the order.
A list of carrier-calculated shipping options that are available for the order. For each option, you must provide the following information:
The address from which you will ship the order.
You can also specify the following additional information for carrier-calculated shipping:
A percentage amount that the calculated shipping rate returned from the carrier should be increased or decreased. For example, some merchants may increase shipping rates by a small percentage while others may pass negotiated discounts with shipping carriers on to their customers.
A fixed charge for the order. In this document, the term "fixed charge" refers to a fixed amount that you add to the cost of an order when a particular shipping method is selected.
An indication of how the carrier will pick up the package. Supported carrier pickup types are REGULAR_PICKUP, SPECIAL_PICKUP and DROP_OFF. The pickup type may affect shipping rates.
The dimensions – heightlength and width – of the package that you will ship. Package dimensions may affect shipping rates.
An indication of whether the delivery address is a commercial or a residential location. This value may affect shipping rates.
As discussed earlier, Google calculates shipping rates based on the assumption that all of the items in an order will be shipped in a single box. Google determines the total package weight by adding the weight of each item in the order and then rounding up to the nearest pound. However, if you typically ship items in separate packages rather than a single package, Google's calculated shipping rate may vary significantly from what you actually pay the carrier to ship the order. For example, the costs of shipping one 150 lb. package, three 50 lb. packages, or ten 15 lb. packages may be significantly different even though each scenario has the same total shipment weight.
Shipping carriers typically impose a weight limit of 150 lbs. per package. Items heavier than 150 lbs. are generally subject to overweight charges. If the total weight of an order exceeds 150 lbs. and you would typically ship the order in multiple packages, Google may not be able to accurately calculate shipping costs. Please note that the weight limit for USPS is 70 lbs.
When you post a Checkout API request, Google verifies that your request is valid. If the request is invalid, Google Checkout will reject the shopping cart.
In addition, Google Checkout performs several other checks to verify the integrity of the information in the request. Several of these checks are explained in the Submitting Valid Checkout API Requests section of the Google Checkout HTML API Developer's Guide. If the request does not pass these checks, Google Checkout will reject the shopping cart. However, these checks cannot be enforced through the Google Checkout XML schema. As such, a request that is valid according to the XML schema will still be rejected if it fails to pass any of these tests.
The list below identifies additional checks that Google performs to ensure that requests that use carrier-calculated shipping are valid:
If your API request includes carrier-calculated shipping methods, you must provide the weight of each item in the order.
Carrier-calculated shipping may not be combined with pickup shipping options.
The HTML examples below explain two use cases for implementing carrier-calculated shipping. Please note that the first example includes a complete Checkout API request. However, the remaining examples only include the HTML parameters for the carrier-calculated shipping options. Each shipping method specifies that the order will be shipped from New York City.
In the examples, each HTML parameter name links to a definition for the parameter. Links shown in bold text identify parameters that are defined in this document. Remaining links point to parameter definitions in the HTML Parameter Definitions document.
In this example, the merchant offers two carrier-calculated shipping methods for the order. The one-day shipping method ships with FedEx. The merchant also adds a $6.00 fixed charge for this shipping method but gives a 10 percent discount on the FedEx shipping charges. The two-day method ships with UPS. The merchant adds a $10.00 fixed charge for this shipping method but but gives a 15 percent discount on the UPS shipping charges. The example also specifies the dimensions of the packaging that will be used to ship the order.
As in the previous example, the Checkout API request must also specify the weight of all items in the order.
<input type="hidden" name="item_name_1" value="5 lbs. Dog Food"/> <input type="hidden" name="item_description_1" value="5 lb. bag of nutritious Dog Food"/> <input type="hidden" name="item_price_1" value="35.00"/> <input type="hidden" name="item_currency_1" value="USD"/> <input type="hidden" name="item_quantity_1" value="1"/> <input type="hidden" name="item_merchant_id_1" value="5LBDOGCHOW"/> <input type="hidden" name="shopping-cart.items.item-1.item-weight.value" value="5.5"/> <input type="hidden" name="shopping-cart.items.item-1.item-weight.unit" value="LB"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.price" value="10.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.price.currency" value="USD"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.shipping-company" value="FedEx"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.carrier-pickup" value="REGULAR_PICKUP"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.shipping-type" value="Priority Overnight"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.additional-fixed-charge" value="6.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.additional-fixed-charge.currency" value="USD"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.additional-variable-charge-percent" value="-10"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.price" value="10.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.price.currency" value="USD"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.shipping-company" value="UPS"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.carrier-pickup" value="REGULAR_PICKUP"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.shipping-type" value="Second Day Air"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.additional-fixed-charge" value="10.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.additional-fixed-charge.currency" value="USD"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.additional-variable-charge-percent" value="-15"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.height.unit" value="IN"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.height.value" value="6"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.length.unit" value="IN"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.length.value" value="24"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.width.unit" value="IN"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.width.value" value="15"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.id" value="ABC"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.city" value="New York"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.region" value="NY"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.country-code" value="US"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.postal-code" value="10022"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.tax-tables.default-tax-table.tax-rules.default-tax-rule-1.shipping-taxed" value="true"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.tax-tables.default-tax-table.tax-rules.default-tax-rule-1.rate" value="0.0400"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.tax-tables.default-tax-table.tax-rules.default-tax-rule-1.tax-areas.us-state-area-1.state" value="NY"/>
In this example, the merchant offers two carrier-calculated shipping methods and two flat-rate shipping methods. The example does not specify the dimensions of the packaging that will be used to ship the order. The second flat-rate shipping option is for free shipping.
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.price" value="10.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.price.currency" value="USD"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.shipping-company" value="FedEx"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.carrier-pickup" value="REGULAR_PICKUP"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-1.shipping-type" value="Priority Overnight"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.price" value="10.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.price.currency" value="USD"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.shipping-company" value="UPS"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.carrier-pickup" value="REGULAR_PICKUP"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.shipping-type" value="Second Day Air"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.additional-fixed-charge" value="10.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.additional-fixed-charge.currency" value="USD"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.carrier-calculated-shipping-options.carrier-calculated-shipping-option-2.additional-variable-charge-percent" value="-15"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.id" value="ABC"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.city" value="New York"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.region" value="NY"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.country-code" value="US"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.carrier-calculated-shipping-1.shipping-packages.shipping-package-1.ship-from.postal-code" value="10022"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.name" value="USPS Priority Mail"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.price" value="4.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.price.currency" value="USD"> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-2.name" value="Free Shipping"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-2.price" value="0.00"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-2.price.currency" value="USD">
The following tables define the XML tags used for the carrier-calculated shipping feature.
Certain symbols may be displayed next to some subtags in the definitions below. These symbols, and their meanings, are:
| additional-fixed-charge |
The additional-fixed-charge parameter allows you to specify a fixed charge that will be added to the total cost of an order if the buyer selects the associated shipping option. If you also adjust the calculated shipping cost using the additional-variable-charge-percent parameter, the fixed charge will be added to the adjusted shipping rate. Associated recurring elements The parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the carrier-calculated-shipping-option element, which associates the parameter value with a particular shipping option.
Content format for parameter value Double
Sample use(s)
<input type="hidden" name="checkout-flow-support.
|
| additional-variable-charge-percent |
The additional-variable-charge-percent parameter specifies a percentage amount by which a carrier-calculated shipping rate will be adjusted. The parameter's value may be positive or negative. For example, if the parameter's value is 15, then the carrier's shipping rate will effectively be multiplied by 1.15 to determine the shipping cost presented to the buyer. So, if the carrier shipping rate were $10.00, the adjusted shipping rate would be $11.50 – i.e. $10.00 + ($10.00 X 15%). If the additional-variable-charge-percent parameter value is negative, the calculated shipping rate will be discounted by the specified percentage. Associated recurring elements The parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the carrier-calculated-shipping-option element, which associates the parameter value with a particular shipping option.
Content format for parameter value Double
Sample use(s)
<input type="hidden" name="checkout-flow-support.
|
| carrier-pickup |
The carrier-pickup parameter specifies how the package will be transferred from the merchant to the shipper. Valid values for this parameter are REGULAR_PICKUP, SPECIAL_PICKUP and DROP_OFF. The default value for this parameter is DROP_OFF. Associated recurring elements The parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the carrier-calculated-shipping-option element, which associates the parameter value with a particular shipping option.
Content format for parameter value String
Sample use(s)
<input type="hidden" name="checkout-flow-support.
|
| city |
The city parameter identifies the city associated with an order's billing or shipping address. API commands Content format for parameter value String
Sample use(s) In a carrier-calculated-shipping option in a Checkout API request:
<input type="hidden" name="checkout-flow-support. In a new order notification: [buyer-billing-address | buyer-shipping-address]. In a risk information notification: billing-address. |
| country-code |
As a subtag of postal-area, the country-code parameter specifies a country associated with a tax areashipping restriction or address filter. In all other contexts, the country-code parameter identifies the country code associated with an order's billing address or shipping address. The value of this parameter must be a two-letter ISO 3166 country code. Associated recurring elements When the country-code parameter appears in a carrier-calculated shipping option in a Checkout API request, the shipping-package element must be numbered. In addition, the carrier-calculated-shipping element must be numbered with a value of 1.
API commands Content format for parameter value String
Sample use(s) In a carrier-calculated-shipping option in a Checkout API request:
<input type="hidden" name="checkout-flow-support. In a new order notification: [buyer-billing-address | buyer-shipping-address]. In a risk information notification: billing-address. |
| currency |
| The currency parameter identifies the unit of currency associated with a price, shipping cost or other monetary value. Every monetary value in a Google Checkout API request must specify the currency associated with that value. The value of the currency parameter must be a three-letter ISO 4217 currency code.
Associated recurring elements The currency parameter includes recurring elements any time the monetary value associated with the currency also contains a recurring element. For example, in a Checkout API request, the unit-price parameter identifies the price of an item and contains the recurring item element. As such, the currency associated with the unit-price parameter value will also contain the repeating price parameter.
API commands Checkout, Charge Order, Refund Order, New Order Notification, Charge Amount Notification, Refund Amount Notification, Chargeback Amount Notification, Authorization Amount Notification
Content format for parameter value String
Sample use(s) In a Checkout API request:
item type="hidden" name="shopping-cart.items.item-1.unit-price" value="12.99" item type="hidden" name="shopping-cart.items.item-1.unit-price.currency" value="USD" In a new order notification: order-adjustment.total-tax=1.38&order-adjustment.total-tax.currency=USD In a refund order request: amount=12.99&amount.currency=USD |
| delivery-address-category |
The delivery-address-category parameter indicates whether the shipping method should be applied to a residential or a commercial address. Valid values for this parameter are RESIDENTIAL and COMMERCIAL. Associated recurring elements The parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the shipping-package element, which associates the parameter value with a particular package in an order.
Content format for parameter value String
Sample use(s)
<input type="hidden" name="checkout-flow-support.
|
| id |
When the id parameter is used in a Checkout API request, it specifies a value that uniquely identifies the address from which a package will be shipped for carrier-calculated shipping. When it appears in a new order notification, the id parameter specifies a value that uniquely identifies a Google Checkout promotion. Associated recurring elements In a Checkout API request, the carrier-calculated-shipping element must be numbered with a value of 1 and the shipping-package element must also be numbered. In a new order notification, the promotion element will be numbered so that the promotion ID can be associated with a specific promotion.
API commands Content format for parameter value String
Sample use(s) promotions.
|
| postal-code |
The postal-code parameter identifies the zip code or postal code associated with either a billing address or a shipping address. Associated recurring elements When the postal-code parameter appears in a carrier-calculated shipping option in a Checkout API request, the shipping-package element must be numbered. In addition, the carrier-calculated-shipping element must be numbered with a value of 1.
API commands Content format for parameter value String
Sample use(s) In a carrier-calculated-shipping option in a Checkout API request:
<input type="hidden" name="checkout-flow-support. In a new order notification: [buyer-billing-address | buyer-shipping-address]. In a risk information notification: billing-address. |
| price |
The price parameter contains the cost to ship an order using a particular shipping method. Associated recurring elements The parameter name must contain either the flat-rate-shipping or pickup elements, and that element must be numbered to associate the price with a particular shipping method.
API commands Content format for parameter value Decimal
Sample use(s)
<input type="hidden" name="checkout-flow-support.
<input type="hidden" name="checkout-flow-support. |
| region |
The region parameter identifies the state or province associated with a billing address or shipping address. Associated recurring elements When the region parameter appears in a carrier-calculated shipping option in a Checkout API request, the shipping-package element must be numbered. In addition, the carrier-calculated-shipping element must be numbered with a value of 1.
API commands Content format for parameter value String
Sample use(s) In a carrier-calculated-shipping option in a Checkout API request:
<input type="hidden" name="checkout-flow-support. In a new order notification: [buyer-billing-address | buyer-shipping-address]. In a risk information notification: billing-address. |
| shipping-company |
The shipping-company parameter contains the name of the company that will ship the order. The only valid values for this parameter are FedEx, UPS and USPS. Associated recurring elements The parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the carrier-calculated-shipping-option element, which associates the parameter value with a particular shipping option.
Content format for parameter value String
Sample use(s)
<input type="hidden" name="checkout-flow-support.
|
| shipping-type | ||||||
The shipping-type parameter identifies the shipping option that is being offered to the buyer. The table below shows the valid values for this parameter for each carrier. None of these shipping options are for international shipping. Please note that Google will reject a Checkout API request that specifies a carrier-calculated shipping option for which the shipping-type is not valid for the specified carrier.
Associated recurring elements The parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the carrier-calculated-shipping-option element, which associates the parameter value with a particular shipping option.
Content format for parameter value String
Sample use(s)
<input type="hidden" name="checkout-flow-support.
|
| unit |
| The unit parameter specifies the unit of measurement that corresponds to an item's weight or a shipping package's length, width or height. If the measurement refers to an item's weight, then the only valid parameter value is LB. If the measurement refers to a dimension of a shipping package, then the only valid parameter value is IN. The value parameter specifies the numeric component of the measurement.
Associated recurring elements When it is associated with the weight of an item, the parameter name contains the numbered item element, which associates the parameter value with a specific item in an order. When it is associated with a package for carrier-calculated shipping, the parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the shipping-package element, which associates the parameter value with a particular package in an order.
API commands Content format for parameter value Integer
Sample use(s)
<input type="hidden" name="shopping-cart.
<input type="hidden" name="checkout-flow-support. |
| value |
| The value parameter specifies the numeric value of a unit of measurement corresponding to an item or a shipping package. Depending on the object being measured, the value parameter can specify the numeric component of an item's weight or the numeric component of a package's height, length or width. The unit parameter specifies the unit of measurement associated with the value parameter's value.
Associated recurring elements When it is associated with the weight of an item, the parameter name contains the numbered item element, which associates the parameter value with a specific item in an order. When it is associated with a package for carrier-calculated shipping, the parameter name contains the carrier-calculated-shipping element, which must be numbered with a value of 1. In addition, the parameter name also contains the shipping-package element, which associates the parameter value with a particular package in an order.
API commands Content format for parameter value Decimal
Sample use(s)
<input type="hidden" name="shopping-cart.
<input type="hidden" name="checkout-flow-support. |