Anor payment
curl --request POST \
--url https://fbox.ngrok.io/payment/anor \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"qr_code": "50502044301381396427"
}
'import requests
url = "https://fbox.ngrok.io/payment/anor"
payload = {
"amount": 1000,
"qr_code": "50502044301381396427"
}
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: '50502044301381396427'})
};
fetch('https://fbox.ngrok.io/payment/anor', 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/anor",
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' => '50502044301381396427'
]),
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/anor"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"qr_code\": \"50502044301381396427\"\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/anor")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"qr_code\": \"50502044301381396427\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://fbox.ngrok.io/payment/anor")
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\": \"50502044301381396427\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"transaction_id": "a12fc00f-5af5-65b8-adf8-74bff44680ee",
"status": "successfully",
"message": "Payment completed successfully",
"error_code": null,
"payment_id": "696e0246c9a128176d5934d8",
"error_note": null,
"payment_status": 1,
"phone_number": "998712565009",
"card_number": "860012******3456"
},
"error": null,
"is_success": true
}{
"status": "error",
"message": "Invalid payment amount",
"error_code": 104
}Payment
Anor Payment
Initiate payments using Anor
POST
/
payment
/
anor
Anor payment
curl --request POST \
--url https://fbox.ngrok.io/payment/anor \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"qr_code": "50502044301381396427"
}
'import requests
url = "https://fbox.ngrok.io/payment/anor"
payload = {
"amount": 1000,
"qr_code": "50502044301381396427"
}
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: '50502044301381396427'})
};
fetch('https://fbox.ngrok.io/payment/anor', 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/anor",
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' => '50502044301381396427'
]),
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/anor"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"qr_code\": \"50502044301381396427\"\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/anor")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"qr_code\": \"50502044301381396427\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://fbox.ngrok.io/payment/anor")
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\": \"50502044301381396427\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"transaction_id": "a12fc00f-5af5-65b8-adf8-74bff44680ee",
"status": "successfully",
"message": "Payment completed successfully",
"error_code": null,
"payment_id": "696e0246c9a128176d5934d8",
"error_note": null,
"payment_status": 1,
"phone_number": "998712565009",
"card_number": "860012******3456"
},
"error": null,
"is_success": true
}{
"status": "error",
"message": "Invalid payment amount",
"error_code": 104
}Overview
The Anor Payment API is used to initiate a payment through Anor. 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 Payme transaction identifier |
Response Fields
✅ Success Response 200
| Field | Type | Description |
|---|---|---|
data | object | Response payload |
data.transaction_id | string | Transaction UUID |
data.status | string | Payment status (successfully, failed, etc.) |
data.message | string | Optional message from provider |
data.error_code | string | Optional message from provider |
data.payment_id | string | Unique payment identifier |
data.error_note | string | Error note |
data.payment_status | integer | Payment status provided by provider |
data.phone_number | string | Client phone number |
data.card_number | string | Client card 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 |
|---|---|---|
status | string | Error status (successfully, error, etc.) |
message | string | Human-readable error message |
error_code | integer | error_code provided by Provider |
Body
application/json
⌘I

