Click Pass payment
curl --request POST \
--url https://fbox.ngrok.io/payment/click \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"qr_code": "test"
}
'import requests
url = "https://fbox.ngrok.io/payment/click"
payload = {
"amount": 1000,
"qr_code": "test"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({amount: 1000, qr_code: 'test'})
};
fetch('https://fbox.ngrok.io/payment/click', 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://fbox.ngrok.io/payment/click",
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' => 1000,
'qr_code' => 'test'
]),
CURLOPT_HTTPHEADER => [
"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://fbox.ngrok.io/payment/click"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"qr_code\": \"test\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://fbox.ngrok.io/payment/click")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"qr_code\": \"test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://fbox.ngrok.io/payment/click")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 1000,\n \"qr_code\": \"test\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status_code": 0,
"status": "successfully",
"message": "",
"amount": 0,
"payment_id": "4710103925",
"transaction_id": "3dbec60e-df7d-4c14-929a-8d79b499f7cb",
"qr_code": null,
"client_phone_number": "998712565009"
},
"error": null,
"is_success": true
}{
"data": null,
"error": {
"code": 7,
"message": "{\"payment_id\":[\"This field may not be blank.\"]}",
"data": null
},
"is_success": false
}Payment
Click Pass
Initiate payments using Click
POST
/
payment
/
click
Click Pass payment
curl --request POST \
--url https://fbox.ngrok.io/payment/click \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"qr_code": "test"
}
'import requests
url = "https://fbox.ngrok.io/payment/click"
payload = {
"amount": 1000,
"qr_code": "test"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({amount: 1000, qr_code: 'test'})
};
fetch('https://fbox.ngrok.io/payment/click', 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://fbox.ngrok.io/payment/click",
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' => 1000,
'qr_code' => 'test'
]),
CURLOPT_HTTPHEADER => [
"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://fbox.ngrok.io/payment/click"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"qr_code\": \"test\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://fbox.ngrok.io/payment/click")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"qr_code\": \"test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://fbox.ngrok.io/payment/click")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 1000,\n \"qr_code\": \"test\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status_code": 0,
"status": "successfully",
"message": "",
"amount": 0,
"payment_id": "4710103925",
"transaction_id": "3dbec60e-df7d-4c14-929a-8d79b499f7cb",
"qr_code": null,
"client_phone_number": "998712565009"
},
"error": null,
"is_success": true
}{
"data": null,
"error": {
"code": 7,
"message": "{\"payment_id\":[\"This field may not be blank.\"]}",
"data": null
},
"is_success": false
}Overview
The Click Payment API is used to initiate a payment through Click. This endpoint creates a payment transaction and returns apayment_id
that must be used later for fiscalization.
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
amount | integer | ✅ | Payment amount in sums |
qr_code | string | ✅ | Unique Click transaction identifier |
Response Fields
✅ Success Response 200
| Field | Type | Description |
|---|---|---|
data | object | Response payload |
data.status_code | integer | Status code of payment (0 = success) |
data.status | string | Payment status (successfully, failed, etc.) |
data.message | string | null | Optional message from provider |
data.amount | integer | Payment amount in sums |
data.payment_id | string | Unique payment identifier |
data.transaction_id | string | Transaction UUID |
data.qr_code | string | null | QR code if provided |
data.client_phone_number | string | Client phone number |
error | null | Error object (always null on success) |
is_success | boolean | Always true |
🚫 Error Response 400
Note: Even if there is a validation error, the server returns HTTP status 200.
| Field | Type | Description |
|---|---|---|
data | null | No data returned |
error | object | Error details |
error.code | integer | Internal error code |
error.message | string | Human-readable error message |
error.data | any | null | Additional error details |
is_success | boolean | Always false |
⌘I

