Payment-FinishReservation-v2

From Barion Documentation
Revision as of 10:34, 13 December 2017 by Valovicsa (talk | contribs) (Created page with "{{PageTitle|title=Finish reservation}} {{api_callmethod |method=POST |uri=/v2/Payment/FinishReservation }} The <code>/payment/FinishReservation</code> API endpoint is used t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
POST /v2/Payment/FinishReservation

The /payment/FinishReservation API endpoint is used to finalize a reserved payment in the Barion system.

Prerequisites before use:

Use cases

This API endpoint is designed to be used in the following scenarios:


With this API call the shop can finalize transactions approved by users. The users can approve their transaction via the Barion GUI. In case of reservation, the transaction can not be finished if the amount exceeds the one what user approved. If a transaction finished with 0 currency then the users gets back the full reserved amount. If the finalized amount is lesser than the reserved amount, the margin will be refunded to the user’s wallet. For every finalization the shop’s owner must identify itself via Barion API.

Input properties

Property name Property type Limitations and constraints Description
POSKey Guid
  • Required
The secret API key of the shop, generated by Barion. This lets the shop to authenticate through the Barion API, but does not provide access to the account owning the shop itself.
PaymentId Guid *Required Payment identifier, generated by Barion
Transactions PaymentTransaction[] *Required Array of transactions

Output properties

Property name Property type Description
PaymentId Guid The identifier of the newly initialized payment, generated by the Barion system.
PaymentRequestId string The payment identifier supplied by the API caller in the request.
Status PaymentStatus The status of the payment in the Barion system.
Isuccessful bool Result of the transaction