Unitpay
en
en
  • Home
  • First steps
    • Registration
    • Adding a Project
      • Adding a VK Community Project
    • Project Moderation
    • Transfer of the Project
    • Video tutorials
  • Payments
    • Creating a payment (easy way)
    • Creating a Payment
    • Creating a payment (widget)
    • Parameters for receipts
    • Creating Payment Links in Your Personal Account
    • Payment Handler
    • Payment information
    • Payment Refund
    • Payments with Pre-authorization
    • Recurring payments
      • Creating a Subscription
      • Getting Information About Subscription
      • Getting a List of Active Subscriptions
      • Closing a Subscription
  • Mass payouts
    • Creating a payout
    • Information about Payout
    • Card information by BIN
    • Payments based on a CSV registry
  • Online cash desk
    • Parameters for generating a receipt
    • Unit.Reciepts
    • Adding online cash desk
    • Types of Online Cash Register Receipt Items
    • Advance credit reciepts
  • Modules
    • Payment handler
    • Unitpay SDK
    • CMS modules
      • Amiro
      • PHPShop
      • 1C Bitrix
      • CS-Cart
      • DIAFAN.CMS
      • Drupal 7 (commerce)
      • Drupal 7 (ubercart 3)
      • Drupal 8, 9 (commerce)
      • Ecwid by Lightspeed
      • HostCMS
      • InSales
      • Joomshopping 4 (joomla 3)
      • LogicBoxes
      • Magento
      • Magento 2
      • OpenCart
      • osCommerce
      • Prestashop
      • ReadyScript
      • ShopCMS
      • Simpla
      • Tilda
      • Netcat CMS
      • UMI.CMS
      • VamShop 2
      • VirtueMart 3 (joomla 3)
      • Webasyst Shop Script 7 (8)
      • Wix
      • Woocommerce Wordpress
      • Zen Cart
      • Amiro CMS
      • CMS NWICODE
      • MODX (miniShop2)
  • Manage Unitpay
    • Interface Instructions
    • SP documents
    • Legal entity documents
    • Current Balance
    • Commissions
    • Currency Conversion Rates
  • Book of reference
    • System IP addresses
    • Payment Form Appearance
    • Using the Test API
    • Operator Codes
    • Payment System Codes
    • Currency codes
    • Qiwi Country Codes
  • Referral program
    • Interface of Referrer's (Agent's) Account
  • Support
  • Other
    • Telegram bot
    • Using the Test API
  • Google Pay™
Powered by GitBook
On this page

Was this helpful?

  1. Payments

Payment Refund

PreviousPayment informationNextPayments with Pre-authorization

Last updated 2 days ago

Was this helpful?

To make a refund, run a GET request:

https://unitpay.ru/api?method=refundPayment&params[paymentId]=1234512345&params[secretKey]=x6bh0qbewehfppogkz6lufartkzyv7o0&params[sum]=100.00

Value

Description

paymentId

number

Payment ID in the UnitPay system

secretKey

line

Project secret key

sum

number

The refund amount, if the payment system does not support a full refund (Optional parameter). If the parameter is not transmitted, a full refund will be made

IMPORTANT NOTE: In case of a partial refund of the original amount, there is no protection against duplication for repeated refunds! The only check that is implemented for a partial refund is that you cannot return the same amount within half an hour for the same transaction: an error message will appear.

You can run the query in test mode.

Successful response

{ 
    "result": {
        "message": "Возврат успешно произведен",
}}

Возврат успешно произведен

The refund was successful

Value

Description

message

line

The comment of a successful transaction can be used as a hint to the user after completing the request

Error response

{
    "error": {
        "message": "Неверный ключ secretKey",
        "code": -32000
    }
}

Неверный ключ secretKey

Invalid secret key

Value

Description

message

line

Information with a description of the request error

You can only make one full or partial refund per payment.

To interact with the API, use the library.

Learn more
Unitpay PHP-SDK