API/Check an action
v1.0.0-beta.mdGet API keys
Mandates

Check an action

POST /functions/v1/mandate-check

Advisory only. No lock, nothing reserved, nothing debited, and under concurrency it can return a false positive. Never treat an allowed check as authorisation to act.

Never treat an allowed check as authorisation to act. If you are going to act, call consume. Check exists for planning, and for showing a person what would happen.

Body

FieldTypeNotes
mandate_iduuid, required
scopestring, requiredOne of the eight, matched exactly
amountintegerMinor unit; only purchase and payment
currencystringISO-4217
action_refstringYour own reference for the planned action
contextobjectmerchant, category, country — matched against the constraints

Requires x-sidaxis-timestamp and x-sidaxis-nonce. Rate limited.

curl -X POST https://api.sidaxis.com/functions/v1/mandate-check \
  -H "x-sidaxis-api-key: sk_live_..." \
  -H "x-sidaxis-timestamp: 1789564880" \
  -H "x-sidaxis-nonce: c3a1f89b20" \
  -H "content-type: application/json" \
  -d '{
    "mandate_id": "mdt_a91f3c",
    "scope": "payment",
    "amount": 18900,
    "currency": "USD",
    "context": { "merchant": "mrc_9f2c", "category": "travel", "country": "US" }
  }'

Response — always 200

Allowed
{ "allowed": true, "remaining": 31100, "period_resets_at": "2026-09-17T03:00:00Z" }
Refused
{
  "allowed": false,
  "reason": "scope_mismatch",
  "developer_message": "Mandate mdt_a91f3c carries [payment]; requested purchase.",
  "user_message": "Your assistant is not allowed to do this.",
  "step_up_available": true,
  "remaining": 31100,
  "period_resets_at": "2026-09-17T03:00:00Z"
}
Sidaxis is the human authorisation layer. It never moves money, holds funds or settles. The machine-readable contract is openapi.yaml.
Sidaxis API documentationQuickstartAuthenticationHosted or headlessSandbox and productionIdempotencyRate limitsErrors and refusalsField namesWebhooksAssuranceThe document ruleAlias availabilityMerchant themeMCP serverCompatibilityStatusRoadmapChangelogIdentityEnroll an identityRecognise a personDisclose an attributeMandatesThe eight scopesIssue a mandateCheck an actionConsume a mandateRead a mandateRevoke a mandateReceiptsRead a merchant's receiptsVerify a receiptHosted sessionsCreate a hosted sessionConsume a hosted sessionOne Face for agents