Recipe to set the fares in Vtex

Ingredients:

  • You have to know your storeName inside the vtex.
  • You have to know your accountName inside the vtex.
  • You have to know the prices provided by your manager account in Shippify.
  • You have to know your zipcodes list provided by vtex in this section

Directions:

With this data, you need to make a request similar to this example. In the body you can see un array from the prices for some conditions.In this step, I'm describe to you, every variable, let's start with zipCodeStart and zipCodeEnd, these variables describe the zip code range where this this price is working. weightStart and weightEnd describe the weight range supported for this prices, absoluteMoneyCost describe the final value to this shipping. You can use pricePercent and pricePercentByWeight if the shipping price is a percentage from the package price.(Recomended set this in 0, to Shippify). The maxVolume describe the maximum volumen for this shipping price. The timeCost describe the time to the package arrive to the client position.(In Shippify same day delivery, the recomended is "1.00:00:00" and "2.00:00:00" for next day delivery). The country describe the country to this fare, this parameter is in format iso-3166-1 alfa-3. You can see your country in this list https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

POST
https://{{storename}}.vtexcommercestable.com.br/api/logistics/pvt/configuration/freights/3/values/update?an={{accountName}}
Content-Type application/json; charset=utf-8
Accept application/json
X-VTEX-API-AppKey {{X-VTEX-API-AppKey}}
X-VTEX-API-AppToken {{X-VTEX-API-AppToken}}

BODY
[
  {
    "zipCodeStart": "0009"
    "zipCodeEnd": "0009",
    "weightStart": 1,
    "weightEnd": 1000,
    "absoluteMoneyCost": "1.00",
    "pricePercent": 0,
    "pricePercentByWeight": 0,
    "maxVolume": "1000000000",
    "timeCost": "1.00:00:00",
    "country": "MEX",
    "minimumValueInsurance": "0.00"
  },
  {
    "zipCodeStart": "0009"
    "zipCodeEnd": "0009",
    "weightStart": 1,
    "weightEnd": 1000,
    "absoluteMoneyCost": "1.00",
    "pricePercent": 0,
    "pricePercentByWeight": 0,
    "maxVolume": "1000000000",
    "timeCost": "1.00:00:00",
    "country": "MEX",
    "minimumValueInsurance": "0.00"
  }

]

If you need more information about this integration then you can contact us to engineering@shippify.co

results matching ""

    No results matching ""