Required fields list
API reference
Returns the country-specific fields you need to submit when requesting a quote.
The attributes in the response are required for the quote with the parameters defined in the request for this call (except where indicated in the table below). The values provided describe the required responses. For example, for lastName the value is ^.{1,255}, indicating that the regular expression characters are permitted, up to 255 characters maximum. The bankCountryCode is fr, as provided in the request.
Endpoint: /International/v1/meta/quote-requirements
GET
https://sandbox.crbcos.com/International/v1/meta/quote-requirements
Query Parameters
- currencystringrequiredDescription
- beneficiaryCountryCodestringrequiredDescription
- bankCountryCodestringrequiredDescription
- entityTypestringDescription
- prioritybooleanDescription
Response
- firstNamestringDescription
- lastNamestringDescription
- companyNamestringDescription
- currencystringDescription
- addressstringDescription
- citystringDescription
- stateProvincestringDescription
- postalCodestringDescription
- countryCodestringDescription
- routingCodeType1stringDescription
- routingCodeValue1stringDescription
- routingCodeType2stringDescription
- routingCodeValue2stringDescription
- bicSwiftstringDescription
- ibanstringDescription
- bankNamestringDescription
- bankCountryCodestringDescription
- receiverAccountNumberstringDescription
- entityTypestringDescription
- paymentNetworkstringDescription
- prioritybooleanDescription
- purposeCodearrayDescription
curl
curl --location 'https://sandbox.crbcos.com/International/v1/meta/quote-requirements?filter.currency=GBP&filter.beneficiaryCountryCode=US&filter.bankCountryCode=GB&filter.entityType=Individual' \
--header 'Authorization: Bearer <token>'nodejs
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'sandbox.crbcos.com',
'path': '/International/v1/meta/quote-requirements?filter.currency=GBP&filter.beneficiaryCountryCode=US&filter.bankCountryCode=GB&filter.entityType=Individual',
'headers': {
'Authorization': 'Bearer <token>'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();python
import requests
url = "https://sandbox.crbcos.com/International/v1/meta/quote-requirements?filter.currency=GBP&filter.beneficiaryCountryCode=US&filter.bankCountryCode=GB&filter.entityType=Individual"
payload = ""
headers = {
'Authorization': 'Bearer <token>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
ruby
require "uri"
require "net/http"
url = URI("https://sandbox.crbcos.com/International/v1/meta/quote-requirements?filter.currency=GBP&filter.beneficiaryCountryCode=US&filter.bankCountryCode=GB&filter.entityType=Individual")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer <token>"
response = https.request(request)
puts response.read_body
go
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.crbcos.com/International/v1/meta/quote-requirements?filter.currency=GBP&filter.beneficiaryCountryCode=US&filter.bankCountryCode=GB&filter.entityType=Individual"
method := "GET"
payload := strings.NewReader(``)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer <token>")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}200
[
{
"firstName": "^([^0-9]{2,255})$",
"lastName": "^([^0-9]{2,255})$",
"currency": "gbp",
"address": ^(?!\s*[0-9]+\s*$).{1,255}$",
"city": "^.{1,255}$",
"postalCode": "^.{1,12}$",
"countryCode": "US",
"routingCodeType1": "SortCode",
"routingCodeValue1": "^\\d{6}$",
"bankName": "^.{1,255}",
"bankCountryCode": "GB",
"receiverAccountNumber": "^\\d{8}$",
"entityType": "Individual",
"paymentNetwork": "Regular",
"priority": false
}
]400_CLASS
{
"errors": [
{
"code": 2102,
"message": "Country is not supported"
}
]
}For additional information, refer to our International payments tutorial.