Submit the details to update the spend rules of Managed Cards.
The bulkId returned in the response can subsequently be used to launch the updating of Managed Card spend rules process through Execute Bulk Process. A submitted bulk process can be managed (executed, accessed, paused, resumed and cancelled) by any other Authorised User of the same identity of the user that submits the details.
The status of the bulk process after execution of this operation is set to ‘SUBMITTED’. The execution of the bulk process is launched through the Execute bulk process operation.
The submission of data for a bulk process does not expire but it can be cancelled through Cancel Bulk Process.
The system is configured to accept bulk requests to process up to a maximum of 10,000 bulk operations.
Each spend rules update operation in this bulk process is processed via the Update a Managed Card operation in the Multi API.
- Weavr Sandbox Environmenthttps://sandbox.weavr.io/multi/backoffice/bulks/managed_cards/_id_/spend_rules
- Mock serverhttps://api.weavr.io/_mock/products/multi-backoffice/openapi/bulks/managed_cards/_id_/spend_rules
curl -i -X PATCH \
https://sandbox.weavr.io/multi/backoffice/bulks/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 '[
{
"pathParams": {
"_id_": "string"
},
"requestBody": {
"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": 1,
"value": {
"currency": "str",
"amount": 0
},
"interval": "DAILY"
}
],
"minTransactionAmount": 0,
"maxTransactionAmount": 0,
"updateSpendLimitMethod": "OVERWRITE"
}
}
]'{ "bulkId": "string", "operationCount": 0, "path": "string" }