v1
latestOpenAPI 3.1.02026-07-24111224223.3 KBDraft Contracts
Updates a draft contract
Replaces the draft contract identified by draft_contract_id with the supplied payload. The body shape matches POST /draft-contracts — items and external_references on the existing record are fully replaced. Returns 404 if the id is not a draft contract in the organization.
put/draft-contracts/{draft_contract_id}
Request body
Example request
{
"external_references": [
{
"type": "xyzSystemId",
"id": "234",
"url": "https://xyzsystempage.com/ids/234"
}
],
"name": "Acme Corp - Annual subscription",
"amount": {
"amount": "1.01",
"currency": "USD"
},
"items": [
{
"price": {
"amount": {
"amount": "1.01",
"currency": "USD"
},
"interval_months": 1
},
"quantity": 1,
"discount": {
"amount_off": {
"amount": "1.01",
"currency": "USD"
}
}
}
]
}Response
OK
Example response
{
"external_references": [
{
"type": "xyzSystemId",
"id": "234",
"url": "https://xyzsystempage.com/ids/234"
}
],
"amount": {
"amount": "1.01",
"currency": "USD"
},
"items": [
{
"price": {
"amount": {
"amount": "1.01",
"currency": "USD"
},
"interval_months": 1
},
"discount": {
"amount_off": {
"amount": "1.01",
"currency": "USD"
}
}
}
]
}