Skip to main content
POST
/
v1
/
contracts
/
customerCommits
/
updateEndDate
Update the commit end date
curl --request POST \
  --url https://api.metronome.com/v1/contracts/customerCommits/updateEndDate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "13117714-3f05-48e5-a6e9-a66093f13b4d",
  "commit_id": "6162d87b-e5db-4a33-b7f2-76ce6ead4e85",
  "access_ending_before": "2020-01-01T00:00:00.000Z",
  "invoices_ending_before": "2020-01-01T00:00:00.000Z"
}'
{
  "data": {
    "id": "6162d87b-e5db-4a33-b7f2-76ce6ead4e85"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Update the access or invoice end date of a commit

customer_id
string<uuid>
required

ID of the customer whose commit is to be updated

commit_id
string<uuid>
required

ID of the commit to update. Only supports "PREPAID" commits.

access_ending_before
string<date-time>

RFC 3339 timestamp indicating when access to the commit will end and it will no longer be possible to draw it down (exclusive). If not provided, the access will not be updated.

invoices_ending_before
string<date-time>

RFC 3339 timestamp indicating when the commit will stop being invoiced (exclusive). If not provided, the invoice schedule will not be updated.

Response

Success

data
object
required