curl --request POST \
--url https://thirdparty.qonto.com/v2/terminals/{id}/payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Qonto-Idempotency-Key: <x-qonto-idempotency-key>' \
--data '
{
"amount": {
"value": "13.30",
"currency": "EUR"
},
"metadata": {
"order_id": "order-456",
"table": "12"
}
}
'import requests
url = "https://thirdparty.qonto.com/v2/terminals/{id}/payment"
payload = {
"amount": {
"value": "13.30",
"currency": "EUR"
},
"metadata": {
"order_id": "order-456",
"table": "12"
}
}
headers = {
"X-Qonto-Idempotency-Key": "<x-qonto-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Qonto-Idempotency-Key': '<x-qonto-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: {value: '13.30', currency: 'EUR'},
metadata: {order_id: 'order-456', table: '12'}
})
};
fetch('https://thirdparty.qonto.com/v2/terminals/{id}/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://thirdparty.qonto.com/v2/terminals/{id}/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([
'amount' => [
'value' => '13.30',
'currency' => 'EUR'
],
'metadata' => [
'order_id' => 'order-456',
'table' => '12'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Qonto-Idempotency-Key: <x-qonto-idempotency-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://thirdparty.qonto.com/v2/terminals/{id}/payment"
payload := strings.NewReader("{\n \"amount\": {\n \"value\": \"13.30\",\n \"currency\": \"EUR\"\n },\n \"metadata\": {\n \"order_id\": \"order-456\",\n \"table\": \"12\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Qonto-Idempotency-Key", "<x-qonto-idempotency-key>")
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://thirdparty.qonto.com/v2/terminals/{id}/payment")
.header("X-Qonto-Idempotency-Key", "<x-qonto-idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": {\n \"value\": \"13.30\",\n \"currency\": \"EUR\"\n },\n \"metadata\": {\n \"order_id\": \"order-456\",\n \"table\": \"12\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://thirdparty.qonto.com/v2/terminals/{id}/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Qonto-Idempotency-Key"] = '<x-qonto-idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": {\n \"value\": \"13.30\",\n \"currency\": \"EUR\"\n },\n \"metadata\": {\n \"order_id\": \"order-456\",\n \"table\": \"12\"\n }\n}"
response = http.request(request)
puts response.read_bodyCreate a terminal payment
OAuth scope: terminal.write
Initiates an async payment on a specific terminal. The terminal must be powered on and connected to the internet.
The response is 202 Accepted — the payment has been queued but not yet processed.
Precondition: The terminal must be powered on and connected to the internet. If offline, the request is accepted but no payment will be processed. Implement a client-side timeout (~120 seconds) to handle this case.
Idempotency: The X-Qonto-Idempotency-Key header is required. Use it to safely retry requests without creating duplicate payments.
Metadata: The optional metadata field lets you attach free-form context to the payment. It must be a valid JSON object and must not exceed 1kB. It is stored as-is and echoed back in the 202 response. Use it to cross-reference the payment with your own system — for example, an order ID, table number, or any other POS-specific data. The content is not interpreted by Qonto.
curl --request POST \
--url https://thirdparty.qonto.com/v2/terminals/{id}/payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Qonto-Idempotency-Key: <x-qonto-idempotency-key>' \
--data '
{
"amount": {
"value": "13.30",
"currency": "EUR"
},
"metadata": {
"order_id": "order-456",
"table": "12"
}
}
'import requests
url = "https://thirdparty.qonto.com/v2/terminals/{id}/payment"
payload = {
"amount": {
"value": "13.30",
"currency": "EUR"
},
"metadata": {
"order_id": "order-456",
"table": "12"
}
}
headers = {
"X-Qonto-Idempotency-Key": "<x-qonto-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Qonto-Idempotency-Key': '<x-qonto-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: {value: '13.30', currency: 'EUR'},
metadata: {order_id: 'order-456', table: '12'}
})
};
fetch('https://thirdparty.qonto.com/v2/terminals/{id}/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://thirdparty.qonto.com/v2/terminals/{id}/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([
'amount' => [
'value' => '13.30',
'currency' => 'EUR'
],
'metadata' => [
'order_id' => 'order-456',
'table' => '12'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Qonto-Idempotency-Key: <x-qonto-idempotency-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://thirdparty.qonto.com/v2/terminals/{id}/payment"
payload := strings.NewReader("{\n \"amount\": {\n \"value\": \"13.30\",\n \"currency\": \"EUR\"\n },\n \"metadata\": {\n \"order_id\": \"order-456\",\n \"table\": \"12\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Qonto-Idempotency-Key", "<x-qonto-idempotency-key>")
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://thirdparty.qonto.com/v2/terminals/{id}/payment")
.header("X-Qonto-Idempotency-Key", "<x-qonto-idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": {\n \"value\": \"13.30\",\n \"currency\": \"EUR\"\n },\n \"metadata\": {\n \"order_id\": \"order-456\",\n \"table\": \"12\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://thirdparty.qonto.com/v2/terminals/{id}/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Qonto-Idempotency-Key"] = '<x-qonto-idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": {\n \"value\": \"13.30\",\n \"currency\": \"EUR\"\n },\n \"metadata\": {\n \"order_id\": \"order-456\",\n \"table\": \"12\"\n }\n}"
response = http.request(request)
puts response.read_bodyv1/terminal-payments webhook subscription, you will receive the payment outcome (authorized or refused) as a webhook event once the cardholder completes the payment on the terminal.Authorizations
Bearer authorization header: Bearer <token>, where <token> is the access token received from the authorization server at the end of the OAuth 2.0 flow.
Headers
Learn more in Idempotent Requests.
"123e4567-e89b-12d3-a456-426614174000"
Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.
Path Parameters
Terminal UUID (from GET /v2/terminals).
Body
Show child attributes
Show child attributes
Optional free-form JSON object. Must be a valid JSON object and must not exceed 1kB. Stored as-is and echoed back in the 202 response.
Use it to cross-reference the payment with your own system — for example an order ID, table number, or any other POS-specific data. The content is not interpreted by Qonto.
{ "order_id": "order-456", "table": "12", "source": "pos_vendor_identifier" }
Response
The payment has been accepted and is being processed asynchronously.
Show child attributes
Show child attributes
Was this page helpful?