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

Pay

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

Request

Body Params multipart/form-data
customer
string 
required
This parameter is displayed in the response to invoice/init - invoice_methods.qr.
Example:
kzobd2vgp17214143761774775392946
user_id
string 
required
User ID in the merchant system.
Example:
No65GFR755789T25642588
card_token
string 
required
Card token for payment with a saved card.
Example:
ef741cfc-f85e-41a0-84e6-2ba964912182

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/pay' \
--form 'customer="kzobd2vgp17214143761774775392946"' \
--form 'user_id="No65GFR755789T25642588"' \
--form 'card_token="ef741cfc-f85e-41a0-84e6-2ba964912182"'

Responses

🟢200Success
application/xml
Body
status
string 
required
Shows the result of the query.
Status Description:
ok: Request was successful.
error: Request failed.
order_id
string 
required
Invoice identifier in the merchant system.
Example: 00102
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.
invoice_id
integer 
optional
The unique identifier of the payment transaction in {{project}} serves as the key for all further work with the transaction.
Displayed only on invoice_status - ok, failed.
error_code
integer 
optional
Error code ID.
error_description
string 
optional
Text description of the error.
card_pan
string 
optional
Masked card number (part of the digits of the card number are hidden).
Example: 5483-18XX-XXXX-0293
Displayed only on invoice_status - ok, failed.
amount
number 
required
Invoice amount.
currency
string 
required
The currency in which the amount is indicated.
Example: KZT
Displayed only on invoice_status - ok, failed.
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>
  <order_id>string</order_id>
  <invoice_status>string</invoice_status>
  <invoice_id>0</invoice_id>
  <error_code>0</error_code>
  <error_description>string</error_description>
  <card_pan>string</card_pan>
  <amount>0</amount>
  <currency>string</currency>
  <dt>2019-08-24T14:15:22Z</dt>
</root>
Previous
Info
Next
Status