resourceCorridorsV2

GraphQL Query

GraphQL

query ResourceCorridorsV2 {
  resourceCorridorsV2 {
    country
    currency
    paymentMethod {
      local {
        personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
      swift {
        personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
      mobile {
        personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
      fedwire {
          personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
    }
  }
}

Response Format

const axios = require('axios');

let data = JSON.stringify({
  query: `query ResourceCorridorsV2 {
  resourceCorridorsV2 {
    country
    currency
    paymentMethod {
      local {
        personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
      swift {
        personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
      mobile {
        personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
      fedwire {
          personal {
          min
          max
          timeline
        }
        business {
          min
          max
          timeline
        }
      }
    }
  }
}`
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://sandbox.external.routefusion.com/graphql',
  headers: {
    'Content-Type': 'application/json'
  },
  data: data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Example Response

{
  "data": {
    "resourceCorridorsV2": [
      {
        "country": "AD",
        "currency": "EUR",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 4
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 4
            }
          },
          "mobile": null,
          "fedwire": null
        }
      },
      {
        "country": "AD",
        "currency": "USD",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 4
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 4
            }
          },
          "mobile": null,
          "fedwire": null
        }
      },
      {
        "country": "AE",
        "currency": "AED",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 2
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 2
            }
          },
          "mobile": null,
          "fedwire": null
        }
      },
      {
        "country": "AE",
        "currency": "CAD",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 2
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 2
            }
          },
          "mobile": null,
          "fedwire": null
        }
      },
      {
        "country": "AE",
        "currency": "EUR",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 2
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 2
            }
          },
          "mobile": null,
          "fedwire": null
        }
      },
      {
        "country": "AE",
        "currency": "GBP",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 2
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 2
            }
          },
          "mobile": null,
          "fedwire": null
        }
      },
      {
        "country": "AE",
        "currency": "USD",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 1
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 2
            }
          },
          "mobile": null,
          "fedwire": null
        }
      },
      {
        "country": "AF",
        "currency": "AFN",
        "paymentMethod": {
          "local": null,
          "swift": {
            "personal": {
              "min": "",
              "max": "",
              "timeline": 4
            },
            "business": {
              "min": "",
              "max": "",
              "timeline": 4
            }
          },
          "mobile": null,
          "fedwire": null
        }
      }
    ]
  }
}