Skip to main content

Billing Address Added

When to Use

Trigger this event when a visitor provides billing address information — by completing the billing form, selecting a saved address, or choosing "same as shipping address".

Complete Reference

event object required

name string required

info

Use only static value billing_address_added for event.name.

name: "billing_address_added"

value number required

info

Total value of all products in checkout at billing address step.

value: 1499.97

currency string required

info

Currency code for all monetary values in this event. Can be overridden in nested objects.

currency: "EUR"

exchange_rate number

info

Custom exchange rate for multi-currency. Default is 1.

exchange_rate: 1

id string

info

Optional event identifier.

id: "BILLING_12345"

context object

url string required-if-applicable

info

Collected automatically for standard websites. Required only for SPA applications where URL changes don't trigger automatic page context updates.

url:"https://shop.example.com/products/laptop?color=silver&storage=512gb&utm_source=google"
warning

URL Parameter Sensitivity: Be mindful of sensitive information in URLs. Query parameters may contain personal identifiers, session tokens, or private information that should be handled according to privacy regulations.

page_type string recommended

info

Type of page (product, home ...)

page_type: "product"

environment string recommended

info

Allowed values: prod, dev

environment: "prod"

products array required

info

Array containing all products in checkout at billing address step. View complete Product Object documentation

products[0] object required

id string required

info

Unique product identifier in your system.

id: "PRODUCT_ID"

parent_id string recommended

info

Parent product ID for variants or child products. Defaults to id if not provided.

parent_id: "PRODUCT_PARENT_ID"

name string required

info

Product name or title displayed to users.

name: "Professional Wireless Headphones"

parent_name string

info

Parent product name for variants or child products. Defaults to name if not provided.

parent_name: "Professional Headphones Collection"

price_base number required

info

Original or base price before discounts. Always equal to or greater than price.

price_base: 299.99

price number required

info

Current selling price after discounts. Always equal to or less than price_base.

price: 249.99

tax_included boolean required

info

Whether the price includes taxes. Defaults to true if not provided.

tax_included: true

tax_percent number required

info

Tax percentage applied to the product (0-50). If not provided, the site default tax rate will be used (generally the standard rate of the country).

tax_percent: 19

quantity number required

info

Quantity of this product in the context of the event. Defaults to 1 if not provided.

quantity: 2

category string recommended

info

Main product category name

category: "Electronics"

sku string

info

Product SKU (Stock Keeping Unit) for inventory tracking

sku: "SKU_HEADPHONES_PRO"

parent_sku string

info

Parent product SKU for variants or child products. Defaults to sku if not provided.

parent_sku: "SKU_HEADPHONES"

gtin string

info

Global Trade Item Number for product identification

gtin: "1234567890123"

mpn string

info

Manufacturer Part Number assigned by the manufacturer

mpn: "HP-PRO-2024"

ean string

info

European Article Number for product barcoding

ean: "1234567890123"

brand string

info

Product brand or manufacturer name

brand: "AudioTech"

type string

info

Product type. Free-form string (e.g. "simple", "variable", "bundle", "subscription").

type: "simple"

stock_status boolean recommended

info

Product availability (true = in stock, false = out of stock). Defaults to true if not provided.

stock_status: true

stock_location string

info

Physical location or warehouse where product is stored

stock_location: "Main Warehouse EU"

created_at number

info

Timestamp when product was added to inventory (milliseconds)

created_at: 1748505040077

url string

info

Direct URL to the product page

url: "https://shop.example.com/products/headphones-pro"

parent_url string

info

URL to the parent product page (for variants)

parent_url: "https://shop.example.com/products/headphones-collection"

image string

info

Main product image URL

image: "https://cdn.example.com/headphones-main.jpg"

images array

info

Array of additional product image URLs

images: [
"https://cdn.example.com/headphones-front.jpg",
"https://cdn.example.com/headphones-side.jpg"
]

categories array

info

Array of category objects with name and id properties

  • name (string, required) - Category name
  • id (string) - Category identifier
categories: [
{ name: "Electronics", id: "cat_electronics" },
{ name: "Audio", id: "cat_audio" }
]

coupons array

info

