Execute a conversion
curl --request POST \
--url https://sandbox-api.platform.chipper.ai/v1/conversions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quoteId": "<string>"
}
'import requests
url = "https://sandbox-api.platform.chipper.ai/v1/conversions"
payload = { "quoteId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '<string>'})
};
fetch('https://sandbox-api.platform.chipper.ai/v1/conversions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.platform.chipper.ai/v1/conversions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quoteId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.platform.chipper.ai/v1/conversions"
payload := strings.NewReader("{\n \"quoteId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.platform.chipper.ai/v1/conversions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.platform.chipper.ai/v1/conversions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"conversion": {
"id": "conv_b7y4nq2vx9mk1hzp5rlw",
"status": "completed",
"quoteId": "qte_k3m9x2pw7fqz1ncv8hdt",
"from": {
"accountNumber": "GHS12345678",
"amount": "1000.00",
"currency": "GHS"
},
"to": {
"accountNumber": "USD87654321",
"amount": "62.50",
"currency": "USD"
},
"rate": "0.0625",
"statusMessage": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:13:02.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"conversion": {
"id": "conv_b7y4nq2vx9mk1hzp5rlw",
"status": "completed",
"quoteId": "qte_k3m9x2pw7fqz1ncv8hdt",
"from": {
"accountNumber": "GHS12345678",
"amount": "1000.00",
"currency": "GHS"
},
"to": {
"accountNumber": "USD87654321",
"amount": "62.50",
"currency": "USD"
},
"rate": "0.0625",
"statusMessage": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:13:02.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "bad_request",
"message": "Quote has expired",
"requestId": "req_q7vei435zifs51ia0lqr"
}{
"error": "unauthorized",
"message": "Invalid API key",
"requestId": "req_q7vei435zifs51ia0lqr"
}{
"error": "forbidden",
"message": "API key does not have the required scope",
"requestId": "req_q7vei435zifs51ia0lqr"
}{
"error": "not_found",
"message": "Conversion quote not found",
"requestId": "req_q7vei435zifs51ia0lqr"
}Conversions
Execute a conversion
Executes a pending quote: from.amount is debited from your from.currency balance and to.amount is credited to your to.currency balance atomically, at the quoted rate. A quote can only be executed once; expired or already-executed quotes are rejected with 400, so request a fresh quote and try again.
POST
/
v1
/
conversions
Execute a conversion
curl --request POST \
--url https://sandbox-api.platform.chipper.ai/v1/conversions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quoteId": "<string>"
}
'import requests
url = "https://sandbox-api.platform.chipper.ai/v1/conversions"
payload = { "quoteId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '<string>'})
};
fetch('https://sandbox-api.platform.chipper.ai/v1/conversions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.platform.chipper.ai/v1/conversions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quoteId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.platform.chipper.ai/v1/conversions"
payload := strings.NewReader("{\n \"quoteId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.platform.chipper.ai/v1/conversions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.platform.chipper.ai/v1/conversions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"conversion": {
"id": "conv_b7y4nq2vx9mk1hzp5rlw",
"status": "completed",
"quoteId": "qte_k3m9x2pw7fqz1ncv8hdt",
"from": {
"accountNumber": "GHS12345678",
"amount": "1000.00",
"currency": "GHS"
},
"to": {
"accountNumber": "USD87654321",
"amount": "62.50",
"currency": "USD"
},
"rate": "0.0625",
"statusMessage": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:13:02.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"conversion": {
"id": "conv_b7y4nq2vx9mk1hzp5rlw",
"status": "completed",
"quoteId": "qte_k3m9x2pw7fqz1ncv8hdt",
"from": {
"accountNumber": "GHS12345678",
"amount": "1000.00",
"currency": "GHS"
},
"to": {
"accountNumber": "USD87654321",
"amount": "62.50",
"currency": "USD"
},
"rate": "0.0625",
"statusMessage": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:13:02.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "bad_request",
"message": "Quote has expired",
"requestId": "req_q7vei435zifs51ia0lqr"
}{
"error": "unauthorized",
"message": "Invalid API key",
"requestId": "req_q7vei435zifs51ia0lqr"
}{
"error": "forbidden",
"message": "API key does not have the required scope",
"requestId": "req_q7vei435zifs51ia0lqr"
}{
"error": "not_found",
"message": "Conversion quote not found",
"requestId": "req_q7vei435zifs51ia0lqr"
}Authorizations
Your API key: sk_test_… (sandbox) or sk_live_… (production).
Body
application/json
Minimum string length:
1Response
A concurrent execute of the same quote was already in flight — its result is returned.
Show child attributes
Show child attributes
⌘I