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

Overview

The Anor Payment API is used to initiate a payment through Anor. 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 Payme transaction identifier

Response Fields

✅ Success Response 200

FieldTypeDescription
dataobjectResponse payload
data.transaction_idstringTransaction UUID
data.statusstringPayment status (successfully, failed, etc.)
data.messagestringOptional message from provider
data.error_codestringOptional message from provider
data.payment_idstringUnique payment identifier
data.error_notestringError note
data.payment_statusintegerPayment status provided by provider
data.phone_numberstringClient phone number
data.card_numberstringClient card 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
statusstringError status (successfully, error, etc.)
messagestringHuman-readable error message
error_codeintegererror_code provided by Provider

Body

application/json
amount
integer
required

Payment amount in sums

Example:

1000

qr_code
string
required

Unique Anor transaction identifier

Example:

"50502044301381396427"

Response

Payment processed (success or error)

data
object
error
null
Example:

null

is_success
boolean
Example:

true