Request a new confirmation code

Availability: Brazil

POST {{api_base_url}}/api/virtual-account/:externalId/alias/resendcode


Request

If the initial verification code was not received or has expired, a new one can be requested by sending a POST request to the Resend Code endpoint.

The new verification code will be delivered through the same channel (email or SMS) that was configured during the alias creation process. Each newly generated code is valid for 5 minutes.

To request additional codes, you must continue using this endpoint as needed. Any previously issued code becomes invalid once a new code is generated.

Headers

Parameter
Type
Required
Description

Authorization

String

Required

Mandatory. JWT token in format Bearer eyj0.... For more information about authentication, please refer to Authentication.

Path Parameters

Name
Type
Required
Description

externalId

String

Required

A unique identifier generated by your system to track the transaction (alphanumeric and hyphens). We recommend using UUID4 to ensure uniqueness.

Body Parameters

Parameter
Type
Required
Description
Possible values
Example

type

String

Required

The type of alias to be associated.

E, P

E

value

String

Required

Value indicating the type of alias to be configured—either an email address or a phone number.

Request Example

Below is an example using curl:

curl --request POST \
     --url {{api_base_url}}/api/virtual-account/{externalId}/alias/resendcode \
     --header 'Authorization: Bearer <your_access_token>' \
     --data '
{
  "type": "E",
  "value": "[email protected]"
}'

Response

A successful request returns an HTTP status code 200, along with the new confirmation code. In contrast, if an error occurs, the API responds with an HTTP status code in the 40X range, and detailed error information is provided within the status object.

Body Parameters

Parameter
Type
Description
Possible values
Example

externalId

String

A unique identifier generated by your system to track the transaction (alphanumeric and hyphens). We recommend using UUID4 to ensure uniqueness.

a79aabec-16c6-4a84-8abe-be2dcd2e07a1

alias

Object

Alias information.

alias.type

String

The type of alias associated.

E, P

E

alias.value

Object

Information about the virtual account beneficiary.

Value indicating the type of alias to be configured—either an email address or a phone number.

status

Object

Operation status.

status.code

String

Status code

status.description

String

Status description

status.detail

String

Additional status information.

Response Examples

{
    "externalId": "94c6faee-0b35-4304-915b-e857981b4c01",
    "alias": {
        "type": "E",
        "value": "[email protected]"
    },
    "status": {
        "code": "100",
        "description": "INPROGRESS",
        "detail": "Alias creation pending confirmation"
    }
}

Error Response Example

{
    "externalId": "94c6faee-0b35-4304-915b-e857981b4c01",
    "alias": {
        "type": "E",
        "value": "[email protected]"
    },
    "status": {
        "code": "802",
        "description": "REJECTED"
    }
}

Last updated

Was this helpful?