{"openapi":"3.0.0","info":{"title":"Currency (New)","description":"The only cross-border payments API with payment coverage across developed and emerging markets. Get the tools, resources, and guides you need to build a great cross-border payment experience for your business. Let's help you reach your growth goals.\n","version":"1.0.0","license":{"name":"","url":" "}},"servers":[{"url":"https://api-currency-sandbox.vertofx.com","description":"For Currency (New) APIs"}],"x-readme":{"samples-languages":["shell","node","ruby","javascript","python","csharp","php"]},"security":[{"bearerAuth":[]}],"paths":{"/fx/bulk-exchange-rates":{"post":{"tags":["Rate"],"summary":"Get Bulk Exchange Rates (New)","operationId":"get_bulk_exchange_rates","description":"Retrieve FX rates for multiple currency pairs in one request and use the results for dashboards, comparisons, and batch pricing workflows before moving into single-pair execution.","parameters":[{"name":"fetchAll","in":"query","required":false,"schema":{"type":"boolean"},"description":"If true, and the request body is empty, all FX rates for all currency pairs will be fetched."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"currencyFrom":{"type":"string","example":"USD"},"currencyTo":{"type":"string","example":"GBP"}}}},"example":[{"currencyFrom":"USD","currencyTo":"GBP"},{"currencyFrom":"USD","currencyTo":"EUR"}]}}},"responses":{"200":{"description":"Successfully get the fx rates of given multiple currency pairs","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true},"rates":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"0.72"},"currencyFrom":{"type":"string","example":"USD"},"currencyTo":{"type":"string","example":"GBP"}}}}}},"example":{"success":true,"rates":[{"rate":"0.72","currencyFrom":"USD","currencyTo":"GBP"},{"rate":"0.90","currencyFrom":"USD","currencyTo":"GBP"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Unauthorized"}}},"example":{"success":false,"message":"Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","example":403},"message":{"type":"string","example":"Forbidden"}}},"example":{"code":403,"message":"Forbidden"}}}},"500":{"description":"Server side error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"internal server error"}}},"example":{"success":false,"message":"internal server error"}}}}},"deprecated":true}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token returned by the Login endpoint. Send it as:\n> Authorization: Bearer <token>\n"}}}}