Skip to main content

Validate 3DS Payment

API data

API Gateway
This API is used for payment gateway operations:

To validate a transaction with 3DS, send a POST request to /v1/payments/3ds/validate. This operation confirms the 3DS authentication and finalizes the payment validation process.

POST /v1/payments/3ds/validate

Via REST request with the following body:

Request
  {
"code3ds": "dbe5a61a-836d-45dd-82c1-52d0c5e3c010",
"validateToken": "eyJhbGciOiJIUzI1NiJ9[...]9oBbxbtuE_vuu6UzU-Mp5BjK2FNp5XAfoDy2uQ"
}

Data dictionary - Parameters

PROPERTYDESCRIPTIONTYPELOCATIONREQUIREDSIZE
code3ds3DS authorization code.guidbodyyes255
validateTokenValidation token generated by 3DS when returning from a challenge.stringbodyyes256
Payment completed successfully
{
"paymentAuthorization":{
"returnCode":"0",
"description":"Sucesso",
"paymentId":"020006204409231653310000023790740000000000",
"authorizationCode":"026603",
"orderNumber":"3979908797721",
"amount":1111,
"releaseAt":"2020-09-23T16:53:34+00:00"
}
}

Data dictionary - Response

PROPERTYDESCRIPTIONTYPE
returnCodeTransaction return code.string
descriptionTransaction return description.string
paymentIdTransaction identifier.string
authorizationCodeTransaction authorization code.string
orderNumberOrder number.string
amountTransaction amount.decimal
releaseAtTransaction date/time.datetime