Contracts
Permanently cancels a pending milestone
Changed onPermanently forfeits a pending milestone allocation on a FULL contract without redistributing it or automatically issuing a refund. A nonzero allocation creates a linked credit memo; zero allocations do not. Retrying the saved effective_date is a no-op, while a different date conflicts. Completed milestones must be reversed before cancellation.
put/contracts/{contract_id}/milestones/{milestone_ref}/cancellation
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
contract_idstring uuid required
UUID of the contract that owns the milestone.
milestone_refstring required
Milestone UUID or stable key. A key must identify exactly one milestone in the contract.
Request body
Response
The permanently cancelled milestone.
Example response
{
"allocated_amount": {
"amount": "1.01",
"currency": "USD"
},
"amount": {
"amount": "1.01",
"currency": "USD"
},
"external_references": [
{
"type": "xyzSystemId",
"id": "234",
"url": "https://xyzsystempage.com/ids/234"
}
]
}Changes
- info
endpoint added
- info