Solicitação de autorização no fluxo de 3DS
POST/charge/3ds/authorization
Realiza a autorização de uma charge no fluxo 3DS
Request
Header Parameters
Inclua a propriedade 'caller-origin' como uma string no header das requisições REST somente se a aplicação for uma plataforma de e-commerce, caso contrário, não inclua.
- application/json
Body
required
Array [
]
SmartCheckout ID defined by the system (Required to default or lightBox checkout)
transactions
object[]
required
Possible values: [NONE
, MERCHANT
]
Default value: NONE
Enum [ NONE(Transação a vista), MERCHANT(Transação parcelada pelo lojista, ou seja, sem juros)]
card
object
required
subMerchant
object
Possible values: >= 6 characters
and <= 36 characters
, Value must match regular expression ^[a-zA-Z0-9-]+$
O ID do comerciante responsável pela transação
Possible values: Value must match regular expression ^\d{11}$|^\d{14}$|^[A-Z0-9]{8}$
Documento do SubMerchant
Possible values: >= 4 characters
and <= 4 characters
MCC do SubMerchant
address
object
required
Possible values: Value must match regular expression ^(?!\s*$)[\p{L}\d .'-]+$
Possible values: Value must match regular expression ^(?!\s*$)((?i)s/n|[\p{L}\d .-]+)$
Possible values: Value must match regular expression ^(?!\s*$)[\p{L}\d .'-]+$
Possible values: Value must match regular expression ^(?!\s*$)[\p{L}\d .'-]+$
Possible values: >= 2 characters
and <= 2 characters
, Value must match regular expression ^[\p{L} ]+$
Possible values: Value must match regular expression ^[\p{L} ]+$
Possible values: Value must match regular expression ^[0-9]+$
Possible values: Value must match regular expression ^(?!\s*$)[\p{L}\d .'-]+$
Responses
- 200
- 400
- 401
- 502
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
charge
object
required
Possible values: [Authorized
, PreAuthorized
, Canceled
, Partial
, NotAuthorized
, PendingCancel
, Expired
, Timeout
]
transactions
object[]
required
card
object
required
{
"charge": {
"id": "string",
"nsu": "string",
"customerId": "string",
"chargeStatus": "NotAuthorized",
"transactions": [
{
"isApproved": true,
"card": {
"number": "string",
"brand": "string"
},
"paymentType": "string",
"installmentType": "string",
"installmentNumber": 0,
"softDescriptor": "string",
"amount": 0,
"isCapture": true,
"isRecurrency": true,
"transactionId": "string",
"transactionStatus": "string",
"acquirer": "string",
"creationDateTime": "string",
"captureDateTime": "string"
}
]
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"businessCode": "string",
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"businessCode": "string",
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Authorization token not found.",
"success": false,
"errors": {
"message": "Authorization token not found",
"field": "Authorization Token"
}
}
Bad Gateway
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"businessCode": "string",
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Error when making an external call, try again later.",
"success": false,
"errors": null
}