Add an incentive

Applies a new incentive to a cart.

Mandatory Fields:

  • incentive.Codes - must not be null or empty; all entries must be non-blank strings

Required Fields:

  • cartId (route) - required
  • incentive (body) - required

Responses

  • 200 OK: the incentive was applied to the cart.
  • 400 Bad Request: the request payload is invalid.
  • 500 Internal Server Error: an unexpected error occurred.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The cart identifier

Body Params

The incentive

Model for applying, updating or removing incentive codes on a cart.

Codes
array of strings | null

Gets or sets the incentive codes.

Codes
Ids
array of strings | null

Gets or sets the ids of Line Items or Summary Groups.

Ids
boolean

Gets or sets a value indicating whether this instance is summary groups.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses
200

OK

500

Internal Server Error

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json