Create account limit

Use case

In this example, we will review how to set up an account limit and apply it to the particular account.

Use case data
API parameters with values

The account limit type that was created in the previous call. The account scope, monthly, per-currency limit.

"limitTypeId": "ID-1002"n

The current account id to which the account limit is going to be applied.

"accountId": "ID-1279"

The account limit amount is 10000 EUR.

"amount": {
    "amount": "10000",
    "currencyCode": "EUR"
  }

Sample API call

To create a new account limit, make the following API call.

https://account-api.sandbox.tuumplatform.com/api/v2/accounts/limits

See more information about the create account limit endpoint in the Tuum developer portal.

Create account limit

POST https://account-api.sandbox.tuumplatform.com/api/v2/accounts/limits

See more information about this endpoint in the Tuum developer portal.

Sample request

Below is an example request body of the API call for creating an account limit.

{
  "limitTypeId": "ID-1002",
  "accountId": "ID-1279",
  "amount": {
    "amount": "10000",
    "currencyCode": "EUR"
  }
}

Sample response

Below you find an example response body to the API call above.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": {
        "accountLimitId": "ID-1445",
        "limitTypeId": "ID-1002",
        "accountId": "ID-1279",
        "ownerPersonId": null,
        "userPersonId": null,
        "amount": {
            "amount": 10000.00,
            "currencyCode": "EUR"
        },
        "validityRange": {
            "endTime": null,
            "startTime": "2023-07-19T14:05:43.241Z"
        },
        "editable": true
    }
}

Result

A new account limit ID-1445 was created on the current account ID-1279.

Last updated

Was this helpful?