CartClient#addOfferCodeToCart(cartId, offerCode, options);
The following operations allow you to add and remove offer codes on a cart.
Parameter | Type | Required? | Description |
---|---|---|---|
|
|
✅ |
The id of the cart. |
|
|
✅ |
The offer code to add to the cart. |
|
❌ |
Options passed to the HTTP request call to customize the request configuration. |
This function returns a AddCodeToCartResponse.
Parameter | Type | Required? | Description |
---|---|---|---|
|
|
✅ |
The id of the cart. |
|
|
✅ |
The offer code to remove from the cart. |
|
❌ |
Options passed to the HTTP request call to customize the request configuration. |
This function returns a Cart.