Billing Address Added
When to Use
This event should be triggered when a visitor provides billing address information, indicating progression in the checkout funnel and intent to complete purchase.
Billing Address Form Completion
When a visitor fills out and submits billing address information in checkout forms.
Address Selection from Saved Addresses
When users select a previously saved billing address from their account or address book.
Auto-filled Address Confirmation
When billing addresses are auto-populated and confirmed by the user during checkout.
Same as Shipping Address Selection
When users choose to use the same address for billing as their shipping address.
Complete Reference
event object required
name string required
Use only static value billing_address_added for `event.name'.
name: "billing_address_added"
value number required
Event value in decimal format.
Represent the total value of all products in checkout at billing address step (sum of price × quantity for each product)
value: 123.99
currency string required
Currency code that specifies the currency in which all monetary values from any object associated with this event are expressed.
Note: This value can be overridden in nested objects if they contain their own value
key with a currency specified.
currency: "USD"
exchange_rate number
Custom exchange rate for multi-currency. Default has value 1.
Note: This value can be overridden in nested objects if they contain their own value key with a currency specified.
exchange_rate: 1
id string required
Event ID — required for transactions or any actions that require deduplication or uniqueness. Represents the unique identifier of an action ID used in your system.
id: "UNIQUE_ACTION_ID_123"
context object
Use only if exists new data. View complete Context Object documentation
url string required-if-applicable
Complete URL of the current page including all parameters
SPA Applications: context.url
is particularly valuable for Single Page Applications where URL changes don’t automatically trigger page context updates. Manual implementation ensures accurate tracking of page transitions and user navigation within SPA frameworks.
url:"https://shop.example.com/products/laptop?color=silver&storage=512gb&utm_source=google"
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
Type of page (product, home ...)
page_type: "product"
environment string recommended
Allowed values: prod, dev
environment: "prod"
products array required
Array containing all products in checkout at billing address step. View complete Product Object documentation
products[0] object required
id string required
Unique product identifier in your system.
id: "PRODUCT_ID"
parent_id string required
Parent product ID for variants or child products (can be same as id if no parent concept exists).
parent_id: "PRODUCT_PARENT_ID"
name string required
Product name or title displayed to users.
name: "PRODUCT_NAME"
parent_name string
Parent product name for variants or child products
parent_name: "PRODUCT_PARENT_NAME"
price_base number required
Original or base price before discounts (decimal format: 299.99)
price_base: 120.99
price number required
Current selling price after discounts (decimal format: 249.99)
price: 100.99
tax_included boolean required
Whether the price includes taxes (true/false)
tax_included: true
tax_percent number required
Tax percentage applied to the product (0-100)
tax_percent: 21
quantity number required
Quantity of this product in the context of the event
quantity: 1
category string required
Main product category name
category: "PRODUCT_MAIN_CATEGORY_NAME"
sku string
Product SKU (Stock Keeping Unit) for inventory tracking
sku: "PRODUCT_SKU"
parent_sku string
Parent product SKU for variants or child products
parent_sku: "PRODUCT_PARENT_SKU"
gtin string
Global Trade Item Number for product identification
gtin: "PRODUCT_GTIN"
mpn string
Manufacturer Part Number assigned by the manufacturer
mpn: "PRODUCT_MPN"
ean string
European Article Number for product barcoding
ean: "PRODUCT_EAN"
brand string
Product brand or manufacturer name
brand: "PRODUCT_BRAND"
type string
Product type: "simple", "variable", "virtual", "bundle", "subscription", "external".
Default: simple.
type: "simple"
stock_status boolean recommended
Product availability status (true = in stock, false = out of stock)
stock_status: true
stock_location string
Physical location or warehouse where product is stored
stock_location: "WAREHOUSE_NAME"
created_at string recommended
Timestamp when product was added to inventory (milliseconds)
created_at: 1754926521690
url string
Direct URL to the product page
url: "https://shop.example.com/products/laptop-page"
parent_url string
URL to the parent product page (for variants)
parent_url: "https://shop.example.com/products/laptop-page"
image string
Main product image URL
image: "https://cdn.example.com/products/laptop-image.jpg"
images array
Array of additional product image URLs
images: [
"https://cdn.example.com/products/laptop-image-1.jpg",
"https://cdn.example.com/products/laptop-image-2.jpg",
]
categories array
Array of category objects with name and id properties
- name (string, required) - Category name
- id (string) - Category identifier
categories: [
{
name: "PRODUCT_FIRST_CATEGORY_NAME",
id: "1111"
},
{
name: "PRODUCT_SECOND_CATEGORY_NAME",
id: "1111"
}
]
coupons array
Array of product-level coupons applied to this product. View complete Coupon Object documentation
coupons[0] (object) - required
required
name string required
Coupon name or code.
name: "FREE SHIPPING"
value number recommended
Coupon discount value.
value: 123.99
tax_included boolean recommended
Whether coupon value includes taxes
tax_included: true
tax_precent string recommended
Tax percentage for the coupon
tax_precent: 21
id string
Coupon internal identifier.
id: "COUPON_INTERNAL_ID"
type string
Coupon type (e.g., "LOYALTY", "SEASONAL", "FIRST_ORDER")
type: "SHIPPING"
currency string required-if-applicable
Currency code. Specifies the currency code when it differs from event.currency.
currency: "USD"
exchange_rate number
Custom exchange rate for multi-currency. Default has value 1. Specifies when it differs from event.exchange_rate.
exchange_rate: 1
properties object recommended
Custom product attributes for audience segmentation. Use custom properties that match your product catalog and business needs.
- color (string|array) - Product color(s): "blue" or ["blue", "navy"]
- size (string) - Product size: "S", "M", "L", "XL"
- material (string|array) - Product material(s): "cotton" or ["cotton", "polyester"]
- connectivity (string|array) - Connection types: "wireless" or ["wifi", "bluetooth"]
- storage (string) - Storage capacity: "256GB", "512GB"
- dimensions (string) - Physical dimensions: "120x60x75cm"
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.
- IT & C
- Fashion
- Deco
properties: {
color: "space_gray",
storage: "256GB",
memory: "16GB",
connectivity: ["wifi", "bluetooth"],
warranty: "2_years",
energy_rating: "A++",
brand_series: "pro_line"
}
properties: {
color: ["black", "white"],
size: "M",
material: "cotton",
fit: "regular",
season: "summer",
collection: "2024_spring",
care_instructions: "machine_wash"
}
properties: {
color: ["natural", "oak"],
dimensions: "120x80x75cm",
material: ["wood", "metal"],
style: "modern",
room_type: ["living_room", "office"],
assembly_required: "true"
}
currency string required-if-applicable
Currency code. Specifies the currency code when it differs from event.currency.
currency: "USD"
exchange_rate number
Custom exchange rate for multi-currency. Default has value 1. Specifies when it differs from event.exchange_rate.
exchange_rate: 1
coupons array
An array containing details of the coupons associated with the event. View complete Coupon Object documentation
coupons[0] object required
name string required
Coupon name or code.
name: "FREE SHIPPING"
value number recommended
Coupon discount value.
value: 123.99
tax_included boolean recommended
Whether coupon value includes taxes
tax_included: true
tax_precent string recommended
Tax percentage for the coupon
tax_precent: 21
id string
Coupon internal identifier.
id: "COUPON_INTERNAL_ID"
type string
Coupon type (e.g., "LOYALTY", "SEASONAL", "FIRST_ORDER")
type: "SHIPPING"
currency string required-if-applicable
Currency code. Specifies the currency code when it differs from event.currency.
currency: "USD"
exchange_rate number
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
Unique customer identifier in your system.
id: "CUSTOMER_INTERNAL_ID"
email string|array recommended
Customer email address(es) provided in plaintext or as SHA-256 hashed values.
email: "[email protected]"
// or
email: ["[email protected]", "[email protected]"]
// or
email: ["3e1ufd1rdnh8l1rfz6xlreyw2yryd4zrf8zsk1pxh2x8wbsp2mw1g93rs5nx68dq"]
phone string|array recommended
Customer phone number(s) in E.164 format (plaintext) or as SHA-256 hashed values.
phone: "+40712345678"
// or
phone: ["+40712345678", "+4079876543"]
// or
phone: ["unw5r66oikql4n4tlg2c54bkd2npephsbwwhxuoxreu6ph8uv6k424y9x15opy9y"]
first_name string recommended
Customer first name
first_name: "John"
last_name string recommended
Customer last name
last_name: "Doe"
country string
Country name or ISO country code
country: "Romania"
region string recommended
State, province, or region name
region: "Bucuresti"
city string recommended
City or locality name
city: "Bucuresti"
street string
Street address including number
street: "Strada Principala 1"
postal_code string
Postal code or ZIP code
postal_code: "700000"
orders_total_number number recommended
Cumulative number of orders placed by this user
orders_total_number: 5
orders_canceled_number number recommended
Cumulative number of orders placed and canceled by this user
orders_canceled_number: 0
orders_total_value number recommended
Cumulative lifetime user orders value (decimal format: 2500.50)
orders_total_value: 1234.99
orders_refunded_value number recommended
Cumulative lifetime user orders value canceled (decimal format: 2500.50)
orders_refunded_value: 250.99
predicted_value number
Predicted lifetime value of a customer for your business
predicted_value: 100.99
created_at number recommended
Timestamp in milliseconds since Unix epoch representing the first time the user was recorded
created_at: 1754926521690
properties object recommended
Custom Customer Properties Examples
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.
- E-commerce Customer
- B2B Lead/Customer
- Subscription Service
- Content Platform
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"
}
properties: {
company_size: "enterprise",
industry: "fintech",
job_title: "marketing_director",
decision_maker: "true",
budget_range: "50000-100000",
lead_source: ["linkedin", "webinar"],
qualification_status: "qualified",
sales_stage: "proposal"
}
properties: {
subscription_tier: "premium",
billing_cycle: "annual",
feature_usage: ["analytics", "reporting", "api"],
trial_user: "false",
renewal_date: "2025-06-30",
support_level: "priority",
usage_frequency: "daily"
}
properties: {
content_preferences: ["technology", "business"],
engagement_level: "high",
newsletter_subscriber: "true",
social_media_follower: "true",
content_consumption: "premium",
device_preference: ["mobile", "desktop"],
timezone: "Europe/Bucharest"
}
Object Examples
These examples demonstrate the complete data object structure for the billing_address_added
event. Use the complete example for detailed implementations or the minimal example for quick integrations.
- Complete Example
- Minimal Example
{
"event": {
"name": "billing_address_added",
"value": 1499.97,
"currency": "USD",
"exchange_rate": 1,
"id": "BILLING_ADDRESS_789456",
"properties": {
"address_source": "manual_entry",
"address_type": "billing_only",
"same_as_shipping": false,
"address_validation_passed": true,
"saved_to_account": true,
"form_completion_time_seconds": 95,
"auto_complete_used": false,
"tax_calculation_triggered": true,
"shipping_cost_updated": false,
"checkout_step": 3
}
},
"context": {
"environment": "prod",
"data_source": "website",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"overide_ip": "198.51.100.78",
"url": "https://shop.example.com/checkout/billing",
"landing_url": "https://shop.example.com/electronics/smart-home",
"referring_url": "https://google.com"
},
"products": [
{
"id": "SMART_THERMOSTAT_001",
"parent_id": "SMART_THERMOSTAT_001",
"sku": "ST-WIFI-PRO-001",
"parent_sku": "ST-WIFI-PRO",
"gtin": "6789012345678",
"mpn": "ST-WIFI-PRO-2024",
"ean": "6789012345678",
"name": "Smart WiFi Thermostat Pro",
"parent_name": "Smart WiFi Thermostat Pro Series",
"brand": "SmartHome",
"type": "simple",
"price_base": 299.99,
"price": 249.99,
"currency": "USD",
"exchange_rate": 1,
"tax_included": true,
"tax_percent": 8.25,
"quantity": 1,
"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-wifi-thermostat-pro",
"image": "https://cdn.example.com/smart-thermostat-main.jpg",
"images": [
"https://cdn.example.com/smart-thermostat-front.jpg",
"https://cdn.example.com/smart-thermostat-app.jpg",
"https://cdn.example.com/smart-thermostat-install.jpg"
],
"category": "Electronics > Smart Home > Climate Control",
"categories": [
{
"name": "Electronics",
"id": "cat_electronics"
},
{
"name": "Smart Home",
"id": "cat_smart_home"
},
{
"name": "Climate Control",
"id": "cat_climate_control"
}
],
"properties": {
"connectivity": ["wifi", "bluetooth"],
"compatibility": ["ios", "android", "alexa", "google_home"],
"display_type": "color_touchscreen",
"energy_star_certified": true,
"geofencing": true,
"learning_capability": true,
"installation_type": "diy_or_professional",
"warranty": "5_years"
}
},
{
"id": "SMART_DOORBELL_001",
"sku": "SDB-VIDEO-HD-001",
"name": "Smart Video Doorbell HD",
"brand": "SmartHome",
"type": "simple",
"price": 199.99,
"currency": "USD",
"tax_included": true,
"tax_percent": 8.25,
"quantity": 1,
"stock_status": true,
"category": "Electronics > Smart Home > Security",
"properties": {
"video_quality": "1080p_hd",
"night_vision": true,
"motion_detection": true,
"two_way_audio": true,
"cloud_storage": "free_3_days",
"battery_powered": true,
"weather_resistant": "ip65"
}
},
{
"id": "SMART_BULBS_SET_001",
"sku": "SB-COLOR-4PACK",
"name": "Smart Color Bulbs 4-Pack",
"brand": "SmartHome",
"type": "bundle",
"price": 89.99,
"currency": "USD",
"tax_included": true,
"tax_percent": 8.25,
"quantity": 1,
"category": "Electronics > Smart Home > Lighting",
"properties": {
"bulb_type": "led_color_changing",
"wattage": "9w_equivalent_60w",
"colors_available": "16_million",
"dimming": "yes",
"voice_control": ["alexa", "google_home"],
"app_control": "yes"
}
}
],
"coupons": [
{
"name": "SMART_HOME_BUNDLE_15",
"value": 225.00,
"currency": "USD",
"tax_percent": 8.25,
"tax_included": true,
"id": "SMART_HOME_2024",
"type": "BUNDLE_DISCOUNT"
}
],
"user": {
"id": "CUST_SMART_456789",
"email": ["[email protected]"],
"phone": ["+1555444333"],
"first_name": "Jennifer",
"last_name": "Smith",
"country": "United States",
"region": "Washington",
"city": "Seattle",
"street": "456 Innovation Drive, Unit 8A",
"postal_code": "98101",
"properties": {
"customer_segment": "tech_early_adopter",
"acquisition_channel": "youtube_ads",
"preferred_categories": ["smart_home", "technology", "automation"],
"preferred_language": "en",
"home_type": "single_family",
"smart_home_experience": "intermediate",
"installation_preference": "diy",
"loyalty_tier": "silver",
"marketing_consent": true
}
}
}
{
"event": {
"name": "billing_address_added",
"value": 79.99,
"currency": "USD",
"id": "BILLING_MIN_123"
},
"context": {
"environment": "prod",
"data_source": "website"
},
"products": [
{
"id": "PLANT_POT_001",
"sku": "PP-CERAMIC-MED",
"name": "Medium Ceramic Plant Pot",
"brand": "GreenLife",
"type": "simple",
"price": 79.99,
"currency": "USD",
"tax_included": true,
"tax_percent": 8.25,
"quantity": 1,
"category": "Home & Garden > Planters"
}
]
}
Implementation Methods
These examples show how to send the data objects using different implementation approaches. Choose the method that best fits your technical setup.
- JavaScript Implementation
- API Implementation
// Web tracking implementation
window.reshape = window.reshape || [];
// Send the complete data object
reshape.push({
"event": {
"name": "billing_address_added",
"value": 1499.97,
"currency": "USD",
"id": "BILLING_ADDRESS_789456"
},
"context": {
"environment": "prod",
"data_source": "website"
},
"products": [
{
"id": "SMART_THERMOSTAT_001",
"sku": "ST-WIFI-PRO-001",
"name": "Smart WiFi Thermostat Pro",
"brand": "SmartHome",
"price": 249.99,
"quantity": 1
}
],
"user": {
"id": "CUST_SMART_456789",
"email": ["[email protected]"],
"first_name": "Jennifer",
"last_name": "Smith"
}
});
# Define the JSON body as a variable
BODY_JSON='{
"event": {
"name": "billing_address_added",
"value": 1499.97,
"currency": "USD",
"id": "BILLING_ADDRESS_789456"
},
"context": {
"environment": "prod",
"data_source": "website"
},
"products": [
{
"id": "SMART_THERMOSTAT_001",
"sku": "ST-WIFI-PRO-001",
"name": "Smart WiFi Thermostat Pro",
"brand": "SmartHome",
"price": 249.99,
"quantity": 1
}
],
"user": {
"id": "CUST_SMART_456789",
"email": ["[email protected]"],
"first_name": "Jennifer",
"last_name": "Smith"
}
}'
# Send the request using curl
curl -X POST "https://dre2.yourdomain.com/reshape/standard/event?id=YOUR_SCRIPT_ID" \
-H "Content-Type: application/json" \
-H "X-Dre-Access-Token: YOUR_ACCESS_TOKEN" \
-d "$BODY_JSON"
Product Properties Examples
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.
- IT & C
- Fashion
- Deco
properties: {
color: "space_gray",
storage: "256GB",
memory: "16GB",
connectivity: ["wifi", "bluetooth"],
warranty: "2_years",
energy_rating: "A++",
brand_series: "pro_line"
}
properties: {
color: ["black", "white"],
size: "M",
material: "cotton",
fit: "regular",
season: "summer",
collection: "2024_spring",
care_instructions: "machine_wash"
}
properties: {
color: ["natural", "oak"],
dimensions: "120x80x75cm",
material: ["wood", "metal"],
style: "modern",
room_type: ["living_room", "office"],
assembly_required: "true"
}
The value
field should represent the total checkout value at the billing address step, including all products and any applied discounts, to accurately track potential revenue at this stage of the funnel.
Implementation Best Practices
Event Timing
Form Submission
// Trigger when billing address form is submitted
document.getElementById('billing-form').addEventListener('submit', function(e) {
const billingData = getBillingFormData();
const checkoutData = getCurrentCheckoutState();
reshape.push({
event: {
name: "billing_address_added",
value: checkoutData.total,
currency: checkoutData.currency,
id: generateBillingEventId()
},
products: checkoutData.items,
coupons: checkoutData.appliedCoupons,
user: billingData.userInfo
});
});
Address Selection
// For saved address selection
function selectSavedAddress(addressId) {
const address = getSavedAddress(addressId);
const checkoutData = getCurrentCheckoutState();
reshape.push({
event: {
name: "billing_address_added",
value: checkoutData.total,
currency: checkoutData.currency,
id: generateBillingEventId(),
properties: {
address_source: "saved_address"
}
},
products: checkoutData.items,
user: address.userInfo
});
}
Data Collection Guidelines
Checkout Progress Tracking
- Track billing address step completion in checkout funnel
- Include current checkout state with all products and discounts
- Monitor conversion rates from billing address to payment
Customer Data Integration
- Include billing address information in user object
- Track address selection patterns (new vs saved addresses)
- Consider fraud prevention signals from address data
Address Validation
- Track address validation success/failure rates
- Monitor manual vs auto-complete address entry
- Analyze same as shipping vs different billing preferences