Policies
Enable policy
https://api.firstleeward.com/v0/policies/:id/enableEnables a policy so it applies to transactions again. Enabling an already-enabled policy returns it unchanged.
Authorizations
Authorizationstring · headerrequiredAPI key as Bearer token, e.g. Bearer YOUR_API_KEY
Headers
Leeward-Versionenum<string>requiredAPI version (YYYY-MM-DD). Available option: 2026-09-18
Idempotency-KeystringUnique key for safely retrying this request. Up to 255 characters; we recommend a UUIDv4. The first request executes and its response is cached; subsequent requests with the same key replay the cached response (24h retention).
Path Parameters
idstring<uuid>requiredPolicy ID
Response
200Policy resource
Option 1 · MerchantRestrictionPolicy
idstringrequiredPolicy ID. A UUID for your policies; a stable identifier for platform policies.
scopeobjectrequiredWhere the policy attaches.
Show child attributes
Option 1 · Project
typestringrequiredOption 2 · User
typestringrequiredidstring<uuid>requiredOption 3 · Card
typestringrequiredidstring<uuid>requiredstatusstringrequiredACTIVEDISABLEDnamestringrequiredHuman-readable label.
createdAtstringrequiredISO 8601 creation timestamp.
updatedAtstringrequiredISO 8601 last-update timestamp.
typestringrequiredconfigobjectrequiredBlock transactions whose merchant matches the criteria.
Show child attributes
matchobjectrequiredShow child attributes
Option 1 · Mcc
dimensionstringrequiredcodesstring[]requiredOption 2 · MerchantCountry
dimensionstringrequiredcountriesstring[]requiredOption 2 · ChannelRestrictionPolicy
idstringrequiredPolicy ID. A UUID for your policies; a stable identifier for platform policies.
scopeobjectrequiredWhere the policy attaches.
Show child attributes
Option 1 · Project
typestringrequiredOption 2 · User
typestringrequiredidstring<uuid>requiredOption 3 · Card
typestringrequiredidstring<uuid>requiredstatusstringrequiredACTIVEDISABLEDnamestringrequiredHuman-readable label.
createdAtstringrequiredISO 8601 creation timestamp.
updatedAtstringrequiredISO 8601 last-update timestamp.
typestringrequiredconfigobjectrequiredBlock transactions on the listed channels.
Show child attributes
channelsstring[]requiredATMPOSECOMMERCEVISA_DIRECTOption 3 · TransactionAmountLimitPolicy
idstringrequiredPolicy ID. A UUID for your policies; a stable identifier for platform policies.
scopeobjectrequiredWhere the policy attaches.
Show child attributes
Option 1 · Project
typestringrequiredOption 2 · User
typestringrequiredidstring<uuid>requiredOption 3 · Card
typestringrequiredidstring<uuid>requiredstatusstringrequiredACTIVEDISABLEDnamestringrequiredHuman-readable label.
createdAtstringrequiredISO 8601 creation timestamp.
updatedAtstringrequiredISO 8601 last-update timestamp.
typestringrequiredcurrencystringrequiredCurrency of the policy's amounts - the billing currency of the project's card program.
configobjectrequiredCap the amount of a single transaction.
Show child attributes
maxAmountnumberrequiredAmount in the project's billing currency.
Option 4 · SpendLimitPolicy
idstringrequiredPolicy ID. A UUID for your policies; a stable identifier for platform policies.
scopeobjectrequiredWhere the policy attaches.
Show child attributes
Option 1 · Project
typestringrequiredOption 2 · User
typestringrequiredidstring<uuid>requiredOption 3 · Card
typestringrequiredidstring<uuid>requiredstatusstringrequiredACTIVEDISABLEDnamestringrequiredHuman-readable label.
createdAtstringrequiredISO 8601 creation timestamp.
updatedAtstringrequiredISO 8601 last-update timestamp.
typestringrequiredcurrencystringrequiredCurrency of the policy's amounts - the billing currency of the project's card program.
configobjectrequiredCap cumulative spend over a calendar window.
Show child attributes
windowobjectrequiredShow child attributes
typestringrequiredperiodstringrequiredDAILYWEEKLYMONTHLYYEARLYLIFETIMEmaxAmountnumberrequiredAmount in the project's billing currency.
filterobjectShow child attributes
channelsstring[]ATMPOSECOMMERCEVISA_DIRECTmerchantobjectShow child attributes
Option 1 · Mcc
dimensionstringrequiredcodesstring[]requiredOption 2 · MerchantCountry
dimensionstringrequiredcountriesstring[]requiredOption 5 · AuthorizationCountLimitPolicy
idstringrequiredPolicy ID. A UUID for your policies; a stable identifier for platform policies.
scopeobjectrequiredWhere the policy attaches.
Show child attributes
Option 1 · Project
typestringrequiredOption 2 · User
typestringrequiredidstring<uuid>requiredOption 3 · Card
typestringrequiredidstring<uuid>requiredstatusstringrequiredACTIVEDISABLEDnamestringrequiredHuman-readable label.
createdAtstringrequiredISO 8601 creation timestamp.
updatedAtstringrequiredISO 8601 last-update timestamp.
typestringrequiredconfigobjectrequiredCap the number of transactions over a calendar window.
Show child attributes
windowobjectrequiredShow child attributes
typestringrequiredperiodstringrequiredDAILYWEEKLYMONTHLYYEARLYLIFETIMEmaxCountintegerrequiredMaximum number of transactions in the window.
filterobjectShow child attributes
channelsstring[]ATMPOSECOMMERCEVISA_DIRECTmerchantobjectShow child attributes
Option 1 · Mcc
dimensionstringrequiredcodesstring[]requiredOption 2 · MerchantCountry
dimensionstringrequiredcountriesstring[]required404Policy not found
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired