Create payment
curl --request POST \
--url https://staging-biz.coinprofile.co/v2/payment \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-User: <api-key>' \
--header 'X-User-Version: <api-key>' \
--data '
{
"businessId": "<string>",
"incomingCurrency": "<string>",
"outgoingCurrency": "<string>",
"customerEmail": "<string>",
"paymentType": "<string>",
"reference": "<string>",
"incomingAmount": 123,
"outgoingAmount": 123,
"rateKey": "<string>",
"coinprofileUsername": "<string>",
"country": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>"
}
'import requests
url = "https://staging-biz.coinprofile.co/v2/payment"
payload = {
"businessId": "<string>",
"incomingCurrency": "<string>",
"outgoingCurrency": "<string>",
"customerEmail": "<string>",
"paymentType": "<string>",
"reference": "<string>",
"incomingAmount": 123,
"outgoingAmount": 123,
"rateKey": "<string>",
"coinprofileUsername": "<string>",
"country": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>"
}
headers = {
"X-Api-User": "<api-key>",
"X-Api-Key": "<api-key>",
"X-User-Version": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-User': '<api-key>',
'X-Api-Key': '<api-key>',
'X-User-Version': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
businessId: '<string>',
incomingCurrency: '<string>',
outgoingCurrency: '<string>',
customerEmail: '<string>',
paymentType: '<string>',
reference: '<string>',
incomingAmount: 123,
outgoingAmount: 123,
rateKey: '<string>',
coinprofileUsername: '<string>',
country: '<string>',
accountNumber: '<string>',
accountName: '<string>',
bank: '<string>',
bankCode: '<string>'
})
};
fetch('https://staging-biz.coinprofile.co/v2/payment', 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://staging-biz.coinprofile.co/v2/payment",
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([
'businessId' => '<string>',
'incomingCurrency' => '<string>',
'outgoingCurrency' => '<string>',
'customerEmail' => '<string>',
'paymentType' => '<string>',
'reference' => '<string>',
'incomingAmount' => 123,
'outgoingAmount' => 123,
'rateKey' => '<string>',
'coinprofileUsername' => '<string>',
'country' => '<string>',
'accountNumber' => '<string>',
'accountName' => '<string>',
'bank' => '<string>',
'bankCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Api-User: <api-key>",
"X-User-Version: <api-key>"
],
]);
$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://staging-biz.coinprofile.co/v2/payment"
payload := strings.NewReader("{\n \"businessId\": \"<string>\",\n \"incomingCurrency\": \"<string>\",\n \"outgoingCurrency\": \"<string>\",\n \"customerEmail\": \"<string>\",\n \"paymentType\": \"<string>\",\n \"reference\": \"<string>\",\n \"incomingAmount\": 123,\n \"outgoingAmount\": 123,\n \"rateKey\": \"<string>\",\n \"coinprofileUsername\": \"<string>\",\n \"country\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-User", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-User-Version", "<api-key>")
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://staging-biz.coinprofile.co/v2/payment")
.header("X-Api-User", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-User-Version", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"businessId\": \"<string>\",\n \"incomingCurrency\": \"<string>\",\n \"outgoingCurrency\": \"<string>\",\n \"customerEmail\": \"<string>\",\n \"paymentType\": \"<string>\",\n \"reference\": \"<string>\",\n \"incomingAmount\": 123,\n \"outgoingAmount\": 123,\n \"rateKey\": \"<string>\",\n \"coinprofileUsername\": \"<string>\",\n \"country\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-biz.coinprofile.co/v2/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-User"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-User-Version"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"businessId\": \"<string>\",\n \"incomingCurrency\": \"<string>\",\n \"outgoingCurrency\": \"<string>\",\n \"customerEmail\": \"<string>\",\n \"paymentType\": \"<string>\",\n \"reference\": \"<string>\",\n \"incomingAmount\": 123,\n \"outgoingAmount\": 123,\n \"rateKey\": \"<string>\",\n \"coinprofileUsername\": \"<string>\",\n \"country\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"incomingAmount": 123,
"outgoingAmount": 123,
"confirmedAmount": 123,
"unconfirmedAmount": 123,
"state": "<string>",
"_id": "<string>",
"businessId": "<string>",
"reference": "<string>",
"incomingCurrency": "<string>",
"outgoingCurrency": "<string>",
"expTime": "<string>",
"address": "<string>",
"customerEmail": "<string>",
"paymentType": "<string>",
"account": "<string>",
"rate": 123,
"threadTS": "<string>",
"senderUsername": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Offramp
Create payment
Create a new payment
POST
/
payment
Create payment
curl --request POST \
--url https://staging-biz.coinprofile.co/v2/payment \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-User: <api-key>' \
--header 'X-User-Version: <api-key>' \
--data '
{
"businessId": "<string>",
"incomingCurrency": "<string>",
"outgoingCurrency": "<string>",
"customerEmail": "<string>",
"paymentType": "<string>",
"reference": "<string>",
"incomingAmount": 123,
"outgoingAmount": 123,
"rateKey": "<string>",
"coinprofileUsername": "<string>",
"country": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>"
}
'import requests
url = "https://staging-biz.coinprofile.co/v2/payment"
payload = {
"businessId": "<string>",
"incomingCurrency": "<string>",
"outgoingCurrency": "<string>",
"customerEmail": "<string>",
"paymentType": "<string>",
"reference": "<string>",
"incomingAmount": 123,
"outgoingAmount": 123,
"rateKey": "<string>",
"coinprofileUsername": "<string>",
"country": "<string>",
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>"
}
headers = {
"X-Api-User": "<api-key>",
"X-Api-Key": "<api-key>",
"X-User-Version": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-User': '<api-key>',
'X-Api-Key': '<api-key>',
'X-User-Version': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
businessId: '<string>',
incomingCurrency: '<string>',
outgoingCurrency: '<string>',
customerEmail: '<string>',
paymentType: '<string>',
reference: '<string>',
incomingAmount: 123,
outgoingAmount: 123,
rateKey: '<string>',
coinprofileUsername: '<string>',
country: '<string>',
accountNumber: '<string>',
accountName: '<string>',
bank: '<string>',
bankCode: '<string>'
})
};
fetch('https://staging-biz.coinprofile.co/v2/payment', 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://staging-biz.coinprofile.co/v2/payment",
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([
'businessId' => '<string>',
'incomingCurrency' => '<string>',
'outgoingCurrency' => '<string>',
'customerEmail' => '<string>',
'paymentType' => '<string>',
'reference' => '<string>',
'incomingAmount' => 123,
'outgoingAmount' => 123,
'rateKey' => '<string>',
'coinprofileUsername' => '<string>',
'country' => '<string>',
'accountNumber' => '<string>',
'accountName' => '<string>',
'bank' => '<string>',
'bankCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Api-User: <api-key>",
"X-User-Version: <api-key>"
],
]);
$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://staging-biz.coinprofile.co/v2/payment"
payload := strings.NewReader("{\n \"businessId\": \"<string>\",\n \"incomingCurrency\": \"<string>\",\n \"outgoingCurrency\": \"<string>\",\n \"customerEmail\": \"<string>\",\n \"paymentType\": \"<string>\",\n \"reference\": \"<string>\",\n \"incomingAmount\": 123,\n \"outgoingAmount\": 123,\n \"rateKey\": \"<string>\",\n \"coinprofileUsername\": \"<string>\",\n \"country\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-User", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-User-Version", "<api-key>")
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://staging-biz.coinprofile.co/v2/payment")
.header("X-Api-User", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-User-Version", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"businessId\": \"<string>\",\n \"incomingCurrency\": \"<string>\",\n \"outgoingCurrency\": \"<string>\",\n \"customerEmail\": \"<string>\",\n \"paymentType\": \"<string>\",\n \"reference\": \"<string>\",\n \"incomingAmount\": 123,\n \"outgoingAmount\": 123,\n \"rateKey\": \"<string>\",\n \"coinprofileUsername\": \"<string>\",\n \"country\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-biz.coinprofile.co/v2/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-User"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-User-Version"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"businessId\": \"<string>\",\n \"incomingCurrency\": \"<string>\",\n \"outgoingCurrency\": \"<string>\",\n \"customerEmail\": \"<string>\",\n \"paymentType\": \"<string>\",\n \"reference\": \"<string>\",\n \"incomingAmount\": 123,\n \"outgoingAmount\": 123,\n \"rateKey\": \"<string>\",\n \"coinprofileUsername\": \"<string>\",\n \"country\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"incomingAmount": 123,
"outgoingAmount": 123,
"confirmedAmount": 123,
"unconfirmedAmount": 123,
"state": "<string>",
"_id": "<string>",
"businessId": "<string>",
"reference": "<string>",
"incomingCurrency": "<string>",
"outgoingCurrency": "<string>",
"expTime": "<string>",
"address": "<string>",
"customerEmail": "<string>",
"paymentType": "<string>",
"account": "<string>",
"rate": 123,
"threadTS": "<string>",
"senderUsername": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Authorizations
Body
application/json
The business id
The incoming currency
The outgoing currency
The rate key
The payment type
The reference
The incoming amount
The outgoing amount
The rate key
The coinprofile username. Required when paymentType is profile
The country. Required when paymentType is bank
The account number. Required when paymentType is bank
The account name. Required when paymentType is bank
The bank name. Required when paymentType is bank
The bank code. Required when paymentType is bank
Was this page helpful?
⌘I