- Gateway API
- Introduction
- Reference
- Sync API
- Introduction
- Page
- Pay
- Payout
- Transfer
- Card
- Token
- Async API
- Merchant API
- Introduction
- Reference
- Page
- Pay
- Payout
- Mobile balance
- Card
- Token
- Invoice
- ATM
- Additional
- Card API
- Partner API
- Mobile SDK
- CMS
Cancel
POST
https://api.freedompay.kg/g2g/cancel
Request
Body Params multipart/form-data
pg_merchant_id
integer
required
Numbers.||integer
Example:
{{paybox_merchant_id}}
pg_payment_id
integer
required
Numbers.||integer
pg_salt
string
required
pg_sig
string
required
Example:
{{paybox_signature}}
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/g2g/cancel' \
--form 'pg_merchant_id="{{paybox_merchant_id}}"' \
--form 'pg_payment_id=""' \
--form 'pg_salt=""' \
--form 'pg_sig="{{paybox_signature}}"'
Responses
🟢200Success
application/xml
Body
pg_payment_id
integer
required
pg_payment_revoke_id
integer
required
pg_status
string
required
pg_revoke_status
string
required
pg_salt
string
required
pg_sig
string
required
Example
<?xml version="1.0" encoding="utf-8"?>
<response>
<pg_payment_id>7777777777</pg_payment_id>
<pg_payment_revoke_id>7777777778</pg_payment_revoke_id>
<pg_status>ok</pg_status>
<pg_revoke_status>success</pg_revoke_status>
<pg_salt>YtfwCGiBHsFLpYGk</pg_salt>
<pg_sig>ccee466c01c2332d8a065d6108fd686b</pg_sig>
</response>
🟢200Error
🟢200Invalid Signature
Modified at 2025-02-03 10:08:06