Checkout hosted create
curl --request POST \
--url https://api.stablemint.io/v1/checkout/hosted \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Nonce: <api-key>' \
--header 'Signature: <api-key>' \
--header 'Timestamp: <api-key>' \
--data '
{
"amount": 123,
"currency": "<string>",
"errorUrl": "<string>",
"exitUrl": "<string>",
"successUrl": "<string>",
"supportUrl": "<string>",
"userCountryCode": "<string>",
"userEmail": "<string>",
"userId": "<string>",
"customFields": null,
"idempotencyKey": "<string>",
"userKyc": {
"citizenshipCountryCode": "<string>",
"dateOfBirth": "<string>",
"fullName": "<string>",
"gender": "<string>",
"mobilePhone": "<string>",
"personalIdentificationNumber": "<string>",
"placeOfBirth": "<string>",
"residenceAddress": "<string>"
},
"websiteReference": "<string>",
"widgetConfigurationSlug": "<string>"
}
'import requests
url = "https://api.stablemint.io/v1/checkout/hosted"
payload = {
"amount": 123,
"currency": "<string>",
"errorUrl": "<string>",
"exitUrl": "<string>",
"successUrl": "<string>",
"supportUrl": "<string>",
"userCountryCode": "<string>",
"userEmail": "<string>",
"userId": "<string>",
"customFields": None,
"idempotencyKey": "<string>",
"userKyc": {
"citizenshipCountryCode": "<string>",
"dateOfBirth": "<string>",
"fullName": "<string>",
"gender": "<string>",
"mobilePhone": "<string>",
"personalIdentificationNumber": "<string>",
"placeOfBirth": "<string>",
"residenceAddress": "<string>"
},
"websiteReference": "<string>",
"widgetConfigurationSlug": "<string>"
}
headers = {
"ApiKey": "<api-key>",
"Nonce": "<api-key>",
"Signature": "<api-key>",
"Timestamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
ApiKey: '<api-key>',
Nonce: '<api-key>',
Signature: '<api-key>',
Timestamp: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 123,
currency: '<string>',
errorUrl: '<string>',
exitUrl: '<string>',
successUrl: '<string>',
supportUrl: '<string>',
userCountryCode: '<string>',
userEmail: '<string>',
userId: '<string>',
customFields: null,
idempotencyKey: '<string>',
userKyc: {
citizenshipCountryCode: '<string>',
dateOfBirth: '<string>',
fullName: '<string>',
gender: '<string>',
mobilePhone: '<string>',
personalIdentificationNumber: '<string>',
placeOfBirth: '<string>',
residenceAddress: '<string>'
},
websiteReference: '<string>',
widgetConfigurationSlug: '<string>'
})
};
fetch('https://api.stablemint.io/v1/checkout/hosted', 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://api.stablemint.io/v1/checkout/hosted",
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([
'amount' => 123,
'currency' => '<string>',
'errorUrl' => '<string>',
'exitUrl' => '<string>',
'successUrl' => '<string>',
'supportUrl' => '<string>',
'userCountryCode' => '<string>',
'userEmail' => '<string>',
'userId' => '<string>',
'customFields' => null,
'idempotencyKey' => '<string>',
'userKyc' => [
'citizenshipCountryCode' => '<string>',
'dateOfBirth' => '<string>',
'fullName' => '<string>',
'gender' => '<string>',
'mobilePhone' => '<string>',
'personalIdentificationNumber' => '<string>',
'placeOfBirth' => '<string>',
'residenceAddress' => '<string>'
],
'websiteReference' => '<string>',
'widgetConfigurationSlug' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Content-Type: application/json",
"Nonce: <api-key>",
"Signature: <api-key>",
"Timestamp: <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://api.stablemint.io/v1/checkout/hosted"
payload := strings.NewReader("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"errorUrl\": \"<string>\",\n \"exitUrl\": \"<string>\",\n \"successUrl\": \"<string>\",\n \"supportUrl\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userId\": \"<string>\",\n \"customFields\": null,\n \"idempotencyKey\": \"<string>\",\n \"userKyc\": {\n \"citizenshipCountryCode\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"fullName\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobilePhone\": \"<string>\",\n \"personalIdentificationNumber\": \"<string>\",\n \"placeOfBirth\": \"<string>\",\n \"residenceAddress\": \"<string>\"\n },\n \"websiteReference\": \"<string>\",\n \"widgetConfigurationSlug\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Nonce", "<api-key>")
req.Header.Add("Signature", "<api-key>")
req.Header.Add("Timestamp", "<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://api.stablemint.io/v1/checkout/hosted")
.header("ApiKey", "<api-key>")
.header("Nonce", "<api-key>")
.header("Signature", "<api-key>")
.header("Timestamp", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"errorUrl\": \"<string>\",\n \"exitUrl\": \"<string>\",\n \"successUrl\": \"<string>\",\n \"supportUrl\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userId\": \"<string>\",\n \"customFields\": null,\n \"idempotencyKey\": \"<string>\",\n \"userKyc\": {\n \"citizenshipCountryCode\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"fullName\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobilePhone\": \"<string>\",\n \"personalIdentificationNumber\": \"<string>\",\n \"placeOfBirth\": \"<string>\",\n \"residenceAddress\": \"<string>\"\n },\n \"websiteReference\": \"<string>\",\n \"widgetConfigurationSlug\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablemint.io/v1/checkout/hosted")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ApiKey"] = '<api-key>'
request["Nonce"] = '<api-key>'
request["Signature"] = '<api-key>'
request["Timestamp"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"errorUrl\": \"<string>\",\n \"exitUrl\": \"<string>\",\n \"successUrl\": \"<string>\",\n \"supportUrl\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userId\": \"<string>\",\n \"customFields\": null,\n \"idempotencyKey\": \"<string>\",\n \"userKyc\": {\n \"citizenshipCountryCode\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"fullName\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobilePhone\": \"<string>\",\n \"personalIdentificationNumber\": \"<string>\",\n \"placeOfBirth\": \"<string>\",\n \"residenceAddress\": \"<string>\"\n },\n \"websiteReference\": \"<string>\",\n \"widgetConfigurationSlug\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"expiresAt": 123,
"reference": "<string>",
"url": "<string>"
}checkout
Checkout hosted create
POST
/
v1
/
checkout
/
hosted
Checkout hosted create
curl --request POST \
--url https://api.stablemint.io/v1/checkout/hosted \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Nonce: <api-key>' \
--header 'Signature: <api-key>' \
--header 'Timestamp: <api-key>' \
--data '
{
"amount": 123,
"currency": "<string>",
"errorUrl": "<string>",
"exitUrl": "<string>",
"successUrl": "<string>",
"supportUrl": "<string>",
"userCountryCode": "<string>",
"userEmail": "<string>",
"userId": "<string>",
"customFields": null,
"idempotencyKey": "<string>",
"userKyc": {
"citizenshipCountryCode": "<string>",
"dateOfBirth": "<string>",
"fullName": "<string>",
"gender": "<string>",
"mobilePhone": "<string>",
"personalIdentificationNumber": "<string>",
"placeOfBirth": "<string>",
"residenceAddress": "<string>"
},
"websiteReference": "<string>",
"widgetConfigurationSlug": "<string>"
}
'import requests
url = "https://api.stablemint.io/v1/checkout/hosted"
payload = {
"amount": 123,
"currency": "<string>",
"errorUrl": "<string>",
"exitUrl": "<string>",
"successUrl": "<string>",
"supportUrl": "<string>",
"userCountryCode": "<string>",
"userEmail": "<string>",
"userId": "<string>",
"customFields": None,
"idempotencyKey": "<string>",
"userKyc": {
"citizenshipCountryCode": "<string>",
"dateOfBirth": "<string>",
"fullName": "<string>",
"gender": "<string>",
"mobilePhone": "<string>",
"personalIdentificationNumber": "<string>",
"placeOfBirth": "<string>",
"residenceAddress": "<string>"
},
"websiteReference": "<string>",
"widgetConfigurationSlug": "<string>"
}
headers = {
"ApiKey": "<api-key>",
"Nonce": "<api-key>",
"Signature": "<api-key>",
"Timestamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
ApiKey: '<api-key>',
Nonce: '<api-key>',
Signature: '<api-key>',
Timestamp: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 123,
currency: '<string>',
errorUrl: '<string>',
exitUrl: '<string>',
successUrl: '<string>',
supportUrl: '<string>',
userCountryCode: '<string>',
userEmail: '<string>',
userId: '<string>',
customFields: null,
idempotencyKey: '<string>',
userKyc: {
citizenshipCountryCode: '<string>',
dateOfBirth: '<string>',
fullName: '<string>',
gender: '<string>',
mobilePhone: '<string>',
personalIdentificationNumber: '<string>',
placeOfBirth: '<string>',
residenceAddress: '<string>'
},
websiteReference: '<string>',
widgetConfigurationSlug: '<string>'
})
};
fetch('https://api.stablemint.io/v1/checkout/hosted', 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://api.stablemint.io/v1/checkout/hosted",
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([
'amount' => 123,
'currency' => '<string>',
'errorUrl' => '<string>',
'exitUrl' => '<string>',
'successUrl' => '<string>',
'supportUrl' => '<string>',
'userCountryCode' => '<string>',
'userEmail' => '<string>',
'userId' => '<string>',
'customFields' => null,
'idempotencyKey' => '<string>',
'userKyc' => [
'citizenshipCountryCode' => '<string>',
'dateOfBirth' => '<string>',
'fullName' => '<string>',
'gender' => '<string>',
'mobilePhone' => '<string>',
'personalIdentificationNumber' => '<string>',
'placeOfBirth' => '<string>',
'residenceAddress' => '<string>'
],
'websiteReference' => '<string>',
'widgetConfigurationSlug' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Content-Type: application/json",
"Nonce: <api-key>",
"Signature: <api-key>",
"Timestamp: <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://api.stablemint.io/v1/checkout/hosted"
payload := strings.NewReader("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"errorUrl\": \"<string>\",\n \"exitUrl\": \"<string>\",\n \"successUrl\": \"<string>\",\n \"supportUrl\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userId\": \"<string>\",\n \"customFields\": null,\n \"idempotencyKey\": \"<string>\",\n \"userKyc\": {\n \"citizenshipCountryCode\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"fullName\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobilePhone\": \"<string>\",\n \"personalIdentificationNumber\": \"<string>\",\n \"placeOfBirth\": \"<string>\",\n \"residenceAddress\": \"<string>\"\n },\n \"websiteReference\": \"<string>\",\n \"widgetConfigurationSlug\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Nonce", "<api-key>")
req.Header.Add("Signature", "<api-key>")
req.Header.Add("Timestamp", "<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://api.stablemint.io/v1/checkout/hosted")
.header("ApiKey", "<api-key>")
.header("Nonce", "<api-key>")
.header("Signature", "<api-key>")
.header("Timestamp", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"errorUrl\": \"<string>\",\n \"exitUrl\": \"<string>\",\n \"successUrl\": \"<string>\",\n \"supportUrl\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userId\": \"<string>\",\n \"customFields\": null,\n \"idempotencyKey\": \"<string>\",\n \"userKyc\": {\n \"citizenshipCountryCode\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"fullName\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobilePhone\": \"<string>\",\n \"personalIdentificationNumber\": \"<string>\",\n \"placeOfBirth\": \"<string>\",\n \"residenceAddress\": \"<string>\"\n },\n \"websiteReference\": \"<string>\",\n \"widgetConfigurationSlug\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablemint.io/v1/checkout/hosted")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ApiKey"] = '<api-key>'
request["Nonce"] = '<api-key>'
request["Signature"] = '<api-key>'
request["Timestamp"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"errorUrl\": \"<string>\",\n \"exitUrl\": \"<string>\",\n \"successUrl\": \"<string>\",\n \"supportUrl\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userId\": \"<string>\",\n \"customFields\": null,\n \"idempotencyKey\": \"<string>\",\n \"userKyc\": {\n \"citizenshipCountryCode\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"fullName\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobilePhone\": \"<string>\",\n \"personalIdentificationNumber\": \"<string>\",\n \"placeOfBirth\": \"<string>\",\n \"residenceAddress\": \"<string>\"\n },\n \"websiteReference\": \"<string>\",\n \"widgetConfigurationSlug\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"expiresAt": 123,
"reference": "<string>",
"url": "<string>"
}Authorizations
The service account's API key.
A GUID, single-use. A replayed nonce is rejected.
Base64 RSA/SHA-256 (PKCS#1 v1.5) signature over the canonical string: METHOD, path, canonical query, Timestamp, Nonce, API secret and the lowercase hex SHA-256 of the raw body, joined with LF. Sign the PUBLIC path exactly as called (e.g. /v1/webhooks), not any internal path.
Unix seconds. Rejected outside the server's tolerance window.
Body
application/json
Show child attributes
Show child attributes