Payments (Private)
Process credit top-up payments and check payment status. Integrates with the Barion payment gateway for secure payment processing. Requires Private API (Bearer token) authentication.
Get payment status
Returns the current status of a payment.
path Parameters
paymentIdUnique payment identifier
Get payment status › Responses
Payment status
paymentIdUnique payment identifier
statusCurrent payment processing status
amountPayment amount that was charged or will be charged
currency^[A-Z]{3}$ · requiredISO 4217 three-letter currency code for the payment (e.g., "EUR", "CZK")
timestampTimestamp of the most recent payment status change (format yyyy-MM-ddTHH:mm:ss.fff)
Add credit
Creates a new payment to add credit to an account's balance. Returns a payment gateway URL for the user to complete the payment.
Payment Notifications
If notificationUrl is provided, the system will send HTTP POST requests to that URL whenever the payment status changes.
Notification Behavior:
- HTTP Method:
POST - Content-Type:
application/json - Triggered on every payment status change
- Timeout: 10 seconds
- Retry Policy: 3 attempts with intervals of 5s, 20s, 60s on failure
Security Recommendation:
- The
notificationUrlshould use HTTPS to ensure secure transmission - Receivers should verify the payment status by calling GET
/private/payments/{paymentId}endpoint
Example Notification Payload:
Code
Add credit › Request Body
accountIdAccount identifier to charge
amountCredit amount to add to the account balance (minimum 1)
currencyPayment currency. Only "EUR" is supported.
redirectUrlURL to redirect user after payment
allowRecurringPaymentWhether to enable recurring payments
balanceBelowTriggerAuto-charge when balance drops below this amount
notificationUrlURL where a POST request will be sent when payment status changes. Must use HTTPS protocol.
Add credit › Responses
Payment created successfully
paymentIdUnique payment identifier
paymentGatewayUrlURL to redirect user to payment gateway