Skip to content

Developers · Raw Markdown

Deals

A Deal is the immutable snapshot of accepted terms. It is not the same event as verified closure.

Resources

  • GET https://api.breezewish.com/v1/deals/{id} scope deals:read
  • POST https://api.breezewish.com/v1/deals/{id}/approve scope deals:approve, autonomy COMMIT. Humans also complete step-up.
  • POST https://api.breezewish.com/v1/deals/{id}/checkout scope deals:approve, autonomy COMMIT
  • MCP get_deal, accept_offer

Losing Offers are rejected because another Deal was accepted.

Schema

https://api.breezewish.com/schemas/v1/deal.json

Common errors

CodeMeaning
UNAUTHENTICATEDMissing or invalid credential.
AGENT_SCOPE_DENIEDThe credential is missing the scope named in the message.
DELEGATION_LIMITAutonomy is below the operation. COMMIT is required to accept, approve, or check out. TRANSACT is required to confirm closure.
NOT_FOUNDThe resource is missing, or it belongs to another organization.
IDEMPOTENCY_CONFLICTThe same Idempotency-Key was reused with a different body.
RATE_LIMITEDThe caller exceeded the public or authenticated limit.