Skip to main content
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"
}
'
{
  "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
}

Overview

The Click Payment API is used to initiate a payment through Click. This endpoint creates a payment transaction and returns a payment_id that must be used later for fiscalization.

Request Fields

FieldTypeRequiredDescription
amountintegerPayment amount in sums
qr_codestringUnique Click transaction identifier

Response Fields

✅ Success Response 200

FieldTypeDescription
dataobjectResponse payload
data.status_codeintegerStatus code of payment (0 = success)
data.statusstringPayment status (successfully, failed, etc.)
data.messagestring | nullOptional message from provider
data.amountintegerPayment amount in sums
data.payment_idstringUnique payment identifier
data.transaction_idstringTransaction UUID
data.qr_codestring | nullQR code if provided
data.client_phone_numberstringClient phone number
errornullError object (always null on success)
is_successbooleanAlways true

🚫 Error Response 400

Note: Even if there is a validation error, the server returns HTTP status 200.
FieldTypeDescription
datanullNo data returned
errorobjectError details
error.codeintegerInternal error code
error.messagestringHuman-readable error message
error.dataany | nullAdditional error details
is_successbooleanAlways false

Body

application/json
amount
integer
required

Payment amount in sums

Example:

1000

qr_code
string
required

Unique transaction identifier

Response

Payment successful

data
object
error
string | null
is_success
boolean
Example:

true