Saltar al contenido principal
PATCH
/
v1
/
limits
Update transaction limits
curl --request PATCH \
  --url http://localhost:4011/v1/limits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "accountId": "01989f9e-6508-79f8-9540-835be49fbd0d",
  "amount": 5000,
  "periodType": 1,
  "limitType": 1
}'
{
  "accountId": "01989f9e-6508-79f8-9540-835be49fbd0d",
  "transactionType": 1,
  "periodType": 1,
  "limitType": 1,
  "amount": 1000,
  "maxAmount": 5000,
  "status": 1
}

Authorizations

Authorization
string
header
required

JWT token obtained from the authentication endpoint

Body

application/json
accountId
string<uuid>
required

Account ID to update limits for

Example:

"01989f9e-6508-79f8-9540-835be49fbd0d"

amount
number
required

New limit amount

Example:

5000

periodType
enum<integer>
required

Period type enumeration (1- DAILY, 2- NIGHTLY, 3- MONTHLY).

Available options:
1,
2,
3
limitType
enum<integer>
required

Transaction limit type enumeration (1- TRANSACTION, 2- PERIOD).

Available options:
1,
2

Response

Transaction limits updated successfully

accountId
string<uuid>

Account ID

Example:

"01989f9e-6508-79f8-9540-835be49fbd0d"

transactionType
enum<integer>

Transaction type enumeration (1- Pix).

Available options:
1
periodType
enum<integer>

Period type enumeration (1- DAILY, 2- NIGHTLY, 3- MONTHLY).

Available options:
1,
2,
3
limitType
enum<integer>

Transaction limit type enumeration (1- TRANSACTION, 2- PERIOD).

Available options:
1,
2
amount
number

Current limit amount

Example:

1000

maxAmount
number

Maximum allowed limit

Example:

5000

status
integer

Limit status (1 = active)

Example:

1

I