Skip to content

Update spend rules for a managed card

Request

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.

Security
auth_token and api_key
Headers
idempotency-refstring

A unique call reference generated by the caller that, taking into consideration the payload as well as the operation itself, helps avoid duplicate operations. Idempotency reference uniqueness is maintained for at least 24 hours.

Bodyapplication/json
Array [
pathParamsobject
requestBodyobject(UpdateCardLevelSpendRules)
]
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"
      }
    }
  ]'

Responses

Success - returning bulk process

Bodyapplication/json
bulkIdstring
operationCountinteger
pathstring
Response
{ "bulkId": "string", "operationCount": 0, "path": "string" }