<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ApplePayontheWeb",
  "identifier" : "/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple Pay on the Web"
    ],
    "preciseIdentifier" : "struct/ApplePayCouponCodeUpdate"
  },
  "title" : "ApplePayCouponCodeUpdate"
}
-->

# ApplePayCouponCodeUpdate

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

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

## Topics

### Setting updated transaction details

[`newLineItems`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/newLineItems)

The list of updated line items incorporating the coupon code update.

[`newShippingMethods`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/newShippingMethods)

The list of available shipping methods.

[`newTotal`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/newTotal)

The updated total resulting from the coupon code update.

[`errors`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/errors)

A list of errors resulting from the coupon code update.

### Updating automatic reload payments

[`newAutomaticReloadPaymentRequest`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/newAutomaticReloadPaymentRequest)

An updated request for an automatic reload payment.

### Updating deferred payments

[`newDeferredPaymentRequest`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/newDeferredPaymentRequest)

An updated request for a deferred payment.

### Updating recurring payments

[`newRecurringPaymentRequest`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/newRecurringPaymentRequest)

An updated request for a recurring payment.

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

[`newMultiTokenContexts`](/documentation/ApplePayontheWeb/ApplePayCouponCodeUpdate/newMultiTokenContexts)

An array of updated multitoken contexts for a multimerchant payment request.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)