> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkout and Pricing Parameters

> Parameters for checkout and purchase events: price breakdown, payment and shipping.

Parameters for checkout and purchase events.

Every checkout and pricing parameter on a `purchase`:

```javascript theme={null}
window._upstack('track', 'purchase', {
  // Standard parameters
  orderId: '10421',
  transactionId: '10421',
  value: 81.17,
  currency: 'USD',
  items: [{
    id: '8012345678',
    variant: '44120033',
    variantName: 'Blue / Medium',
    name: 'Classic Cotton Tee',
    sku: 'TEE-BLU-M',
    price: 34.99,
    quantity: 2,
    brand: 'Example Brand',
    category: 'Apparel',
    url: 'https://example.com/products/classic-tee',
    imageUrl: 'https://example.com/images/classic-tee.jpg'
  }],
  orderName: '#1042',
  price: 81.17,
  subtotalPrice: 62.98,
  tax: 5.20,
  shipping: 12.99,
  discount: 7.00,
  coupon: 'SAVE10',
  paymentType: 'credit_card',
  shippingTier: 'Express',
  affiliation: 'Example Store',

  // User data
  email: 'jane@example.com',
  phone: '+15551234567',
  firstName: 'Jane',
  lastName: 'Smith',
  addresses: [{
    address1: '123 Main St',
    city: 'Austin',
    provinceCode: 'TX',
    countryCode: 'US',
    zip: '78701'
  }],

  // Custom data
  salesChannel: 'web',
  loyaltyTier: 'gold',
  giftOrder: false
});
```

The cart ID on an `add_to_cart`:

```javascript theme={null}
window._upstack('track', 'add_to_cart', {
  // Standard parameters
  value: 69.98,
  currency: 'USD',
  items: [{
    id: '8012345678',
    variant: '44120033',
    variantName: 'Blue / Medium',
    name: 'Classic Cotton Tee',
    sku: 'TEE-BLU-M',
    price: 34.99,
    quantity: 2,
    brand: 'Example Brand',
    category: 'Apparel',
    url: 'https://example.com/products/classic-tee',
    imageUrl: 'https://example.com/images/classic-tee.jpg'
  }],
  cartId: 'cart_5521',

  // User data
  email: 'jane@example.com',

  // Custom data
  addedFrom: 'quick_view',
  bundleId: 'bundle_77'
});
```

| Name | Type | Description |
| - | - | - |
| [`price`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/price) | `number` | Order total. Same as `value`. |
| [`subtotalPrice`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/subtotal-price) | `number` | Total after discounts, before tax and shipping. |
| [`tax`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/tax) | `number` | Tax amount. |
| [`shipping`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/shipping) | `number` | Shipping cost. |
| [`discount`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/discount) | `number` | Total discount amount. |
| [`coupon`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/coupon) | `string` | Discount code used. |
| [`paymentType`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/payment-type) | `string` | Payment method. Never send card details. |
| [`shippingTier`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/shipping-tier) | `string` | Shipping method chosen. |
| [`cartId`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/cart-id) | `string` | Your cart ID. |
| [`affiliation`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/affiliation) | `string` | Your store or affiliate name. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.