Inter API Documentation

Version 2.0 - Enhanced Partner Integration Guide

# GetActiveCountries Method

Overview

This method allows Client Applications to obtain a list of all Countries to which Inters currently sends remittances or offers different services and forms of payments.

Use Cases:

Performance: Typically responds in 50-100ms (highly cacheable)

Caching Recommendation: Cache this data for 24 hours and refresh daily.

🚫 Restricted Origin Countries

⚠️ Important: The following countries are restricted as origin countries for sending transactions to Brazil and USA. Transactions originating from these countries will be rejected.

Restricted Countries List:

Country Code Country Name
KPNorth Korea
IRIran
MMMyanmar
AFAfghanistan
NINicaragua
UAUkraine
ZWZimbabwe
CUCuba
CSSerbia and Montenegro
MKNorth Macedonia
CGCongo
LBLebanon
MLMali
SSSouth Sudan
SYSyria
YEYemen
VEVenezuela
LYLibya
HTHaiti
CFCentral African Republic
IQIraq
SOSomalia
SDSudan

Note: This restriction applies to the SenderCountry field in transaction requests. Always validate the sender's country before submitting orders.


Request Fields

Field Name Type (Length) Option Description
AgentID Integer (9) R Your agent ID
PartnerID Integer (9) R Your partner ID
SenderCountry Alpha (2) R ISO 3166-1 alpha-2 country code for origin (e.g., "US")

Response Fields

The following table describes the fields available in the response or output to the GetActiveCountries request:

Field Name Type (Length) Option Description
CountryCode Alpha (2) R Follows ISO 3166‐1 alpha‐2 Country Codes
CountryName Alpha (50) R Country name in the English language


Request Examples

Error Response Example

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>Invalid Country of Origin</faultstring>
      <detail>
        <ErrorCode>1103</ErrorCode>
        <ErrorMessage>SenderCountry must be a valid ISO 3166-1 alpha-2 code</ErrorMessage>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>


Integration Best Practices

1. Cache the Response

This data rarely changes, so cache it to improve performance:

// Cache for 24 hours
const CACHE_TTL = 24 * 60 * 60 * 1000;

async function getActiveCountries(senderCountry) {
  const cacheKey = `active_countries_${senderCountry}`;

  // Check cache first
  const cached = await cache.get(cacheKey);
  if (cached && cached.timestamp + CACHE_TTL > Date.now()) {
    return cached.data;
  }

  // Fetch from API
  const countries = await GetActiveCountries({
    AgentID: 12345,
    PartnerID: 100,
    SenderCountry: senderCountry,
  });

  // Store in cache
  await cache.set(cacheKey, {
    data: countries,
    timestamp: Date.now(),
  });

  return countries;
}

Testing

Display Transfer Information

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Send money to Brazil πŸ‡§πŸ‡·               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Available payment methods:             β”‚
β”‚  β€’ Bank Deposit (TED/DOC/PIX)               β”‚
β”‚  β€’ PIX (Instant)                        β”‚
β”‚                                         β”‚
β”‚  Processing time: 5-60 minutes          β”‚
β”‚  Currency: Brazilian Real (BRL)         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


Related Methods

After getting active countries, you'll typically need:


Support