---
title: ApplePayCouponCodeUpdate
framework: applepayontheweb
role: symbol
role_heading: Structure
path: applepayontheweb/applepaycouponcodeupdate
---

# ApplePayCouponCodeUpdate

A dictionary that contains the updated transaction details for responding to a coupon changed event.

## Declaration

```data
dictionary ApplePayCouponCodeUpdate {
	required ApplePayLineItem newTotal;
	sequence <ApplePayLineItem> newLineItems;
	sequence <ApplePayPaymentTokenContext> newMultiTokenContexts;
	ApplePayAutomaticReloadPaymentRequest newAutomaticReloadPaymentRequest;
	ApplePayRecurringPaymentRequest newRecurringPaymentRequest;
	ApplePayDeferredPaymentRequest newDeferredPaymentRequest;
	sequence <ApplePayError> errors;
	sequence <ApplePayShippingMethod> newShippingMethods;
};
```

## Mentioned in

Apple Pay on the Web Version 12 Release Notes

## Topics

### Setting updated transaction details

- [newLineItems](applepayontheweb/applepaycouponcodeupdate/newlineitems.md)
- [newShippingMethods](applepayontheweb/applepaycouponcodeupdate/newshippingmethods.md)
- [newTotal](applepayontheweb/applepaycouponcodeupdate/newtotal.md)
- [errors](applepayontheweb/applepaycouponcodeupdate/errors.md)

### Updating automatic reload payments

- [newAutomaticReloadPaymentRequest](applepayontheweb/applepaycouponcodeupdate/newautomaticreloadpaymentrequest.md)

### Updating deferred payments

- [newDeferredPaymentRequest](applepayontheweb/applepaycouponcodeupdate/newdeferredpaymentrequest.md)

### Updating recurring payments

- [newRecurringPaymentRequest](applepayontheweb/applepaycouponcodeupdate/newrecurringpaymentrequest.md)

### Updating multi-token or multi-merchant payments

- [newMultiTokenContexts](applepayontheweb/applepaycouponcodeupdate/newmultitokencontexts.md)

## See Also

### Handling coupons

- [oncouponcodechanged](applepayontheweb/applepaysession/oncouponcodechanged.md)
- [completeCouponCodeChange](applepayontheweb/applepaysession/completecouponcodechange.md)
- [ApplePayCouponCodeChangedEvent](applepayontheweb/applepaycouponcodechangedevent.md)