Array of product-level coupons applied to this product. View complete Coupon Object documentation

coupons[0] (object) - required

name string required

info

Coupon name or code.

name: "FREE SHIPPING"

value number recommended

info

Coupon discount value.

value: 123.99

tax_included boolean recommended

info

Whether coupon value includes taxes

tax_included: true

tax_percent number recommended

info

Tax percentage for the coupon

tax_percent: 21

id string

info

Coupon internal identifier.

id: "COUPON_INTERNAL_ID"

type string

info

Coupon type. Free-form string, use consistent naming (e.g. "LOYALTY", "SEASONAL", "FIRST_ORDER", "SHIPPING").

type: "SHIPPING"

currency string required-if-applicable

info

Currency code. Specifies the currency code when it differs from event.currency.

currency: "USD"

exchange_rate number

info

Custom exchange rate for multi-currency. Default has value 1. Specifies when it differs from event.exchange_rate.

exchange_rate: 1

properties object recommended

info

Custom product attributes for audience segmentation. Free-form key-value object. Use properties that match your product catalog and business needs.

Product Segmentation

Use the properties object to store custom product attributes, with property names defined by each business as needed, that enable advanced segmentation, personalization, and analytics across your marketing campaigns.

properties: {
color: "space_gray",
storage: "256GB",
memory: "16GB",
connectivity: ["wifi", "bluetooth"],
warranty: "2_years",
energy_rating: "A++",
brand_series: "pro_line"
}

currency string required-if-applicable

info

Currency code. Specifies the currency code when it differs from event.currency.

currency: "USD"

exchange_rate number

info

Custom exchange rate for multi-currency. Default has value 1. Specifies when it differs from event.exchange_rate.

exchange_rate: 1

coupons array

info

Array of order-level coupons applied at this step. View complete Coupon Object documentation

coupons[0] object

name string required

info

Coupon name or code.

name: "FREE SHIPPING"

value number recommended

info

Coupon discount value.

value: 123.99

tax_included boolean recommended

info

Whether coupon value includes taxes

tax_included: true

tax_percent number recommended

info

Tax percentage for the coupon

tax_percent: 21

id string

info

Coupon internal identifier.

id: "COUPON_INTERNAL_ID"

type string

info

Coupon type. Free-form string, use consistent naming (e.g. "LOYALTY", "SEASONAL", "FIRST_ORDER", "SHIPPING").

type: "SHIPPING"

currency string required-if-applicable

info

Currency code. Specifies the currency code when it differs from event.currency.

currency: "USD"

exchange_rate number

info

Custom exchange rate for multi-currency. Default has value 1. Specifies when it differs from event.exchange_rate.

exchange_rate: 1

user object recommended

id string recommended

info

Unique customer identifier in your system.

id: "CUSTOMER_INTERNAL_ID"

email string recommended

info

Customer email address in plaintext. Do not send pre-hashed values — DATA Reshape automatically normalizes and hashes before sending to destinations.

phone string recommended

info

Customer phone number in E.164 format (plaintext). Do not send pre-hashed values — DATA Reshape automatically normalizes and hashes before sending to destinations.

phone: "+40712345678"

first_name string recommended

info

Customer first name

first_name: "John"

last_name string recommended

info

Customer last name

last_name: "Doe"

country string

info

Country name or ISO country code

country: "Romania"

region string recommended

info

State, province, or region name

region: "Bucuresti"

city string recommended

info

City or locality name

city: "Bucuresti"

street string

info

Street address including number

street: "Strada Principala 1"

postal_code string

info

Postal code or ZIP code

postal_code: "700000"

orders_total_number number recommended

info

Cumulative number of orders placed by this user

orders_total_number: 5

orders_canceled_number number recommended

info

Cumulative number of orders placed and canceled by this user

orders_canceled_number: 0

orders_total_value number recommended

info

Cumulative lifetime user orders value (decimal format: 2500.50)

orders_total_value: 1234.99

orders_refunded_value number recommended

info

Cumulative lifetime user orders value canceled (decimal format: 2500.50)

orders_refunded_value: 250.99

predicted_value number

info

Predicted lifetime value of a customer for your business

