Account Management: https://dashboard.ebanx.com

Default Currency: USD

Developer Documentation:
https://business.ebanx.com/en/integrations/ebanx-direct-api
https://developer.ebanx.com/docs/payments/guides/accept-payments/api/credit-cards
https://ebanx.github.io/api-reference/#tag/Direct-Payments

Gateway Endpoints
Production: https://api.ebanxpay.com/ws/
Test: https://sandbox.ebanxpay.com/ws/

Supported Parameters:
Type column indicates max length

Field NameTypeDirect API MappingNotes
gatewaystringN/AEBANX
testModebooleanN/ATrue = EBANX Sandbox, False = EBANX Production
integrationKeystring(100)integration_keyEBANX unique and secret Integration Key
modestring(4)modeDefaults to "full" if left blank on Authorize/Purchase operations.
operationstring(7)operationUsed in Authorize, Purchase, and Refund.
Defaults to "request" if left blank.
tokenExTransactionCodestringN/AUsed for processing capture, refund, or void operations
merchantCaptureCodestring(200)merchant_capture_codeOptional identifier for the payment capture.
merchantRefundCodestring(40)merchant_refund_codeThe ID of the refund on the merchant system.
descriptionstring(500)descriptionBrief summary of the operation. Used in Refund.
refundIdstring(20)refund_idThe ID of the refund to be canceled
items[ ]payment.itemsArray containing the items of the order
items.Skustring(20)payment.items.skuSKU of the item
items.Namestring(100)payment.items.nameName of the item
items.Descriptionstring(200)payment.items.descriptionDescription of the item
items.UnitPricenumericpayment.items.unit_priceSmallest values of currency specified by CurrencyCode. Converted to format of CurrencyCode. Example for USD: input 1000 for an output of $10.00.
items.Quantitynumericpayment.items.quantityQuantity of each item
items.Typestring(50)payment.items.typeType of the item
documentstring(32)payment.documentCustomer identification document number
merchantPaymentCodestring(128)payment.merchant_payment_codeThe payment hash Merchant Payment Code (unique merchant ID).
userValue1string(20)payment.user_value_1Parameter that can be used by the merchant to associate additional info to the payment.
userValue2string(20)payment.user_value_2Parameter that can be used by the merchant to associate additional info to the payment.
userValue3string(20)payment.user_value_3Parameter that can be used by the merchant to associate additional info to the payment.
userValue4string(20)payment.user_value_4Parameter that can be used by the merchant to associate additional info to the payment.
userValue5string(20)payment.user_value_5Parameter that can be used by the merchant to associate additional info to the payment.
paymentTypeCodestringpayment.payment_type_codeThe code of the payment method.
amountnumericpayment.amount_totalSmallest values of currency specified by CurrencyCode. Converted to format of CurrencyCode. Example for USD: input 1000 for an output of $10.00.
currencyCodestring(3)payment.currency_codeUse the ISO 4217 three-letter alphabetic code for the currency.
dueDatestring(10)payment.due_dateThe due date of payment slips
installmentsnumericpayment.installmentsThe number of installments of the payment. Defaults to 1
notestring(200)payment.noteA note about the payment. The value of this parameter will be shown along with payment details.
subAccountNamestring(32)payment.sub_account.nameName of the sub account
subAccountImageUrlstring(200)payment.sub_account.image_urlHTTPS URL of the logo of the sub-account
eftCodestring(32)payment.eft_codeCode for the customer’s bank. Only required for Colombia payments
notificationUrlstring(2000)payment.notification_urlThe URL to send notifications for this payment. If this field is filled, EBANX will notify using this URL instead of the configured one.
redirectUrlstring(2000)payment.redirect_urlThe URL to redirect the customer after the payment in the EBANX Payment Page. If this field is filled, EBANX will redirect the customer using this URL instead of the configured one.
personTypestring(8)payment.person_typeOptional parameter that can be used to identify the type of customer: "business" or "personal"
responsibleNamestring(100)payment.responsible.nameResponsible name. Required if person_type = business.
customerIpAddressstringpayment.customer_ipCustomer’s IP address. It may be used by an anti-fraud tool.
deviceIdstring(200)payment.device_idUnique ID to identify the customer’s device. Used for anti-fraud checking purposes.
billingAddress.FullNamestringpayment.nameIf left empty, this field's default value will be populated from billingAddress.FirstName + billingAddress.LastName. Sum of both fields cannot be greater than 50 characters
billingAddress.FirstNamestringpayment.nameCombined with BillingAddress.LastName to be "{FirstName} {LastName}". Sum of both fields cannot be greater than 50 characters
billingAddress.LastNamestringpayment.nameCombined with BillingAddress.FirstName to be "{FirstName} {LastName}". Sum of both fields cannot be greater than 50 characters
billingAddress.Address1string(30)payment.street_numberCustomer street number.
billingAddress.Address2string(100)payment.addressCustomer address (street name)
billingAddress.StreetComplementstring(100)payment.street_complementExtra address field for complimentary data.
billingAddress.Citystring(80)payment.cityCustomer city.
billingAddress.Statestringpayment.stateCustomer state/region/province
billingAddress.Countrystringpayment.countryCustomer country. Input Alpha 3. Converted to Alpha 2.
billingAddress.Zipstring(8)payment.zipcodeCustomer zip code
billingAddress.Emailstring(100)payment.emailCustomer email address
billingAddress.Phonestring(15)payment.phone_numberCustomer phone number
creditCardobjectpayment.cardUse for either credit or debit card transactions
creditCard.Numberstringpayment.card.card_numberCard number or TokenEx Token - Tokenex will replace the Token with the Detokenized number
creditCard.CVVstringpayment.card.card_cvvCard security code.
creditCard.FirstNamestringpayment.card.card_nameCombined with CreditCard.LastName to be "{FirstName} {LastName}". Sum of both fields cannot be greater than 50 characters
creditCard.LastNamestringpayment.card.card_nameCombined with CreditCard.FirstName to be "{FirstName} {LastName}".
Sum of both fields cannot be greater than 50 characters
creditCard.ExpMonthnumericpayment.card.card_due_dateMM. Combined with CreditCard.ExpYear to equal MM/YYYY
creditCard.ExpYearnumericpayment.card.card_due_dateYYYY. Combined withe CreditCard.ExpMonth to equal MM/YYYY
creditCard.EBANXTokenstring(128)payment.card.tokenEBANX token used for recurring billing.
threeDSecure.ECIstringpayment.card.threeds_eciElectronic Commerce Indicator
threeDSecure.CAVVstringpayment.card.threeds_cryptogramCardholder Authentication Verification Value
threeDSecure.XIDstringpayment.card.threeds_xidUnique transaction Identification number to identify the 3DS transaction
threeDSecure.ThreeDSecureVersionstringpayment.card.threeds_version3DS Version
threeDSecure.DSTransIdstringpayment.card.threeds_trxidDirectory Server Transaction ID
createEBANXTokenbooleanpayment.create_tokenGenerates a token for recurring billing.

