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_KEYMETHOD
PATCHPath Parameters
| Field | Type | Description | Characters |
|---|---|---|---|
wallet_key * | uuidv4 | Unique wallet key in UUID v4 format | 36 |
wallet_limit_key * | uuidv4 | Unique wallet limit key in UUID v4 format | 36 |
Request Body
{
"limit_amount": 10000.00
}
Request Body Params
| Field | Type | Description | Characters |
|---|---|---|---|
limit_amount * | float | New 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_limitcan be updated - Only wallets of type
defaultcan have their limits updated - Updating the limit also updates the limit in the card service
Response
STATUS
200Response 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
| Field | Type | Description | Characters |
|---|---|---|---|
wallet_limit_key * | uuidv4 | Unique identification key of the updated limit in UUID v4 format | 36 |
limit_type * | string | Type of the updated limit | limit_type Enumerators |
limit_amount * | float | New postpaid credit limit amount after update | - |
used_limit * | float | Used limit amount at the time of update | - |
limit_type Enumerators
| Enumerator | Description |
|---|---|
| postpaid_credit_limit | Postpaid credit limit |
Error Response
STATUS
4xxResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Codestatus | QI Codecode | Titletitle | Description (eng)description | Description (pt-br)translation |
|---|---|---|---|---|
| 400 | CIN000110 | Bad Request | New limit amount is less than used limit | Novo valor do limite é menor que o valor utilizado |
| 400 | CIN000111 | Bad Request | Error 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. |
| 400 | CIN000112 | Bad Request | Requester postpaid limit exceeded for this client | Limite das carteiras pós-pagas do cliente excedido |
| 403 | CIN000108 | Forbidden | Wallet type payroll is not allowed for this operation | Tipo de carteira payroll não é permitido para esta operação |
| 403 | CIN000109 | Forbidden | Wallet limit type payroll_withdraw_limit is not allowed for this operation | Tipo de limite de carteira payroll_withdraw_limit não é permitido para esta operação |
| 404 | CIN000007 | Wallet not Found | Wallet with key: e91d68d4-2904-4f9d-a6ef-50c82c34531e was not found | Carteira com a chave: e91d68d4-2904-4f9d-a6ef-50c82c34531e não foi encontrado |
| 404 | CIN000107 | Not Found | Wallet limit not found | Limite de carteira não foi encontrado |