predicted_value: 100.99

created_at number recommended

info

Timestamp in milliseconds since Unix epoch representing the first time the user was recorded

created_at: 1754926521690

properties object recommended

info

Custom Customer Properties Examples

User Segmentation

Use the properties object to store custom user attributes, with property names defined by each business as needed, that enable advanced segmentation, personalization, and analytics across your marketing campaigns.

properties: {
customer_type: "returning",
membership_level: "platinum",
preferred_category: ["electronics", "fashion"],
last_purchase_date: "2024-12-15",
average_order_value: "350.00",
payment_method_preference: "card",
registration_date: "2023-06-15"
}

Examples

window.reshape = window.reshape || [];
reshape.push({
"event": {
"name": "billing_address_added",
"value": 1499.97,
"currency": "EUR",
"exchange_rate": 1
},
"context": {
"url": "https://shop.example.com/checkout/billing",
"page_type": "checkout",
"environment": "prod"
},
"products": [
{
"id": "THERMOSTAT_001",
"parent_id": "THERMOSTAT_SERIES",
"name": "Smart WiFi Thermostat Pro",
"parent_name": "Smart WiFi Thermostat Pro Series",
"price_base": 299.99,
"price": 249.99,
"tax_included": true,
"tax_percent": 19,
"quantity": 1,
"category": "Electronics > Smart Home > Climate Control",
"currency": "EUR",
"exchange_rate": 1,
"sku": "ST-WIFI-PRO-001",
"parent_sku": "ST-WIFI-PRO",
"gtin": "6789012345678",
"mpn": "ST-WIFI-PRO-2024",
"ean": "6789012345678",
"brand": "SmartHome",
"type": "simple",
"stock_status": true,
"stock_location": "Smart Home Warehouse",
"created_at": 1748505040077,
"url": "https://shop.example.com/smart-wifi-thermostat-pro",
"parent_url": "https://shop.example.com/smart-thermostats",
"image": "https://cdn.example.com/smart-thermostat.jpg",
"images": [
"https://cdn.example.com/smart-thermostat-app.jpg",
"https://cdn.example.com/smart-thermostat-install.jpg"
],
"categories": [
{ "name": "Electronics", "id": "cat_electronics" },
{ "name": "Smart Home", "id": "cat_smart_home" },
{ "name": "Climate Control", "id": "cat_climate" }
],
"properties": {
"connectivity": ["wifi", "bluetooth"],
"compatibility": ["ios", "android", "alexa"],
"display_type": "color_touchscreen",
"energy_star_certified": true
}
},
{
"id": "DOORBELL_001",
"name": "Smart Video Doorbell HD",
"price_base": 199.99,
"price": 199.99,
"tax_included": true,
"tax_percent": 19,
"quantity": 1,
"category": "Electronics > Smart Home > Security",
"sku": "SDB-VIDEO-HD-001",
"brand": "SmartHome",
"type": "simple",
"stock_status": true,
"url": "https://shop.example.com/smart-video-doorbell",
"image": "https://cdn.example.com/smart-doorbell.jpg",
"properties": {
"video_quality": "1080p_hd",
"night_vision": true,
"motion_detection": true
}
}
],
"coupons": [
{
"name": "SMART_HOME_BUNDLE_15",
"value": 225.00,
"tax_included": true,
"tax_percent": 19,
"id": "COUPON_SMARTHOME_001",
"type": "BUNDLE_DISCOUNT",
"currency": "EUR",
"exchange_rate": 1
}
],
"user": {
"id": "CUST_12345",
"email": "[email protected]",
"phone": "+40712345678",
"first_name": "Alexandru",
"last_name": "Popescu",
"country": "RO",
"region": "Bucuresti",
"city": "Bucuresti",
"street": "Strada Republicii 45",
"postal_code": "500030",
"orders_total_number": 8,
"orders_canceled_number": 1,
"orders_total_value": 2156.75,
"orders_refunded_value": 299.99,
"predicted_value": 3500.00,
"created_at": 1640995200000,
"properties": {
"customer_segment": "loyal",
"acquisition_channel": "paid_search",
"loyalty_tier": "gold"
}
}
});