Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Weavr Spend Controls API

Manage spend rules and authorisation forwarding to approve or reject card payments in real time.

Weavr Spend Controls API is one of 43 APIs that Weavr publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Spend Controls. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 4 operations across 1 path, and defines 15 schemas. It is described by OpenAPI 3.1.0, at version v3.

Requests are made against a single base URL, https://sandbox.weavr.io/multi/backoffice.

4 operations 1 paths 15 schemas 1 DELETE1 GET1 PATCH1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v3
Base URL
https://api.weavr.io/multi
Authentication
API Key, HTTP Bearer
Contact
Resource Areas
1

Authentication & Security 2

Weavr Spend Controls API declares 2 security schemes for authenticating requests. An API key is passed in the header as api-key (api_key). It accepts HTTP bearer tokens (JWT) (auth_token).

  • api_key — The API Key representing your Multi account.
  • auth_token — The authentication token representing the user. This will be included in the login response object.

Paths & Operations 4

Across 1 path, the API surfaces 4 operations — 1 DELETE, 1 GET, 1 PATCH, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Spend Controls 4

Manage spend rules and authorisation forwarding to approve or reject card payments in real time.

GET
/managed_cards/{id}/spend_rules
Get all spend rules for a managed card
managedCardSpendRulesGet 1 param → 200400401403404429500503
POST
/managed_cards/{id}/spend_rules
Create spend rules for a managed card
managedCardSpendRulesCreate 2 params body → 204400401403404409429500
PATCH
/managed_cards/{id}/spend_rules
Update spend rules for a managed card
managedCardSpendRulesUpdate 2 params body → 204400401403404409429500
DELETE
/managed_cards/{id}/spend_rules
Delete all spend rules for a managed card
managedCardSpendRulesDelete 1 param → 204400401403404429500503

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are AllLevelSpendRules (17 properties), CommonLevelSpendRules (12 properties), SpendLimit (3 properties), CurrencyAmount (2 properties). Each schema is shown below with its type and property counts.

CurrencyAmount
object
The object representing a monetary amount in a particular currency.
2 properties 2 required
SpendLimit
object
3 properties 2 required
BaseCardLevelSpendRules
CommonLevelSpendRules
object
12 properties
AllLevelSpendRules
object
17 properties
SyntaxError
object
Is returned as part of an HTTP error response whenever a syntax error is detected. A list of the fields together with their syntax error will be provided.
1 property
CardLevelSpendRules
IdentityLevelSpendRules
UpdateCardLevelSpendRules
SpendLimitInterval
string
The time period for which the spendLimit is valid. - DAILY: starting from 00:00:00 UTC of current day to 23:59:59 UTC of current day - WEEKLY: 00:00:00 UTC Mon…
Currency
string
The currency expressed in ISO-4217 code. Example: GBP, EUR, USD.
ProfileLevelSpendRules
SpendLimitUpdateMethod
string
The spend limit update method to apply. Currently supported: - OVERWRITE: (default option if nothing selected). Overwrites the previous values for the spendLim…
Error
object
2 properties
RolloverPolicy
object
The rollover policy will dictate how Weavr handles any eventual overspending. This is possible if a merchant clears more funds than authorised, or when a merch…
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

weavr-spend-controls-api-openapi.yml Raw ↑

Other APIs Weavr publishes across the network.

Weavr Access Token API
Weavr Access Tokens API
Weavr Accounts API
Weavr Additional Factors API
Weavr Authentication Factors API
Weavr Authorised Signatories API
Weavr Authorised Users API
Weavr Buyer Authorised Users API
Weavr Buyers API
Weavr Card Payments API
Weavr Cards API
Weavr Confirmation Challenges API