Skip to main content

Subacquirer Routing#

This guide shows how Tuna vendor fields are mapped when routing transactions to subacquirer integrations.

Routes used for subacquirer flows:

  • Rede
  • Cielo
  • PagBank
note

Tuna-managed routing paths continue to run independently from subacquirer flows.

Vendor fields expected by Tuna Init#

Use the vendor object in api/Payment/Init with these key fields:

  • Name
  • Email
  • Phone
  • WebsiteUrl
  • Code
  • MCC
  • Document
  • DocumentType
  • Address

Rede mapping#

Provider payload fieldTuna vendor field
paymentFacilitatorIDNot mapped from vendor (Tuna/Rede credential)
marketplaceIdNot mapped from vendor (Tuna/Rede credential)
subMerchant.subMerchantIDDocument (fallback identifier behavior)
subMerchant.mccMCC
subMerchant.addressAddress.Street
subMerchant.cityAddress.City
subMerchant.stateAddress.State
subMerchant.countryConstant BRA (hardcoded)
subMerchant.cepAddress.PostalCode
subMerchant.taxIdNumber or subMerchant.cnpjDocument
subMerchant.merchantTaxIdNameName

Cielo mapping#

Provider payload fieldTuna vendor field
Payment.PaymentFacilitator.EstablishmentCodeNot mapped from vendor (Cielo facilitator credential)
Payment.PaymentFacilitator.SubEstablishment.EstablishmentCodeCode
Payment.PaymentFacilitator.SubEstablishment.IdentityDocument
Payment.PaymentFacilitator.SubEstablishment.MccMCC
Payment.PaymentFacilitator.SubEstablishment.AddressAddress.Street
Payment.PaymentFacilitator.SubEstablishment.CityAddress.City
Payment.PaymentFacilitator.SubEstablishment.StateAddress.State
Payment.PaymentFacilitator.SubEstablishment.CountryCodeConstant BRA (hardcoded by Cielo integration)
Payment.PaymentFacilitator.SubEstablishment.PostalCodeAddress.PostalCode
Payment.PaymentFacilitator.SubEstablishment.PhoneNumberPhone
Payment.SoftDescriptorDerived from payment descriptor settings and can fall back to vendor Name in subacquirer flows

Identity is populated from vendor Document. DocumentType is not a direct Cielo payload field and is inferred by identity format in Tuna.

PagBank mapping#

Provider payload fieldTuna vendor field
charges[].sub_merchant.reference_idCode
charges[].sub_merchant.nameName
charges[].sub_merchant.tax_idDocument
charges[].sub_merchant.mccMCC
charges[].sub_merchant.address.streetAddress.Street
charges[].sub_merchant.address.numberAddress.Number
charges[].sub_merchant.address.localityAddress.Neighborhood
charges[].sub_merchant.address.cityAddress.City
charges[].sub_merchant.address.region_codeAddress.State
charges[].sub_merchant.address.countryConstant BRA (hardcoded by PagBank integration)
charges[].sub_merchant.address.postal_codeAddress.PostalCode
charges[].sub_merchant.phones[].countryPhone (country code component)
charges[].sub_merchant.phones[].areaPhone (area code component)
charges[].sub_merchant.phones[].numberPhone (number component)
charges[].sub_merchant.phones[].typePhone (type metadata)
charges[].sub_merchant.urlWebsiteUrl

PagBank caveat: sub_merchant is only sent when minimum vendor fields are present and Document exists.

Forwarding behavior#

When a payment starts from Payment Link, vendor/submerchant data captured in link creation and add-payment-method steps is forwarded to Payment Init and then consumed by subacquirer routes when applicable.

Support and enablement#

Tuna currently supports subacquirer routing with Rede, Cielo, and PagBank.

If you need support for additional acquirers, contact Tuna Support or your account team to evaluate enablement for your environment.