Skip to main content
DELETE
/
milestone-cancel
Cancel a proposed milestone
curl --request DELETE \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/milestone-cancel \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "status": 200,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "escrow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "milestone_index": 1,
    "title": "Design mockups",
    "description": "Deliver Figma screens for all main flows",
    "amount": 150000,
    "due_date": "2026-05-01",
    "status": "proposed",
    "initiator_approved": true,
    "counterparty_approved": true,
    "changes_note": "Please split into two separate milestones",
    "release_tx_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "accepted_at": "2023-11-07T05:31:56Z",
    "completed_at": "2023-11-07T05:31:56Z",
    "released_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Query Parameters

milestone_id
string<uuid>
required

Response

Milestone cancelled

success
boolean
Example:

true

status
integer
Example:

200

data
object