Skip to main content

Wallet Limit Update

The wallet limit update allows changing the postpaid credit limit value of an existing wallet.

Request

ENDPOINT
/wallet/WALLET_KEY/wallet_limit/WALLET_LIMIT_KEY
METHOD
PATCH

Path Parameters

FieldTypeDescriptionCharacters
wallet_key *uuidv4Unique wallet key in UUID v4 format36
wallet_limit_key *uuidv4Unique wallet limit key in UUID v4 format36
Request Body
{
"limit_amount": 10000.00
}

Request Body Params

FieldTypeDescriptionCharacters
limit_amount *floatNew postpaid credit limit amount-
Note
  • The new limit value must be greater than or equal to the used limit (used_limit)
  • Only limits of type postpaid_credit_limit can be updated
  • Only wallets of type default can have their limits updated
  • Updating the limit also updates the limit in the card service

Response

STATUS
200
Response Body: Updated wallet limit
{
"wallet_limit_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"limit_type": "postpaid_credit_limit",
"limit_amount": 10000.00,
"used_limit": 2500.00
}

Response Body Params

FieldTypeDescriptionCharacters
wallet_limit_key *uuidv4Unique identification key of the updated limit in UUID v4 format36
limit_type *stringType of the updated limitlimit_type Enumerators
limit_amount *floatNew postpaid credit limit amount after update-
used_limit *floatUsed limit amount at the time of update-

limit_type Enumerators

EnumeratorDescription
postpaid_credit_limitPostpaid credit limit

Error Response

STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Code
status
QI Code
code
Title
title
Description (eng)
description
Description (pt-br)
translation
400CIN000110Bad RequestNew limit amount is less than used limitNovo valor do limite é menor que o valor utilizado
400CIN000111Bad RequestError while updating postpaid wallet limit in card service, try again in a few minutes.Erro ao atualizar limite de carteira pós-pago no serviço de cartão, tente novamente em alguns minutos.
400CIN000112Bad RequestRequester postpaid limit exceeded for this clientLimite das carteiras pós-pagas do cliente excedido
403CIN000108ForbiddenWallet type payroll is not allowed for this operationTipo de carteira payroll não é permitido para esta operação
403CIN000109ForbiddenWallet limit type payroll_withdraw_limit is not allowed for this operationTipo de limite de carteira payroll_withdraw_limit não é permitido para esta operação
404CIN000007Wallet not FoundWallet with key: e91d68d4-2904-4f9d-a6ef-50c82c34531e was not foundCarteira com a chave: e91d68d4-2904-4f9d-a6ef-50c82c34531e não foi encontrado
404CIN000107Not FoundWallet limit not foundLimite de carteira não foi encontrado