POST
/
v2
/
contracts
/
edit
Edit a contract
curl --request POST \
  --url https://api.metronome.com/v2/contracts/edit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "13117714-3f05-48e5-a6e9-a66093f13b4d",
  "contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
  "add_overrides": [
    {
      "type": "MULTIPLIER",
      "starting_at": "2024-11-02T00:00:00Z",
      "product_id": "d4fc086c-d8e5-4091-a235-fbba5da4ec14",
      "multiplier": 2,
      "priority": 100
    }
  ],
  "add_scheduled_charges": [
    {
      "product_id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
      "schedule": {
        "schedule_items": [
          {
            "timestamp": "2020-02-15T00:00:00.000Z",
            "unit_price": 1000000,
            "quantity": 1
          }
        ]
      }
    }
  ]
}'
{
  "data": {
    "id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Contract and customer IDs and fields to update

The body is of type object.

Response

Success

The response is of type object.