POST
/
v1
/
c
/
contract
/
{contract_id}
/
upgrade
curl --request POST \
  --url http://127.0.0.1:8080/v1/c/contract/{contract_id}/upgrade \
  --header 'Content-Type: application/json' \
  --header 'wb-key: <api-key>' \
  --data '{
  "downgrade_allowed": true,
  "upgrade_configuration": {
    "activation": {
      "type": "next_cycle"
    },
    "currency": "usd",
    "cycle": "once",
    "discount_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
    "plan_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
    "pricing_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
    "unit_configuration": {},
    "unit_count_configuration": {},
    "upgrade_strategy": "new_plan"
  }
}'
"Cont_cc871a3a-2b38-4689-a32d-14bf2e62b1ae"

Authorizations

wb-key
string
header
required

Path Parameters

contract_id
string
required

Id of the Contract

Body

application/json

Upgrade configuration used when WbCustomer is performing a Contract Upgrade for a Customer

Response

200 - application/json

Upgraded

The response is of type string.