Appearance
Payload branch "billing"
Every aspect of the current checkout's "billing side" will be grouped into this branch; please note that some kind of scenarios require a mandatory step, so sometime this entities are not representing general user's choices.
Let's review an example:
js
{
"context": "...",
"event": "...",
"checkout_step": "...",
"attributes": {...},
"products": [...],
"carrier": {...},
"payment": {...},
"delivery": {...},
"billing": {
"address": {
"firstname": "FABIO",
"lastname": "POLITI",
"company": "",
"address1": "VIA TOLOI",
"address2": "40",
"postcode": "00052",
"city": "CERVETERI",
"phone": "3471123000",
"phone_mobile": "3471123000",
"fax": null,
"vat_number": "PLTFBA83A14H501I",
"cf": "PLTFBA83A14H501I",
"extrainfo": "f.politi@icoa.it",
"country_name": "Italia",
"state_name": "Roma"
},
"invoice_required": false
},
"user": {...},
"engagements": {...}
}
Variables full details
Here you can find a detailed description of each variable or sub-branch:
Var | Type | Description |
---|---|---|
address | object/null | Choosen billing address (if exists/defined) |
invoice_required | boolean | Invoice is required for billing |
Object: "address"
This object holds informations about a general "address" (both shipping or billing), and it is always defined with these variables:
Var | Type | Description |
---|---|---|
firstname | string/null | Address's holder firstname (if person) |
lastname | string/null | Address's holder lastname (if person) |
company | string/null | Address's holder company (if NOT person) |
address1 | string | Address's part (1) |
address2 | string | Address's part (2) |
postcode | string | Address's postcode/zipcode |
city | string | Address's city/location |
phone | string | Address's phone |
phone_mobile | string/null | Address's mobile phone |
fax | string/null | Address's fax number |
vat_number | string/null | Address's VAT number |
cf | string/null | Address holder fiscal code |
extrainfo | string/null | Address's additional info |
country_name | string | Address's country name (translated) |
state_name | string | Address's state/province name (translated) |