Freedom Pay
  1. Invoice
Freedom Pay
  • Gateway API
    • Introduction
    • Reference
      • Test cards
      • Error codes
    • Sync API
      • Introduction
      • Page
        • Introduction
        • Page
        • Page with amount control
        • Status
      • Pay
        • Introduction
        • Card
        • 3DSecure
        • Cancel
        • Clearing
        • Refund
        • Status
      • Payout
        • Introduction
        • Card
        • IBAN
        • Balance
        • Status
        • StatusV2
      • Transfer
        • Introduction
        • Card
        • 3DSecure
        • Rates
        • Status
      • Card
        • Introduction
        • Add
        • 3DSecure
        • List
        • Remove
        • Status
      • Token
        • Introduction
        • Token Pay
        • Apple Pay
        • Google Pay
        • Samsung Pay
        • Token Payout
        • Status
    • Async API
      • Introduction
      • create
        • create payment
        • create payment recurrent
      • read
        • read payment
        • read request
      • edit
        • edit payment.refund
        • edit payment.reverse
        • edit payment.clearing
      • delete
  • Merchant API
    • Introduction
    • Reference
      • Test cards
      • Test phone numbers
      • Error codes
    • Page
      • Introduction
      • Page
      • Page with amount control
      • Payout page
      • Frame
      • Widget
      • Status
    • Pay
      • Introduction
      • Cancel
      • Clearing
      • Refund
      • Status
    • Payout
      • Introduction
      • IBAN
      • Balance
      • Status by order_id
      • Status by Payment ID
      • Status by Payment ID V2
    • Mobile balance
      • Introduction
      • Init
      • Pay
      • Approve
      • Resend code
      • Status
    • Card
      • Introduction
      • Add
      • Add for payout
      • Remove
      • List
      • Status
    • Token
      • Introduction
      • Saved card with CVC input (Init)
      • Saved card with CVC input (Pay)
      • Non-acceptance payments
      • Non-acceptance payments (Pay)
      • Token payout
      • Status
    • Invoice
      • Introduction
      • Init
        POST
      • Info
        POST
      • Pay
        POST
      • Status
        POST
    • Additional
      • Introduction
      • Check request
      • Result notify
      • Payout notify
      • Redirect back
  • Card API
    • Introduction
    • Payment Cards
      • Reference
        • Request Status
        • Client product
        • Card product
        • Card status
        • Card block
        • Transaction
        • Error codes
      • Card issue
        • Bulk
        • Single
        • Physical
      • Card control
        • Activate
        • Block
        • Unblock
        • Set PIN
        • Reset PIN counter
        • Close
        • Identification
        • Info
        • Balance
        • Secret data
        • Statement
      • Client
        • Create
        • Edit
        • Card list
      • Additional
        • Request status
    • Gift Cards
      • Introduction
      • Reference
        • Request status
        • Card status
      • List
      • Issue
      • Confirm
      • Resend
      • Resend code
      • Status
  • Partner API
    • Rates
      • Introduction
      • Rates
    • Products
      • Introduction
      • Reference
        • Request
        • Product
        • Freedom POS
        • Freedom ECOM
        • Freedom BOX
        • Limits
      • Add user
      • Add product
      • Add user with product
      • Grant user
      • Send auth data
      • Request status
    • E-Money
      • Introduction
      • Reference
        • Request
        • Operation
        • Error codes
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Freedom ID
      • Introduction
      • Android SDK
      • iOS SDK
      • Reference
        • Error codes
      • Link
      • Token
      • Token refresh
      • Info
      • Profile
      • Request
  • Mobile SDK
    • Payment SDK
      • iOS
      • Android
    • Freedom QR
      • Reader SDK (Android)
      • Provider SDK (Android)
  • CMS
    • Introduction
    • Get Merchant ID and key
    • WordPress
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
      • Update
    • Tilda
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • InSales
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • Ecwid
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • Bitrix
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • PrestaShop
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • OpenCart
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
  1. Invoice

Init

POST
https://api.freedompay.uz/v5/merchant/invoice/init

Request

Body Params multipart/form-data
order_id
string 
required
Payment ID in the merchant system. It is recommended to keep this field unique.
Example:
00102
merchant_id
integer 
required
Merchant ID in {{project}} issued upon connection.
amount
number 
required
Payment amount in currency.
Example:
10
description
string 
required
Description of the product or service. Displayed to the buyer during the payment process.
Example:
Ticket
invoice_method
string 
required
Invoicing method. Values are separated by commas. Possible values: qr.
Example:
qr
currency
string 
optional
The currency in which the amount is indicated. KZT
Example:
KZT
check_url
string 
optional
URL to check the possibility of payment. Called before the payment
result_url
string 
optional
URL for reporting the result of the payment. Called after payment on success or failure. Required if not set in the store settings.
request_method
string 
optional
GET
Example:
POST

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.freedompay.uz/v5/merchant/invoice/init' \
--form 'order_id="00102"' \
--form 'merchant_id=""' \
--form 'amount="10"' \
--form 'description="Ticket"' \
--form 'invoice_method="qr"' \
--form 'currency="KZT"' \
--form 'check_url=""' \
--form 'result_url=""' \
--form 'request_method="POST"'

Responses

🟢200Success
application/xml
Body
status
string 
required
Shows the result of the query.
Status Description:
ok: Request was successful.
error: Request failed.
invoice_status
string 
required
Invoice status.
Status Description:
new: New invoice.
process: Waiting for the payer or payment system.
ok: Invoice paid successfully.
failed: Invoice payment error.
incomplete: Invoice expired.
error_code
integer 
optional
Error code ID.
error_description
string 
optional
Text description of the error.
invoice_id
integer 
required
The unique identifier of the payment transaction in {{project}} serves as the key for all further work with the transaction.
invoice_methods
object 
optional
The object contains the billing methods requested by the merchant.
qr
string 
optional
URL to redirect the user in the form of a QR. Passed in base64 format.
Example URL: https://customer.freedompay.kz/pay.html?customer=kzobd2vgp17214143761774775392946
dt
string <date-time>
required
Date and time of the request. Format: YYYY-MM-DDThh:mm:ss±hh:mm.
Example
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <status>string</status>
  <invoice_status>string</invoice_status>
  <error_code>0</error_code>
  <error_description>string</error_description>
  <invoice_id>0</invoice_id>
  <invoice_methods>
    <qr>string</qr>
  </invoice_methods>
  <dt>2019-08-24T14:15:22Z</dt>
</root>
Previous
Introduction
Next
Info