adjustments

Create an adjustment

Changed on

Create an adjustment

post/adjustments

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/adjustments
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "name": "Additional service",
      "currency_code": "EUR",
      "amount_cents": 1500,
      "distribute_discount": true,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    }
  }
}

Response

The created adjustment object

Changes

    • breaking

      request property / was restricted to a list of enum values

    • info

      added the new optional request property //

    • info

      the request property default value adjustments was removed

    • info

      added the new adjustments enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status