> ## 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.

# price

> The order total. Set it to the same amount as value.

The order total. Set it to the same amount as `value`. Klaviyo, Omnisend, Postscript and Sendlane read their order total from this parameter.

| Type | Example value |
| - | - |
| `number` | `81.17` |

Sample payload with every parameter for `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
});
```

**Optional on:** [`purchase`](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/purchase)


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