This API request uses the GET shippriceestimate
endpoint to get shipping price estimates for a product.
The GET shippriceestimate
API request takes the following parameters:
productId
- required - the ID of the product that you want to get a shipping estimate forcountryCode
- required - the 2 character (ISO 3166-1 alpha-2) country code that the user is interested in shipping tocurrencyCode
- optional - By default, it will be set to “USD” and this is the currency in which the prices will be represented
Each API request to the Gooten API must have the RecipeID parameter included in the URL. This is typically used to authenticate to the Gooten API. Please be sure to replace the YourRecipeID
in the example with your proper RecipeID from the Gooten Admin.
This request yields following response:
{
"MinPrice": {
"Price": "decimal",
"CurrencyCode": "string",
"FormattedPrice": "string"
},
"MaxPrice": {
"Price": "decimal",
"CurrencyCode": "string",
"FormattedPrice": "string"
},
"VendorCountryCode": "string",
"CanShipExpedited": "boolean",
"EstShipDays": "integer"
}