novinzodevelopers
API referenceCore for pluginsPrice adjustment

Update Plan

POST/api/price-adjustment

Update the Price Adjustment Plan: replace caller's items, re-sign, return new PAPL JWT.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

currentPriceAdjustmentPlan?string|null|null
cart*
instructions*array<|>
buyerInputs?array<>

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/price-adjustment" \  -H "Content-Type: application/json" \  -d '{    "cart": {      "items": [        {          "variantId": "string",          "productName": "string",          "variantName": "string",          "pricePerUnitWhenAdded": {            "amountMinorUnits": "string",            "currency": "AED"          },          "pricePerUnit": {            "amountMinorUnits": "string",            "currency": "AED"          },          "quantity": 1,          "imageUrl": "string",          "addedAt": "string"        }      ]    },    "instructions": [      {        "type": "discount",        "actorAdjustmentId": "string",        "metadata": {},        "amountInMinorUnits": "string"      }    ]  }'
"string"