Manage authentication for your users.
- Create spend rules for a managed card
Weavr Multi Product API (3.63.5)
Weavr Multi API provides a simple and flexible way to issue cards and accounts to your customers.
By integrating Weavr Multi API in your application you can embed banking capabilities within your app and provide a seamless experience for your customers.
Authentication
Each request to the Multi API must include an api-key that represents your account. You can obtain an API Key by registering for a Multi account here.
Almost all endpoints require a secondary authentication token auth_token that represents the user for whom the request is being executed.
Managed Accounts are a type of financial instrument offered by Weavr.
They hold funds for their owner, and can be upgraded to IBANs so as to receive and send funds to instruments outside of the Weavr Platform, via Wire Transfers.
Managed accounts can also be used as source and destination instruments in the transfer and send transactions.
Managed Cards are a type of financial instrument offered by Weavr.
You can create virtual or physical cards that are issued to the consumer or corporate identity.
A card created in prepaid mode has its own balance, whereas a card created in debit mode does not have its own balance but taps into the balance of its parent managed account.
- Mock serverhttps://api.weavr.io/_mock/products/multi/openapi/managed_cards/{id}/spend_rules
- Weavr Sandbox Environmenthttps://sandbox.weavr.io/multi/managed_cards/{id}/spend_rules
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.weavr.io/_mock/products/multi/openapi/managed_cards/{id}/spend_rules' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'api-key: YOUR_API_KEY_HERE'Success
Whitelist MCC: A list of allowed merchant category codes (MCCs). If the MCC does not match, then the transaction will be declined. If an MCC is also in the blocked list, the blocked list will take precedence. This field is deprecated - use "cardLevelSpendRules"."allowedMerchantCategories" instead.
Blacklist MCC: A list of disallowed merchant category codes (MCCs). If the MCC matches, then the transaction will be declined. If an MCC is also in the allowed list, the blocked list will take precedence. This field is deprecated - use "cardLevelSpendRules"."blockedMerchantCategories" instead.
Whitelist Merchant Id: A list of allowed merchant IDs. If the Merchant Id does not match, then the transaction will be declined. If a Merchant Id is also provided in the blocked list, the blocked list will take precedence. This field is deprecated - use "cardLevelSpendRules"."allowedMerchantIds" instead.
Blacklist Merchant Id: A list of disallowed merchant IDs. If the Merchant Id matches, then the transaction will be declined. If a Merchant Id is also in the allowed list, the blocked list will take precedence. This field is deprecated - use "cardLevelSpendRules"."blockedMerchantIds" instead.
Whitelist Merchant Country: A list of allowed merchant countries, in ISO 3166-1 alpha-2 format. If the Merchant country does not match, then the transaction will be declined. If a Merchant Country is also provided in the blocked list, the blocked list will take precedence. This field is deprecated - use "cardLevelSpendRules"."allowedMerchantCountries" instead.
Blacklist Merchant Country: A list of disallowed merchant countries, in ISO 3166-1 alpha-2 format. If the Merchant country matches, then the transaction will be declined. If a Merchant Country is also in the allowed list, the blocked list will take precedence. This field is deprecated - use "cardLevelSpendRules"."blockedMerchantCountries" instead.
Indicates if a contactless transaction is allowed on the card. This field is deprecated - use "cardLevelSpendRules"."allowContactless" instead.
Indicates if an ATM Withdrawal transaction is allowed on the card. This field is deprecated - use "cardLevelSpendRules"."allowAtm" instead.
Indicates if an online transaction is allowed on the card. This field is deprecated - use "cardLevelSpendRules"."allowECommerce" instead.
Indicates if a cashback transaction at a physical terminal is allowed on the card. This field is deprecated - use "cardLevelSpendRules"."allowCashback" instead.
Indicates if a the card can receive a credit transaction. This field is deprecated - use "cardLevelSpendRules"."allowCashback" instead.
The minimum transaction amount, in card currency, that is allowed. If the transaction amount is less than this value, then the transaction will be declined. Omit this, or set to 0 if no maximum transaction amount is to be set. This field is deprecated - use "cardLevelSpendRules"."minTransactionAmount" instead.
The maximum transaction amount, in card currency, that is allowed. If the transaction amount is greater than this value, then the transaction will be declined. Omit this, or set to 0 if no maximum transaction amount is to be set. This field is deprecated - use "cardLevelSpendRules"."maxTransactionAmount" instead.
{ "allowedMerchantCategories": [ "string" ], "blockedMerchantCategories": [ "string" ], "allowedMerchantIds": [ "string" ], "blockedMerchantIds": [ "string" ], "allowedMerchantCountries": [ "st" ], "blockedMerchantCountries": [ "st" ], "allowContactless": true, "allowAtm": true, "allowECommerce": true, "allowCashback": true, "allowCreditAuthorisations": true, "minTransactionAmount": 0, "maxTransactionAmount": 0, "spendLimit": [ { … } ], "cardLevelSpendRules": { "allowedMerchantCategories": [ … ], "blockedMerchantCategories": [ … ], "allowedMerchantIds": [ … ], "blockedMerchantIds": [ … ], "allowedMerchantCountries": [ … ], "blockedMerchantCountries": [ … ], "allowContactless": true, "allowAtm": true, "allowECommerce": true, "allowCashback": true, "allowCreditAuthorisations": true, "rolloverPolicy": { … }, "spendLimit": [ … ], "minTransactionAmount": 0, "maxTransactionAmount": 0 }, "profileLevelSpendRules": { "allowedMerchantCategories": [ … ], "blockedMerchantCategories": [ … ], "allowedMerchantIds": [ … ], "blockedMerchantIds": [ … ], "allowedMerchantCountries": [ … ], "blockedMerchantCountries": [ … ], "allowContactless": true, "allowAtm": true, "allowECommerce": true, "allowCashback": true, "allowCreditAuthorisations": true, "rolloverPolicy": { … }, "authForwardingEnabled": true }, "identityLevelSpendRules": { "allowedMerchantCategories": [ … ], "blockedMerchantCategories": [ … ], "allowedMerchantIds": [ … ], "blockedMerchantIds": [ … ], "allowedMerchantCountries": [ … ], "blockedMerchantCountries": [ … ], "allowContactless": true, "allowAtm": true, "allowECommerce": true, "allowCashback": true, "allowCreditAuthorisations": true, "rolloverPolicy": { … }, "minTransactionAmount": 0, "maxTransactionAmount": 0 } }
Whitelist MCC: A list of allowed merchant category codes (MCCs). If the MCC does not match, then the transaction will be declined. If an MCC is also in the blocked list, the blocked list will take precedence.
Blacklist MCC: A list of disallowed merchant category codes (MCCs). If the MCC matches, then the transaction will be declined. If an MCC is also in the allowed list, the blocked list will take precedence.
Whitelist Merchant Id: A list of allowed merchant IDs. If the Merchant Id does not match, then the transaction will be declined. If a Merchant Id is also provided in the blocked list, the blocked list will take precedence.
Blacklist Merchant Id: A list of disallowed merchant IDs. If the Merchant Id matches, then the transaction will be declined. If a Merchant Id is also in the allowed list, the blocked list will take precedence.
Whitelist Merchant Country: A list of allowed merchant countries, in ISO 3166-1 alpha-2 format. If the Merchant country does not match, then the transaction will be declined. If a Merchant Country is also provided in the blocked list, the blocked list will take precedence.
Blacklist Merchant Country: A list of disallowed merchant countries, in ISO 3166-1 alpha-2 format. If the Merchant country matches, then the transaction will be declined. If a Merchant Country is also in the allowed list, the blocked list will take precedence.
Indicates if a cashback transaction at a physical terminal is allowed on the card.
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 merchant clears funds without authorising, resulting in the availableToSpend value to go into negative. Rollover is relative to a spendLimit.interval
The total amount of funds that can be spent using this card, in a given time interval.
The minimum transaction amount, in card currency, that is allowed. If the transaction amount is less than this value, then the transaction will be declined.
- Mock serverhttps://api.weavr.io/_mock/products/multi/openapi/managed_cards/{id}/spend_rules
- Weavr Sandbox Environmenthttps://sandbox.weavr.io/multi/managed_cards/{id}/spend_rules
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.weavr.io/_mock/products/multi/openapi/managed_cards/{id}/spend_rules' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-H 'idempotency-ref: string' \
-d '{
"allowedMerchantCategories": [
"string"
],
"blockedMerchantCategories": [
"string"
],
"allowedMerchantIds": [
"string"
],
"blockedMerchantIds": [
"string"
],
"allowedMerchantCountries": [
"st"
],
"blockedMerchantCountries": [
"st"
],
"allowContactless": true,
"allowAtm": true,
"allowECommerce": true,
"allowCashback": true,
"allowCreditAuthorisations": true,
"rolloverPolicy": {
"rolloverNegative": true
},
"spendLimit": [
{
"startTimestamp": 0,
"value": {
"currency": "str",
"amount": 0
},
"interval": "DAILY"
}
],
"minTransactionAmount": 0,
"maxTransactionAmount": 0
}'No contentRequest
Must be user after a POST, to update individual spend rules associated with the managed card identified by the id path parameter.
Whitelist MCC: A list of allowed merchant category codes (MCCs). If the MCC does not match, then the transaction will be declined. If an MCC is also in the blocked list, the blocked list will take precedence.
Blacklist MCC: A list of disallowed merchant category codes (MCCs). If the MCC matches, then the transaction will be declined. If an MCC is also in the allowed list, the blocked list will take precedence.
Whitelist Merchant Id: A list of allowed merchant IDs. If the Merchant Id does not match, then the transaction will be declined. If a Merchant Id is also provided in the blocked list, the blocked list will take precedence.
Blacklist Merchant Id: A list of disallowed merchant IDs. If the Merchant Id matches, then the transaction will be declined. If a Merchant Id is also in the allowed list, the blocked list will take precedence.
Whitelist Merchant Country: A list of allowed merchant countries, in ISO 3166-1 alpha-2 format. If the Merchant country does not match, then the transaction will be declined. If a Merchant Country is also provided in the blocked list, the blocked list will take precedence.
Blacklist Merchant Country: A list of disallowed merchant countries, in ISO 3166-1 alpha-2 format. If the Merchant country matches, then the transaction will be declined. If a Merchant Country is also in the allowed list, the blocked list will take precedence.
Indicates if a cashback transaction at a physical terminal is allowed on the card.
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 merchant clears funds without authorising, resulting in the availableToSpend value to go into negative. Rollover is relative to a spendLimit.interval
The total amount of funds that can be spent using this card, in a given time interval.
The minimum transaction amount, in card currency, that is allowed. If the transaction amount is less than this value, then the transaction will be declined.
The maximum transaction amount, in card currency, that is allowed. If the transaction amount is greater than this value, then the transaction will be declined.
The spend limit update method to apply. Currently supported:
- OVERWRITE: (default option if nothing selected). Overwrites the previous values for the spendLimit object i.e. sets new limits
- INCREMENT : This will increase the existing value of the spend limit by the amount input the value field. If used in conjunction with an ALWAYS interval, this can be used to increment a spend limit on a periodic basis (controlled by you, e.g. monthly), and means that any 'unused' balance from the previous period will still available to spend. See examples in our documentation
- Mock serverhttps://api.weavr.io/_mock/products/multi/openapi/managed_cards/{id}/spend_rules
- Weavr Sandbox Environmenthttps://sandbox.weavr.io/multi/managed_cards/{id}/spend_rules
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.weavr.io/_mock/products/multi/openapi/managed_cards/{id}/spend_rules' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-H 'idempotency-ref: string' \
-d '{
"allowedMerchantCategories": [
"string"
],
"blockedMerchantCategories": [
"string"
],
"allowedMerchantIds": [
"string"
],
"blockedMerchantIds": [
"string"
],
"allowedMerchantCountries": [
"st"
],
"blockedMerchantCountries": [
"st"
],
"allowContactless": true,
"allowAtm": true,
"allowECommerce": true,
"allowCashback": true,
"allowCreditAuthorisations": true,
"rolloverPolicy": {
"rolloverNegative": true
},
"spendLimit": [
{
"startTimestamp": 0,
"value": {
"currency": "str",
"amount": 0
},
"interval": "DAILY"
}
],
"minTransactionAmount": 0,
"maxTransactionAmount": 0,
"updateSpendLimitMethod": "OVERWRITE"
}'No contentLinked Accounts are external bank accounts that users connect to their profiles within the Weavr Platform.
These accounts allow users to link their existing bank accounts, held at external financial institutions, to the Weavr Platform, enabling secure and efficient transfer of funds between their own accounts.
Linked Accounts are designed to streamline the process of moving money between a user’s various bank accounts, providing a convenient and integrated way to manage personal finances across different financial institutions.