Example Payloads:

{
    "gateway": "EBANX",
    "testMode": true,
    "integrationKey": "<Your EBANX Integration Key>",
    "merchantPaymentCode": "ABC00001",
    "document": "853.513.468-93",
    "creditCard": {
        "firstName": "José",
        "lastName": "Silva",
        "number": "378282246310005",
        "cvv": "123",
        "expMonth": 6,
        "expYear": 2023
    },
    "billingAddress": {
        "firstName": "José",
        "lastName": "Silva",
        "address1": "1040",
        "address2": "Rua teste",
        "city": "Rio de Janeiro",
        "state": "RJ",
        "zip": "61919",
        "country": "BRA",
        "phone": "8522847035",
        "email": "[email protected]"
    },
    "Amount": 1000,
    "CurrencyCode": "BRL"
}
{
    "gateway": "EBANX",
    "testMode": true,
    "integrationKey": "<Your EBANX Integration Key>",
    "merchantCaptureCode": "ABC00001",
    "tokenExTransactionCode": "<TokenExTransactionCode from a previous Authorize call>",
    "amount": 1000
}
{
    "gateway": "EBANX",
    "testMode": true,
    "integrationKey": "<Your EBANX Integration Key>",
    "amount": 1000,
    "description": "water damage",
    "merchantRefundCode": "ABC00001",
    "tokenExTransactionCode": "<TokenExTransactionCode from a previous Authorize/Purchase call>"
}
{
    "gateway": "EBANX",
    "testMode": true,
    "integrationKey": "<Your EBANX Integration Key>",
    "tokenExTransactionCode": "<TokenExTransactionCode from a previous Authorize/Purchase call>"
}

Gateway Response Fields:

Field NameTypeDirect API MappingNotes
approvedbooleanN/AIf EBANX returns an authcode, this field will be true.
approvalCodestring(40)authcodeTransaction authentication code from the processor.
providerTransactionCodestringhashThe payment hash (EBANX unique identifier).