curl --request POST \
--url https://sandbox-api.platform.chipper.ai/v1/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": {
"code": "<string>",
"currency": "<string>",
"accountNumber": "<string>",
"amount": 1,
"kyc": {}
},
"to": {
"code": "<string>",
"accountNumber": "<string>",
"currency": "<string>",
"tag": "<string>",
"amount": 1,
"kyc": {}
},
"externalReference": "<string>",
"narration": "<string>",
"metadata": {}
}
'import requests
url = "https://sandbox-api.platform.chipper.ai/v1/orders"
payload = {
"from": {
"code": "<string>",
"currency": "<string>",
"accountNumber": "<string>",
"amount": 1,
"kyc": {}
},
"to": {
"code": "<string>",
"accountNumber": "<string>",
"currency": "<string>",
"tag": "<string>",
"amount": 1,
"kyc": {}
},
"externalReference": "<string>",
"narration": "<string>",
"metadata": {}
}
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({
from: {
code: '<string>',
currency: '<string>',
accountNumber: '<string>',
amount: 1,
kyc: {}
},
to: {
code: '<string>',
accountNumber: '<string>',
currency: '<string>',
tag: '<string>',
amount: 1,
kyc: {}
},
externalReference: '<string>',
narration: '<string>',
metadata: {}
})
};
fetch('https://sandbox-api.platform.chipper.ai/v1/orders', 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/orders",
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([
'from' => [
'code' => '<string>',
'currency' => '<string>',
'accountNumber' => '<string>',
'amount' => 1,
'kyc' => [
]
],
'to' => [
'code' => '<string>',
'accountNumber' => '<string>',
'currency' => '<string>',
'tag' => '<string>',
'amount' => 1,
'kyc' => [
]
],
'externalReference' => '<string>',
'narration' => '<string>',
'metadata' => [
]
]),
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/orders"
payload := strings.NewReader("{\n \"from\": {\n \"code\": \"<string>\",\n \"currency\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"to\": {\n \"code\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"currency\": \"<string>\",\n \"tag\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"externalReference\": \"<string>\",\n \"narration\": \"<string>\",\n \"metadata\": {}\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/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"from\": {\n \"code\": \"<string>\",\n \"currency\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"to\": {\n \"code\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"currency\": \"<string>\",\n \"tag\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"externalReference\": \"<string>\",\n \"narration\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.platform.chipper.ai/v1/orders")
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 \"from\": {\n \"code\": \"<string>\",\n \"currency\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"to\": {\n \"code\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"currency\": \"<string>\",\n \"tag\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"externalReference\": \"<string>\",\n \"narration\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"order": {
"id": "ord_p95akjfs339uy9icpelj",
"status": "created",
"from": {
"code": "usdc_solana",
"amount": "100.00",
"currency": "USDC",
"accountNumber": "<string>",
"bank": "<string>",
"address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"tag": "<string>",
"chain": "Solana",
"kyc": {}
},
"to": {
"code": "gh_mtn",
"accountNumber": "233559630374",
"amount": "1598.00",
"currency": "GHS",
"tag": "<string>",
"kyc": {}
},
"fee": {
"amount": "1.00",
"currency": "USDC"
},
"rate": "15.9800",
"instructions": {
"type": "crypto",
"message": "Send 101.00 USDC on Solana to 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"amount": "101.00",
"currency": "USDC",
"address": "<string>",
"tag": "<string>",
"chain": "Solana",
"bank": "<string>",
"accountNumber": "<string>",
"accountName": "<string>"
},
"expectedAmount": "101.00",
"receivedAmount": "101.00",
"collectionId": "col_x7kd92mfn3qp8wz4t6vb",
"payoutId": "pay_ghs_p95akjfs339uy9icpelj",
"externalReference": "inv-1042",
"narration": "Invoice #1042",
"metadata": {},
"statusMessage": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:12:44.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"order": {
"id": "ord_p95akjfs339uy9icpelj",
"status": "created",
"from": {
"code": "usdc_solana",
"amount": "100.00",
"currency": "USDC",
"accountNumber": "<string>",
"bank": "<string>",
"address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"tag": "<string>",
"chain": "Solana",
"kyc": {}
},
"to": {
"code": "gh_mtn",
"accountNumber": "233559630374",
"amount": "1598.00",
"currency": "GHS",
"tag": "<string>",
"kyc": {}
},
"fee": {
"amount": "1.00",
"currency": "USDC"
},
"rate": "15.9800",
"instructions": {
"type": "crypto",
"message": "Send 101.00 USDC on Solana to 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"amount": "101.00",
"currency": "USDC",
"address": "<string>",
"tag": "<string>",
"chain": "Solana",
"bank": "<string>",
"accountNumber": "<string>",
"accountName": "<string>"
},
"expectedAmount": "101.00",
"receivedAmount": "101.00",
"collectionId": "col_x7kd92mfn3qp8wz4t6vb",
"payoutId": "pay_ghs_p95akjfs339uy9icpelj",
"externalReference": "inv-1042",
"narration": "Invoice #1042",
"metadata": {},
"statusMessage": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:12:44.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "validation_error",
"message": "Request validation failed",
"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": "duplicate",
"message": "Order with this externalReference already exists",
"requestId": "req_q7vei435zifs51ia0lqr"
}Create an order
Collect on one rail and pay out on another in a single call — e.g. take USDC on Solana and deliver GHS to an MTN mobile money wallet. Give the amount on exactly one side: to.amount (“deliver exactly this much”) or from.amount (“the customer sends exactly this much”); cross-currency orders lock the live rate at creation. The response carries instructions telling the customer where to send funds (a deposit address, a virtual account, or a mobile money prompt); the payout fires automatically once funds land. externalReference is your idempotency key: an identical retry returns the original order with 200, a retry with different from/to details is rejected with 409.
curl --request POST \
--url https://sandbox-api.platform.chipper.ai/v1/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": {
"code": "<string>",
"currency": "<string>",
"accountNumber": "<string>",
"amount": 1,
"kyc": {}
},
"to": {
"code": "<string>",
"accountNumber": "<string>",
"currency": "<string>",
"tag": "<string>",
"amount": 1,
"kyc": {}
},
"externalReference": "<string>",
"narration": "<string>",
"metadata": {}
}
'import requests
url = "https://sandbox-api.platform.chipper.ai/v1/orders"
payload = {
"from": {
"code": "<string>",
"currency": "<string>",
"accountNumber": "<string>",
"amount": 1,
"kyc": {}
},
"to": {
"code": "<string>",
"accountNumber": "<string>",
"currency": "<string>",
"tag": "<string>",
"amount": 1,
"kyc": {}
},
"externalReference": "<string>",
"narration": "<string>",
"metadata": {}
}
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({
from: {
code: '<string>',
currency: '<string>',
accountNumber: '<string>',
amount: 1,
kyc: {}
},
to: {
code: '<string>',
accountNumber: '<string>',
currency: '<string>',
tag: '<string>',
amount: 1,
kyc: {}
},
externalReference: '<string>',
narration: '<string>',
metadata: {}
})
};
fetch('https://sandbox-api.platform.chipper.ai/v1/orders', 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/orders",
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([
'from' => [
'code' => '<string>',
'currency' => '<string>',
'accountNumber' => '<string>',
'amount' => 1,
'kyc' => [
]
],
'to' => [
'code' => '<string>',
'accountNumber' => '<string>',
'currency' => '<string>',
'tag' => '<string>',
'amount' => 1,
'kyc' => [
]
],
'externalReference' => '<string>',
'narration' => '<string>',
'metadata' => [
]
]),
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/orders"
payload := strings.NewReader("{\n \"from\": {\n \"code\": \"<string>\",\n \"currency\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"to\": {\n \"code\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"currency\": \"<string>\",\n \"tag\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"externalReference\": \"<string>\",\n \"narration\": \"<string>\",\n \"metadata\": {}\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/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"from\": {\n \"code\": \"<string>\",\n \"currency\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"to\": {\n \"code\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"currency\": \"<string>\",\n \"tag\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"externalReference\": \"<string>\",\n \"narration\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.platform.chipper.ai/v1/orders")
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 \"from\": {\n \"code\": \"<string>\",\n \"currency\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"to\": {\n \"code\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"currency\": \"<string>\",\n \"tag\": \"<string>\",\n \"amount\": 1,\n \"kyc\": {}\n },\n \"externalReference\": \"<string>\",\n \"narration\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"order": {
"id": "ord_p95akjfs339uy9icpelj",
"status": "created",
"from": {
"code": "usdc_solana",
"amount": "100.00",
"currency": "USDC",
"accountNumber": "<string>",
"bank": "<string>",
"address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"tag": "<string>",
"chain": "Solana",
"kyc": {}
},
"to": {
"code": "gh_mtn",
"accountNumber": "233559630374",
"amount": "1598.00",
"currency": "GHS",
"tag": "<string>",
"kyc": {}
},
"fee": {
"amount": "1.00",
"currency": "USDC"
},
"rate": "15.9800",
"instructions": {
"type": "crypto",
"message": "Send 101.00 USDC on Solana to 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"amount": "101.00",
"currency": "USDC",
"address": "<string>",
"tag": "<string>",
"chain": "Solana",
"bank": "<string>",
"accountNumber": "<string>",
"accountName": "<string>"
},
"expectedAmount": "101.00",
"receivedAmount": "101.00",
"collectionId": "col_x7kd92mfn3qp8wz4t6vb",
"payoutId": "pay_ghs_p95akjfs339uy9icpelj",
"externalReference": "inv-1042",
"narration": "Invoice #1042",
"metadata": {},
"statusMessage": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:12:44.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"order": {
"id": "ord_p95akjfs339uy9icpelj",
"status": "created",
"from": {
"code": "usdc_solana",
"amount": "100.00",
"currency": "USDC",
"accountNumber": "<string>",
"bank": "<string>",
"address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"tag": "<string>",
"chain": "Solana",
"kyc": {}
},
"to": {
"code": "gh_mtn",
"accountNumber": "233559630374",
"amount": "1598.00",
"currency": "GHS",
"tag": "<string>",
"kyc": {}
},
"fee": {
"amount": "1.00",
"currency": "USDC"
},
"rate": "15.9800",
"instructions": {
"type": "crypto",
"message": "Send 101.00 USDC on Solana to 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"amount": "101.00",
"currency": "USDC",
"address": "<string>",
"tag": "<string>",
"chain": "Solana",
"bank": "<string>",
"accountNumber": "<string>",
"accountName": "<string>"
},
"expectedAmount": "101.00",
"receivedAmount": "101.00",
"collectionId": "col_x7kd92mfn3qp8wz4t6vb",
"payoutId": "pay_ghs_p95akjfs339uy9icpelj",
"externalReference": "inv-1042",
"narration": "Invoice #1042",
"metadata": {},
"statusMessage": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-08-01T09:12:44.000Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "validation_error",
"message": "Request validation failed",
"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": "duplicate",
"message": "Order with this externalReference already exists",
"requestId": "req_q7vei435zifs51ia0lqr"
}Authorizations
Your API key: sk_test_… (sandbox) or sk_live_… (production).
Body
Response
Idempotent replay — this externalReference was already used with the same intent, the original order is returned.
Show child attributes
Show child attributes