REQUEST A PAYMENT Payins Bank Transfer Virtual Account Brazil Alias configuration This configuration will allow you to assign the alias to a virtual account. Please note that this process is applicable only in Brazil
Alias Creation
POST
{{api_environment_url}}/api/virtual-account/{{ExternalIdVirtualAccount}}/alias
Configuration Alias of a Virtual Account
Request Body
The type of alias to be associated can be 'E' for email or 'P' for phone number.
Value indicating the type of alias to be configured—either an email address or a phone number.
Response
200 400
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias creation pending confirmation"
}
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "802",
"description": "REJECTED",
"detail": "Alias could not be created"
}
}
Example: Configuration request
Request Status Ok Bad Request
Copy {
"type": "E",
"value": "Jose.perez@localpayment.com"
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias creation pending confirmation"
}
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "802",
"description": "REJECTED",
"detail": "Alias could not be created"
}
}
Alias Confirmation
Once the previous action is completed and you have the code, you must execute this confirmation service.
POST
{{api_environment_url}}/api/virtual-account/{{ExternalIdVirtualAccount}}/alias/confirm
Body
The type of alias to be associated can be 'E' for email or 'P' for phone number.
Value indicating the type of alias to be configured—either an email address or a phone number.
Confirmation code generated when executing the account configuration service
Response
200 400
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com",
"confirmationCode": "221595"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias confirmed"
}
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "802",
"description": "REJECTED"
}
}
Example: Confirmation request
Request Status Ok Bad Request
Copy {
"type": "E",
"value": "Jose.perez@localpayment.com",
"confirmationCode": "444088"
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com",
"confirmationCode": "221595"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias confirmed"
}
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "802",
"description": "REJECTED"
}
}
Resend Token
POST
{{api_environment_url}}/api/virtual-account/{{ExternalIdVirtualAccount}}/alias/resendcode
This service allows you to generate a new access token in case the previous token has expired.
Body Request
The type of alias to be associated can be 'E' for email or 'P' for phone number.
The type of alias to be associated can be 'E' for email or 'P' for phone number.
Response
200 400
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias creation pending confirmation"
}
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "802",
"description": "REJECTED"
}
}
Request Status Ok Bad Request
Copy {
"type": "E",
"value": "Jose.perez@localpayment.com"
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias creation pending confirmation"
}
}
Copy {
"externalId": "94b6faee-0b85-4304-915b-e857981b4c07",
"alias": {
"type": "E",
"value": "Jose.perez@localpayment.com"
},
"status": {
"code": "802",
"description": "REJECTED"
}
}