Skip to main content
POST
/
v1
/
contracts
/
customerCredits
/
updateEndDate
Update the credit end date
curl --request POST \
  --url https://api.metronome.com/v1/contracts/customerCredits/updateEndDate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "13117714-3f05-48e5-a6e9-a66093f13b4d",
  "credit_id": "6162d87b-e5db-4a33-b7f2-76ce6ead4e85",
  "access_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 end date of a credit

customer_id
string<uuid>
required

ID of the customer whose credit is to be updated

credit_id
string<uuid>
required

ID of the commit to update

access_ending_before
string<date-time>
required

RFC 3339 timestamp indicating when access to the credit will end and it will no longer be possible to draw it down (exclusive).

Response

Success

data
object
required