- Gateway API
- Introduction
- Reference
- Sync API
- Async API
- Merchant API
- Introduction
- Reference
- Page
- Pay
- Payout
- Mobile balance
- Card
- Token
- Invoice
- ATM
- Additional
- Card API
- Introduction
- Payment Cards
- Gift Cards
- Partner API
- Rates
- Products
- E-Money
- Freedom ID
- Mobile SDK
- CMS
Status
POST
https://api.freedompay.kg/v5/merchant/invoice/status
Request
Body Params multipart/form-data
merchant_id
integer
required
invoice_id
integer
optional
Required if empty
order_id
order_id
string
optional
invoice_id
is empty.Example:
00102
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.kg/v5/merchant/invoice/status' \
--form 'merchant_id=""' \
--form 'invoice_id="";type=* The unique identifier of the payment transaction in {{project}} serves as the key for all further work with the transaction. Required if `order_id` is empty.' \
--form 'order_id="00102"'
Responses
🟢200Success
application/xml
Body
status
string
required
ok
: Request was successful.error
: Request failed.invoice_id
integer
required
invoice_status
string
required
partial
: New payment.pending
: Waiting for the payer or payment system.refunded
: Payment has been refunded.revoked
: Payment has been canceled.ok
: Payment completed successfully.failed
: Payment in error.incomplete
: Payment lifetime expired.error_code
integer
optional
error_description
string
optional
card_pan
string
optional
card_token
string
optional
amount
number
required
currency
string
required
dt
string <date-time>
required
Example
<?xml version="1.0" encoding="UTF-8"?>
<root>
<status>string</status>
<invoice_id>0</invoice_id>
<invoice_status>string</invoice_status>
<error_code>0</error_code>
<error_description>string</error_description>
<card_pan>string</card_pan>
<card_token>string</card_token>
<amount>0</amount>
<currency>string</currency>
<dt>2019-08-24T14:15:22Z</dt>
</root>
Modified at 2025-02-03 10:08:06