Payme Go payment
curl --request POST \
--url https://fbox.ngrok.io/payment/payme \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"qr_code": "50502044301381396427"
}
'import requests
url = "https://fbox.ngrok.io/payment/payme"
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/payme', 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/payme",
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/payme"
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/payme")
.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/payme")
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": {
"amount": 1000,
"transaction_id": "a12fc00f-5af5-65b8-adf8-74bff44680ee",
"payment_id": "696e0246c9a128176d5934d8",
"inn": "123456789",
"qr_code": "50502244301381336427",
"kkm_id": "00000011",
"device_id": "00000011",
"status": "successfully",
"message": "successfully payment",
"client_phone_number": "998712565009"
},
"error": null,
"is_success": true
}{
"data": null,
"error": {
"code": 104,
"message": "BILLING_ERROR",
"data": null
},
"is_success": false
}To'lovlar
Payme to'lovi
Payme orqali to’lovni boshlash
POST
/
payment
/
payme
Payme Go payment
curl --request POST \
--url https://fbox.ngrok.io/payment/payme \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"qr_code": "50502044301381396427"
}
'import requests
url = "https://fbox.ngrok.io/payment/payme"
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/payme', 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/payme",
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/payme"
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/payme")
.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/payme")
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": {
"amount": 1000,
"transaction_id": "a12fc00f-5af5-65b8-adf8-74bff44680ee",
"payment_id": "696e0246c9a128176d5934d8",
"inn": "123456789",
"qr_code": "50502244301381336427",
"kkm_id": "00000011",
"device_id": "00000011",
"status": "successfully",
"message": "successfully payment",
"client_phone_number": "998712565009"
},
"error": null,
"is_success": true
}{
"data": null,
"error": {
"code": 104,
"message": "BILLING_ERROR",
"data": null
},
"is_success": false
}Umumiy ko’rinish
Payme Go Payment API Payme orqali to’lovni boshlash uchun ishlatiladi. Bu endpoint to’lov tranzaksiyasini yaratadi vapayment_id qaytaradi
that must be used later for fiscalization.
So’rov maydonlari
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
amount | integer | ✅ | Payment amount in sums |
qr_code | string | ✅ | Unique Payme transaction identifier |
Javob maydonlari
✅ Muvaffaqiyatli javob 200
| Maydon | Turi | Tavsif |
|---|---|---|
data | object | Javob ma’lumoti |
data.amount | integer | Payment amount in sums |
data.transaction_id | string | Transaction UUID |
data.payment_id | string | Unique payment identifier |
data.inn | string | Client tax identifier |
data.qr_code | string | QR code of the transaction |
data.kkm_id | string | KKM (cash register) ID |
data.device_id | string | Device ID |
data.status | string | Payment status (successfully, failed, etc.) |
data.message | string | Optional message from provider |
data.client_phone_number | string | Client phone number |
error | null | Error object (always null on success) |
is_success | boolean | Always true |
🚫 Xatolik javobi 400
Eslatma: Validatsiya xatosi bo’lsa ham server HTTP 200 qaytaradi.
| Maydon | Turi | Tavsif |
|---|---|---|
data | null | No data returned |
error | object | Error details |
error.code | integer | Internal error code |
error.message | string | O’qilishi oson xato xabari |
error.data | any | null | Additional error details |
is_success | boolean | Always false |
⌘I

