POST
/
contract
/
revise
/
{contractId}
curl --request POST \
  --url https://connect.withvayu.com/contract/revise/{contractId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "plan": {
    "name": "<string>",
    "description": "<string>",
    "products": [
      {
        "name": "<string>",
        "description": "<string>",
        "variants": [
          {
            "meterId": "<string>",
            "pricing": {
              "pricingModel": "PerUnit",
              "priceConfiguration": {
                "price": 1,
                "chunkSize": 1
              }
            },
            "settings": {
              "productType": "Credit",
              "productConfiguration": {
                "shouldCreateSeparateInvoice": false
              }
            },
            "description": "<string>",
            "name": "<string>"
          }
        ],
        "basePrice": 1,
        "commitment": {
          "amount": 1,
          "type": "Price",
          "replenishmentInterval": 123
        },
        "currencyCommitment": 123,
        "paymentTerm": "Postpayment",
        "billingInterval": "Monthly",
        "accumulationInterval": 123,
        "proRata": true,
        "erpMetadata": {
          "erpId": "<string>",
          "erpName": "<string>",
          "displayId": "<string>"
        },
        "rateMultiplier": 123,
        "isPeriodicVariants": false
      }
    ],
    "billingData": {
      "billingInterval": "Monthly",
      "duration": 1,
      "paymentTerm": "Postpayment",
      "autoRenewal": false,
      "proRated": true
    },
    "status": "Active",
    "basedFromPlanId": "<string>",
    "trial": {
      "duration": 123,
      "type": "Weeks",
      "free": false
    },
    "purchaseOrder": "<string>",
    "rawSyncData": {}
  },
  "startDate": "2023-11-07T05:31:56Z"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contractId
string
required

Body

application/json
plan
object
required
startDate
string
required

Response

200
_mintlify/placeholder

RequestSuccess