3DS transaction setup
POST/charge/3ds/setup
Endpoint responsible for performing the setup of a 3DS transaction
Requestโ
Header Parameters
Include the 'caller-origin' property as a string in the header of REST requests only if the application is an e-commerce platform, otherwise, don't include it.
- application/json
Body
required
Array [
]
Possible values: [CHECKOUT
, GATEWAY
]
Enum [ CHECKOUT(Transactions made from the standard checkout and lightBox), GATEWAY(Transactions carried out using the api directly)]
SmartCheckout ID defined by the system (Required to default or lightBox checkout)
Possible values: >= 6 characters
and <= 36 characters
, Value must match regular expression ^([a-zA-Z0-9-]+$)$
Unique external identifier for the charge, defined by the merchant's system.
This field must be unique for each charge, as it is used to individually
track and identify transactions in the system. If not provided, it will be generated internally.
Caution: reusing a merchantChargeId
for multiple charges will
result in failures when creating new charges.
transactions
object[]
required
Possible values: >= 1
, <= 1
One transactions to be performed within the charge.
card
object
Possible values: Value must match regular expression ^[a-zA-Z0-9.\/\_\+-]*$
One time token generated by our SDK on seller's front-end to be used in the transaction. It's useful to avoid sending card data to the seller's backend. When using this field, the card data is not necessary.
Possible values: >= 13 characters
and <= 16 characters
, Value must match regular expression ^\d+$
Possible values: >= 3 characters
and <= 4 characters
, Value must match regular expression ^\d+$
Possible values: [VISA
, MASTERCARD
, AMEX
, ELO
, HIPERCARD
]
Possible values: non-empty
, Value must match regular expression ^[\p{L} ]+$
Possible values: Value must match regular expression ^\d{9}$|^\d{11}$|^[A-Z0-9]{9}$
billingAddress
object
required
Possible values: Value must match regular expression ^(?!\s*$)[\p{L}\d .-]+$
Possible values: Value must match regular expression ^[0-9]+$
Possible values: Value must match regular expression ^[\p{L} ]+$
Possible values: Value must match regular expression ^[\p{L} ]+$
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 .-]+$
Possible values: >= 1
and <= 12
Possible values: >= 2000
and <= 9999
Possible values: [CREDIT
]
Enum [ CREDIT(Cartรฃo de credito)]
Possible values: >= 1
Payment amount in cents
Responsesโ
- 200
- 400
- 401
- 415
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Charge ID defined by system
transactions
object[]
Possible values: >= 1
, <= 1
{
"chargeId": "string",
"transactions": [
{
"accessToken": "string",
"deviceDataCollectionUrl": "string",
"cardholderAuthenticationId": "string",
"cardholderAuthenticationReferenceId": "string",
"pan": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"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,
"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"
}
}
Unsupported Media Type
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Request object is invalid or incorrectly formatted",
"success": false,
"errors": null
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Internal Server Error",
"success": false,
"errors": null
}