This article gives detailed explanations of the parameters used to initialize the Paazl checkout widget. If you have integrated the Paazl checkout widget in your webshop, the widget will be initialized using the parameters in the table below. This will happen each time one of your webshop customers lands on your checkout page. Integrating the Paazl checkout widget step by step explains how to initialize the widget's styling. Use the parameters below to configure the widget's layout, display and behavior.
Initialization parameters
| Parameter | Required/Optional | Type | Explanation |
|---|---|---|---|
mountElementId | Optional | String | The The default value is Example: |
apiKey | Required | String | A string containing a public API key generated in the Paazl web app. See Configuring the REST API for an explanation of how to generate this key. Example: |
token | Required | String | The access token returned by the Example: |
loadPaazlBasedData | Optional | Boolean | If Note This parameter only affects shipping options for home delivery. If both The default value is Example: |
loadCarrierBasedData | Optional | Boolean | If Note This parameter only affects shipping options for home delivery. If both The default value is Example: |
availableTabs | Optional | Array | The widget displays shipping options in a number of tabs depending on the delivery type. The following values are available:
The default is Note The tabs will be displayed from left to right in the order you specify them. Tabs will only be displayed if they contain shipping options. Example: |
defaultTab | Optional | String | The name of the tab that is selected by default. The value you enter here must be one of the The default value is Example: |
headerTabType | Optional | String | Determines whether the tabs are displayed as tabs ( The default value is |
style | Optional | String | Paazl has a number of predefined widget styles that you can use to match your webshop branding. The following values are available: The default value is Example: |
nominatedDateEnabled | Optional | Boolean | If The default value is Example: |
consigneeCountryCode | Required | String | The ISO 3166-2 code for the country the shipment is being sent to. Example: |
consignorCountryCode | Optional | String | The ISO 3166-2 code for the country the shipment is being sent from. If left empty, Paazl will use the default setting in your Paazl web app account under Settings > My address book > Sender address > Country. Example: |
consigneePostalCode | Required | String | The postal code of the address the shipment is being sent to. The code is used to get a more precise list of available shipping options. Example: |
consignorPostalCode | Optional | String | The postal code of the address the shipment is being sent from. The code is used to get delivery dates from carriers if they offer this service. If left empty, Paazl will use the default setting in your Paazl web app account under Settings > My address book > Sender address > Postal code. Example: |
customerNumber | Optional | String | An individual code that DHL issues to customers so that they can identify themselves at a DHL PackStation. Example: |
numberOfProcessingDays | Optional | Number | The number of days a warehouse needs to get an order ready for pick-up by a carrier. The default value is Minimum value: Example: |
tags | Optional | Array | Codes that are used to filter returned shipping options for display. Possible values include: Example: |
deliveryDateOptions | Optional | Object | Contains options affecting the delivery date. Example: |
startDate | Optional | String | The starting point of a range of possible delivery dates. Note When calculating the start date for a delivery date range, Paazl adds the number of delivery days and processing days you have configured in your webshop's delivery matrix. Format: "YYYY-MM-DD". The default value is today's date. Example: |
numberOfDays | Optional | Number | The length of time in days after startDate for which shipping options are supplied. The default value is Example: |
language | Optional | String | The ISO 639-1 or ISO 639-2 code for the widget's display language. Note If a language code is used that Paazl does not yet support, the widget display language will be English. The languages currently supported are: Chinese ("zh"/"zho"/"chi"), Dutch ("nl"/"nld"), English ("en"/"eng"), French ("fr"/"fra"), German ("de"/"deu"/"ger"), Italian ("it"/"ita"), Japanese ("ja"/"jpn"), Polish ("pl"/"pol"), Portuguese ("pt"/"por"), Spanish ("es"/"spa"). The default value is Example: |
currency | Optional | String | The ISO 4217 code for the currency concerned. The parameter determines the currency icon displayed next to shipping rates. The default code is Example: |
isPricingEnabled | Optional | Boolean | If The default value is |
isShowAsExtraCost | Optional | Boolean | If The default value is |
deliveryRangeFormat | Optional | String | Indicates whether you want date ranges displayed on shipping option rows as a number of days or as a date range. Takes one of two values: Note If you choose The default value is Example: |
deliveryOptionDateFormat | Optional | String | The format for dates displayed in the shipping option rows of the widget's "Delivery" tab. Uses the Javascript fecha library string format. The default value is Example: |
deliveryEstimateDateFormat | Optional | String | The format for dates displayed in the footer of the widget's "Delivery" tab. Uses the Javascript fecha library string format. The default value is Example: |
pickupOptionDateFormat | Optional | String | The format for dates displayed in the shipping option rows of the widget's "Pickup" tab. Uses the Javascript fecha library string format. The default value is Example: |
pickupEstimateDateFormat | Optional | String | The format for dates displayed in the footer of the widget's "Pickup" tab. Uses the Javascript fecha library string format. The default value is Example: |
separatorsFormat | Optional | String | Specifies whether the widget should display numbers with a period for the decimal place and a comma to separate groups of thousands (as used in the USA and UK) or vice versa. Takes one of two values: The default value is Example: |
sortingModel | Optional | Object | Contains elements that tell Paazl how to sort the shipping options and pickup locations it sends back. Example: |
orderBy | Optional | String | Indicates how the displayed shipping options should be sorted. Possible values: The default value for home delivery is |
distributor | Conditional | String | Indicates which carrier's shipping options should appear at the top of the shipping options list. You will find carrier codes available to you in your web app account under Settings > Account > Overview of shipping options. Note If Example: |
sortOrder | Optional | String | Indicates the order in which shipping options should be sorted. Possible values: Note If The default value is Example: |
shipmentParameters | Optional | Object | Contains details of a customer's order. Example: |
totalWeight | Optional | Number | The total weight in kilograms (kg) of a shipment, including packaging. Note If you give Example: |
totalVolume | Optional | Number | The total volume in cubic meters (m³) of the shipment concerned, including packaging. Note If you give Example: |
totalPrice | Optional | Number | The total price of a shipment. This is a scalar value. The currency unit is assigned by your webshop's checkout page. Note If you give Example: |
numberOfGoods | Optional | Number | The total number of packages or individual goods in a shipment. Note If you give Example: |
startMatrix | Optional | String | A one- or two-letter code identifying the delivery matrix column to start with when determining the appropriate shipping option and rate. See Configuring delivery matrices for an explanation of how delivery matrices work. |
goods | Optional | Array | An array of variables used to determine the applicable delivery matrix. See Configuring delivery matrices for an explanation of how delivery matrices work. Example: |
quantity | Optional | Number | The number of items of a particular product type in a shipment. Example: quantity: 7 |
weight | Optional | Number | The weight in kilograms (kg) of a product. Example: weight: 10.5 |
length | Optional | Integer | The length in whole centimeters (cm) of a product. The value must be an integer; floating-point values will be truncated. Example: |
width | Optional | Integer | The width in whole centimeters (cm) of a product. The value must be an integer; floating-point values will be truncated. Example: |
height | Optional | Integer | The height in whole centimeters (cm) of a product. The value must be an integer; floating-point values will be truncated. Example: |
volume | Optional | Number | The volume of a product in cubic meters (m³), including packaging. Example: volume: 0.10 |
price | Optional | Number | The price of a single item in a shipment. This is a scalar value. The currency unit is assigned by your webshop's checkout page. |
startMatrix | Optional | String | A one- or two-letter code identifying the delivery matrix column to start with when determining the appropriate shipping option and rate. See Configuring delivery matrices for an explanation of how delivery matrices work. |
shippingOptionsLimit | Optional | Number | Limits the number of shipping options displayed on the widget's "Delivery" tab. The default value is Example: |
initialPickupLocations | Optional | Number | Limits the number of pickup locations displayed on the widget's "Pickup" tab, and the number of store locations displayed on the "Store" tab. The default value is Example: |
pickupLocationsPageLimit | Optional | Number | Specifies the initial number of pickup locations displayed on the widget's pickup location map, and the initial number of store locations displayed on the widget's store location map. It also determines the number of pickup or store locations that are added every time you click "More" on, respectively, the "Pickup" or "Store" tabs. The default value is Example: |
pickupLocationsLimit | Optional | Number | Limits the total number of pickup locations displayed on the widget's "Pickup" map, and the total number of store locations displayed on the widget's "Store" map. The default value is Example: |
Formatting widget dates
The date format strings that you use when initializing the widget adhere to the ISO-8601 standard. Here are a few examples:
| Date example | Format string |
|---|---|
| Wednesday, September 09, 2018 | "dddd, MMMM DD, YYYY" |
| Wed, 9 Sep 2018 | "ddd, D MMM YYYY" |
| 9. September 2018 | "D. MMMM YYYY" |
| 09-09-18 | "DD-MM-YY" |
All available date formatting tokens:
| Category | Token | Output |
|---|---|---|
| Month | M | 1 2 ... 11 12 |
| MM | 01 02 ... 11 12 | |
| MMM | Jan Feb ... Nov Dec | |
| MMMM | January February ... November December | |
| Day of Month | D | 1 2 ... 30 31 |
| Do | 1st 2nd ... 30th 31st | |
| DD | 01 02 ... 30 31 | |
| Day of Week | d | 0 1 ... 5 6 |
| ddd | Sun Mon ... Fri Sat | |
| dddd | Sunday Monday ... Friday Saturday | |
| Year | YY | 70 71 ... 29 30 |
| YYYY | 1970 1971 ... 2029 2030 | |
| Timezone | ZZ | -0700 -0600 ... +0600 +0700 |
For languages other than English, we recommend you format dates as indicated below in order to avoid problems regarding case-endings or capitalization with respect to the widget labels.
| Language | Recommended format |
|---|---|
| Chinese | "YYYY-MM-DD" |
| Dutch | "DD-MM-YYYY" |
| English | "DD/MM/YYYY" UK and "MM/DD/YYYY" US |
| French | "DD/MM/YYYY" |
| German | "DD.MM.YYYY" |
| Italian | "DD/MM/YYYY" |
| Polish | "DD.MM.YYYY" |
| Portuguese | "DD/MM/YYYY" |
| Spanish | "DD-MM-YYYY" |
| Swedish | "YYYY/MM/DD" |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article