PUT - Update Card Limit

Create the spend rules (Card Limit) associated with the card identified by the cardId path parameter

Update Card Limit


End point

https://api.up.money/cards/limits/{cardId}

Headers

Security

REQUEST BODY SCHEMA: application/json

Add YWJjMTIzIQ== in x-secret in headers.

Header parameter name: x-secret


The authentication token representing the user. This will be included in the login response object as token.

Header parameter name: Authorization-key


Path Parameters



Sample Request


curl --location --request PUT 'https://api.up2.money/cards/limits/{cardId}' \
--header 'x-secret: YWJjMTIzIQ==' \
--header 'Authorization-key: YOUR_AUTHORIZATION_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "data": {
        "allowedMerchantCategories": [
            "string"
        ],
        "blockedMerchantCategories": [
            "string"
        ],
        "allowedMerchantIds": [
            "string"
        ],
        "blockedMerchantIds": [
            "string"
        ],
        "allowContactless": true,
        "allowAtm": true,
        "allowECommerce": true,
        "allowCashback": true,
        "allowCreditAuthorisations": true,
        "spendLimit": [
            {
                "value": {
                    "currency": "USD",
                    "amount": 100
                },
                "interval": "DAILY"
            }
        ],
        "minTransactionAmount": 500,
        "maxTransactionAmount": 0
    }
}'


Sample Response


No content

Response Status


204 Success - No Content.

400 Bad Request Error - Your request is invalid.

errorCode: Enum: "REQUIRED" "HAS_TEXT" "REQUIRES" "SIZE" "RANGE" "IN" "NOT_IN" "REGEX" "EXACTLY" "AT_LEAST" "AT_MOST" "ALL_OR_NONE"

401 Unauthorized - Your credentials or access token are invalid.

403 Forbidden - Access to the requested resource or action is forbidden.

404 Not found - The requested resource couldn't be found.

409 Conflict

errorCode: Enum: "SPEND_LIMIT_CURRENCY_DIFFERENT_FROM_CARD_CURRENCY" "SPEND_LIMIT_NOT_SUPPORTED_FOR_PREPAID_MODE_CARD" "SPEND_LIMIT_DUPLICATE_INTERVAL" "SPEND_LIMIT_AMOUNT_INVALID" "SPEND_RULE_ALREADY_SET"

429 Too many requests.

500 Internal Server Error - There is a problem with the server. Please try again later.

503 Service Unavailable - We're temporarily offline for maintenance. Please try again later.

Last updated