> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fincode.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# Destination Countries

> Retrieves a list of valid destination countries for a given sending country and payout method, used for defining remittance corridors.

This endpoint retrieves the list of countries where money can be sent, based on the customer's current location (`sendingCountryCode`) and the intended method of delivery (e.g., `ACCOUNTPAYMENT`).

This is a key step in initiating a transaction.

## Request Headers

This endpoint requires a valid **Access Token**

<ParamField header="X-Auth-Token" type="string" required>
  The **JWT Access Token** obtained from the `/login` or `/refresh-token`
  endpoint. This token must belong to a user with appropriate permissions.
</ParamField>

<ParamField header="platform" type="string" required default="fincode">
        Platform identifier. Use `fincode`.
</ParamField>

<ParamField header="uuid" type="string" required default="200">
        Unique request identifier.
</ParamField>

## Path Parameters

The dynamic parts of the URL are mandatory for filtering the results.

<ParamField path="sendingCountryCode" type="string" required default="GBR">
  The **country code** of the customer sending the money (ISO 3166-1 alpha-3
  code).
</ParamField>

<ParamField path="deliveryMethod" type="string" required default="ACCOUNTPAYMENT">
  The intended **payout method** (e.g., `ACCOUNTPAYMENT`, `CASH_PICKUP`).
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl --location 'https://remitjunction.fincode.software/api/v6/services/quote/destination-country-by-delivery-method/GBR/ACCOUNTPAYMENT' \
  --header 'platform: fincode' \
  --header 'uuid: 200'
  ```

  ```javascript Node.js theme={null}
  const axios = require('axios');

  const BASE_URL = 'https://agent.fincode.software/api/v6/services/quote';

  async function getDestinationCountries(sendingCountryCode, deliveryMethod) {
    const url = `${BASE_URL}/destination-country-by-delivery-method/${sendingCountryCode}/${deliveryMethod}`;
    try {
      const response = await axios.get(url, {
        headers: {
          platform: 'fincode',
          uuid: '200',
        },
      });

      const countries = response.data.data;

      console.log(
        `Available destinations from ${sendingCountryCode} via ${deliveryMethod}:`
      );
      countries.forEach((c) => {
        console.log(
          `- ${c.countryName} (${
            c.countryCode
          }) - Currencies: ${c.payoutCurrencies.join(', ')}`
        );
      });

      return countries;
    } catch (error) {
      console.error(
        'Failed to fetch destination countries:',
        error.response?.data || error.message
      );
      throw error;
    }
  }

  ```
</CodeGroup>


## OpenAPI

````yaml GET /quote/destination-country-by-delivery-method/{sendingCountryCode}/{deliveryMethod}
openapi: 3.0.0
info:
  title: FinCode API
  version: v6
servers:
  - url: https://{tenant}.fincode.software/api/v6/services
    description: API v6
    variables:
      tenant:
        default: remitjunction
        description: Enter your tenant subdomain
  - url: https://{tenant}.fincode.software/api/v1/services
    description: API v1
    variables:
      tenant:
        default: finlend
        description: Enter your tenant subdomain
  - url: https://api.stag.songhaiexchange.io
    description: Songhai Exchange API
security: []
paths:
  /quote/destination-country-by-delivery-method/{sendingCountryCode}/{deliveryMethod}:
    get:
      summary: Destination Countries
      description: Retrieves destination countries
      operationId: destinationCountries
      parameters:
        - $ref: '#/components/parameters/platformHeader'
        - $ref: '#/components/parameters/uuidHeader'
        - in: header
          name: X-Auth-Token
          schema:
            type: string
          required: true
        - in: path
          name: sendingCountryCode
          schema:
            type: string
            default: GBR
          required: true
        - in: path
          name: deliveryMethod
          schema:
            type: string
            default: ACCOUNTPAYMENT
          required: true
      responses:
        '200':
          description: List of destination countries
components:
  parameters:
    platformHeader:
      in: header
      name: platform
      schema:
        type: string
        default: fincode
      required: true
    uuidHeader:
      in: header
      name: uuid
      schema:
        type: string
        default: '200'
      required: true

````