Skip to main content
POST
/
contracts
/
{id}
/
fulfill
Fulfill Condition
curl --request POST \
  --url https://api.example.com/contracts/{id}/fulfill \
  --header 'Content-Type: application/json' \
  --data '
{
  "conditionId": "<string>"
}
'

Request

conditionId
string
required
The ID of the condition to mark as fulfilled.
curl -X POST https://api.midasprotocol.org/contracts/contract-uuid/fulfill \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "conditionId": "delivery" }'

Response

Returns the updated contract. When all conditions are fulfilled, the contract status changes to FULFILLED and escrow is released to the counterparty.
{
  "id": "uuid", "status": "ACTIVE",
  "conditions": [
    { "id": "delivery", "fulfilled": true, "fulfilledAt": "..." },
    { "id": "quality", "fulfilled": false }
  ]
}