From 3b0e8c685f356050a01b375535a309e630b1cf65 Mon Sep 17 00:00:00 2001 From: Bo Liang Su <92525548+bolsu@users.noreply.github.com> Date: Fri, 14 Nov 2025 06:33:29 +0100 Subject: [PATCH] UNITY-9973 Extend the cart API to include the coupon code UNITY-9973 Extend the cart API to include the coupon code --- _raml/apps/carts/examples/post_carts_cartid_coupon_response.json | 1 + apps/data-types.md | 1 + 2 files changed, 2 insertions(+) diff --git a/_raml/apps/carts/examples/post_carts_cartid_coupon_response.json b/_raml/apps/carts/examples/post_carts_cartid_coupon_response.json index 4cfb0f1e5..fc48f7dc6 100644 --- a/_raml/apps/carts/examples/post_carts_cartid_coupon_response.json +++ b/_raml/apps/carts/examples/post_carts_cartid_coupon_response.json @@ -156,6 +156,7 @@ "couponLineItem": { "couponLineItemId": "5858F55B-0C82-4C2C-A435-D5809AB3C878", "couponCampaignId": "5936D13B-4C3A-6CC4-233F-AC17320912BE", + "couponCode": "KDM38Q", "lineItemPrice": { "taxType": "NONE", "formatted": "-12.99 €", diff --git a/apps/data-types.md b/apps/data-types.md index a68a7646d..812c9a964 100644 --- a/apps/data-types.md +++ b/apps/data-types.md @@ -293,6 +293,7 @@ ePages Now only! | - | - | - | | couponLineItemId | string | The unique identifier of the coupon line item. | | couponCampaignId | string | The unique identifier of the campaign the coupon belongs to. | +| couponCode | string | The coupon code that was redeemed. | | lineItemPrice | object of [price](page:apps-data-types#price) | The price of the line item (`singleItemPrice` multiplied by `quantity`). | | validationErrors | array of error strings | The error that occurred when redeeming a coupon for this cart. Can be one of *LineItemsSubTotalTooSmall*, *CouponIsInvalidated*, *ValidCouponCountReached*, *CouponNotEffective*, *PaymentMethodMisMatch*, *ShippingMethodMisMatch*, *ProductMisMatch*.