Skip to content
Bazzario

Selling abroad: money, countries, phones

Amounts in minor units, store currency, shipping countries, phone and time formats in the API.

A store has one home country and one currency; it can also ship to the countries of its international shipping zones. The API never guesses: every value is store data.

Money: integer minor units

  • Every amount (price, total, shippingFee, freeFrom, expectedTotal, …) is an integer in the minor units of currency: cents, grosze, kopecks. 1999 in EUR is 19.99 €.
  • The exponent follows ISO 4217: 2 for most currencies, 0 for VND, so 50000 in VND is 50,000 ₫. Request bodies take integers too; a decimal is rejected with 422.
  • Every object that carries money also carries currency. Never add amounts of different currencies.
  • Supported currencies: UAH, PLN, EUR, USD, CZK, RON, GBP, CAD, KZT, UZS, IDR, VND, THB, MDL.
Money in an order, excerpt
{
  "currency": "PLN",
  "subtotal": 24000,
  "shippingFee": 1500,
  "total": 25500
}

Currency and countries

  • A store has one currency (currency), one home country and one time zone. All prices are in the store currency.
  • GET /v1/admin/store and GET /v1/storefront/checkout-config return currency, timezone, pricesIncludeTax and deliveryCountries (home, abroad[]: the countries of the international shipping zones).
  • A product has one price in the store currency. With showApproxLocalPrice, the storefront also shows an approximate price in the buyer’s currency.
  • Every order snapshots currency at creation. Later changes to the store currency do not change old orders.

Countries and delivery

shippingAddress.country is an uppercase ISO 3166-1 alpha-2 code: UA, PL, DE. The postcode is validated by the country’s format. Delivery is described by a delivery object: { method, provider, serviceType, carrierData }.

Order address and delivery
{
  "shippingAddress": {
    "name": "Anna Kowalska",
    "line1": "ul. Marszałkowska 1",
    "line2": "apt. 4",
    "city": "Warszawa",
    "region": "Mazowieckie",
    "postcode": "00-001",
    "country": "PL"
  },
  "delivery": {
    "method": "carrier",
    "provider": "inpost",
    "serviceType": "locker",
    "carrierData": { "lockerId": "WAW01M" }
  }
}
  • provider is a carrier id from GET /v1/storefront/delivery/providers, which lists the carriers enabled for the home country.
  • carrierData is provider-specific: the fields come from the localities, pickup-points and streets lookups of that provider.
  • A country outside the store’s shipping zones returns 400 SHIPPING_COUNTRY_UNAVAILABLE.
  • The Admin API does not check zones: an external system passes the order country as is.

Payment abroad

  • Cash on delivery needs a carrier that supports it and a shipping country equal to the store’s home country: otherwise 400 PAYMENT_METHOD_NOT_AVAILABLE_ABROAD. rules.codAndCashPickupDomesticOnly in checkout-config is true.
  • Card providers come from checkout-config.paymentProviders[] for the store currency; sessions are created by POST /v1/storefront/payment-sessions.
  • Installments are offered only by providers of the buyer’s country (rules.installmentsRequireUaPhone applies to Ukrainian providers).

Tax

Each order line carries taxRateBp (basis points) and taxAmount in minor units, calculated from the store’s tax registrations and the destination. totalTax is the sum; whether prices include tax is pricesIncludeTax on the store.

Phones

Responses always carry phones in E.164 (+380671234567, +48512345678). Requests accept an international E.164 number (+ and 8 to 15 digits, the first digit not zero) or a national number, which is read with the store home country’s calling code.

Time and language

  • All timestamps are ISO-8601 UTC. The store timezone (for example Europe/Warsaw) matters only for display and daily reports.
  • The store primaryLocale and contentLocales are returned in store. Names and descriptions in Storefront API responses are in the requested language when a translation exists.

Bootstrap data

GET /v1/admin/store returns storeCountry, currency, timezone and the public legal details of the entity: legalCountry, legalRegistrationNumber, legalVatId.