Create adjustments

Creates one or more adjustments.

Mandatory Fields (each adjustment):

  • LineItemId - links the adjustment to a specific line item
  • AdjustmentType and AdjustmentAmount - both required together when applying an adjustment

Required Fields:

  • cartId (route) - required
  • adjustmentLineItems (body) - must not be null or empty

Behavior

  • The body must be a non-empty array; an empty or null list returns 400 Bad Request.
  • Adjustments are applied to the referenced line items and the cart is re-priced asynchronously (202 Accepted while processing).
  • Access to the product configuration is enforced by the configuration access filter (403 Forbidden when not permitted).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The cart's unique identifier

Body Params

The adjustment line items

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

Adjustments created successfully.

202

Adjustment request accepted and is being processed.

500

An unexpected error occurred while creating adjustments.

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