Domains
Returns a list of valid domains that can be used when generating payment links. These domains can be used with the
QR endpoint.
Turbo has a growing list of domains that can be used to craft payment links for targeting various industries.
Your own domain can also be used by visiting the
Custom Domain settings page in the Turbo dashboard.
Parameters
This endpoint has no parameters.
curl \
-X POST \
-d api_key=TURBO_API_KEY \
https://api.tur.bo/domains
<?php
$api_url ='https://api.tur.bo';
$api_path='/domains';
$api_key ='TURBO_API_KEY';
$fields =array( 'api_key'=>$api_key );
$opts =array( 'form_params'=>$fields );
try {
$client =new GuzzleHttp\Client( array( 'base_uri'=>$api_url ) );
$response=$client->post( $api_path,$opts );
$json =$response->getBody();
echo $json;
}
catch( Exception $e ) {
echo 'error = ',$e->getMessage(),"\n";
}
?>
#!/usr/bin/python
import requests
import json
api_url="https://api.tur.bo/domains"
result=requests.post( api_url,data="api_key=TURBO_API_KEY" )
print( json.dumps( result.json() ) )
#!/usr/bin/env ruby
require 'uri'
require 'net/http'
api_url="https://api.tur.bo/domains"
uri =URI( api_url )
result =Net::HTTP.post_form( uri,'api_key'=>'TURBO_API_KEY' )
puts result.body
{
"error":false,
"msg":"OK",
"domains":[
"tur.bo",
"pay.accountant",
"pay.apartments",
"pay.band",
"pay.basketball",
"pay.bike",
"pay.business",
"pay.catering",
"pay.cleaning",
"pay.condos",
"pay.construction",
"pay.contractors",
"pay.dance",
"pay.dentist",
"pay.dog",
"pay.engineer",
"pay.energy",
"pay.equipment",
"pay.faith",
"pay.fitness",
"pay.flights",
"pay.football",
"pay.foundation",
"pay.gallery",
"pay.gifts",
"pay.graphics",
"pay.hockey",
"pay.hospital",
"pay.jewelry",
"pay.insure",
"pay.investments",
"pay.kitchen",
"pay.lawyer",
"pay.llc",
"pay.management",
"pay.marketing",
"pay.memorial",
"pay.mortgage",
"pay.photography",
"pay.plumbing",
"pay.rent",
"pay.rentals",
"pay.repair",
"pay.school",
"pay.solar",
"pay.storage",
"pay.surf",
"pay.surgery",
"pay.technology",
"pay.tennis",
"pay.theater",
"pay.university",
"pay.vacations",
"pay.video",
"pay.vin",
"pay.wedding",
"payment.vet"
]}
JSON response object |
Key |
Value |
error |
true or false depending on if an error has occurred in the API request |
msg |
OK if all is well, otherwise will include descriptive error text |
domains |
list of valid payment link domains |