Field Descriptions
Customer Fields
| Field Name | Type | Details | Example |
|---|---|---|---|
| String | Plain text as provided by the shopper. | james@disconetwork.com | |
| email_hash | String | SHA256 hash of the email. Lowercase & remove whitespace before hashing. | b7581c0ff2f84ba35b4aa29905c5c775607575f970dbf72b1594c9c67b90aefe |
| phone | String | The shopper's phone number. | 4151234567 or +1 (415) 123-4567 |
| first_name | String | The first name as provided by the shopper. | James |
| last_name | String | The last name as provided by the shopper. | Stone |
| shipping | Object | Shipping address details. | See below |
| billing | Object | Billing address details. | See below |
| confirmation_id | String | Unique confirmation identifier. | 12345ABC |
| purchases | Array | List of purchased items. | See below |
| cost | String | Total cost of the order. | 100 |
| order_id | String | Unique order identifier. | 67890XYZ |
| page_type | Enum | Type of page where widget is mounted. | thank_you or "order_status" |
Shipping and Billing Address Fields
| Field Name | Type | Details | Example |
|---|---|---|---|
| address_line_1 | String | First line of the address. | 123 Main St |
| address_line_2 | String | Second line of the address (if any). | Apt 4B |
| city | String | City name. | San Francisco |
| state | String | State or province. | CA |
| zip | String | Postal or ZIP code. | 94105 |
Purchases Fields
| Field Name | Type | Details | Example |
|---|---|---|---|
| product_id | String | Unique identifier for the product. | PROD123 |
| type | String | Type or category of the product. | Electronics |
| name | String | Name of the product. | Headphones |
| description | String | Description of the product. | Noise-cancelling headphones |
| variant | String | Variant of the product (e.g., color, size). | Black |
| quantity | String | Quantity purchased. | 2 |