Schedule a demo

API Reference

Field-level payment API reference. Public OpenAPI version 1.0.7009, checked .

This extract describes the published contract, not a production test or a guarantee that every operation is enabled for your account.

Read the publisher’s complete reference. Confirm the applicable contract version before implementation.

List paymentsSandbox · cURL
curl --request GET \
  'https://psp-demo.viabanking.com/api/v1/payments?offset=0&limit=50' \
  --header 'Authorization: Bearer <SHOP_API_KEY>'

Environment and authentication

The listed payment operations use Authorization: Bearer <SHOP_API_KEY>. Obtain the key for your authorised environment; keep it on your server. No key prefix or rotation grace period is specified here.

Sandboxhttps://psp-demo.viabanking.com
Productionhttps://psp.viabanking.com
Authentication headerHTTP
Authorization: Bearer <SHOP_API_KEY>

API paths start with /api/v1/. Specification version 1.0.7009 and the URL version are different identifiers.

Endpoints

GETPayment API

getPayments

Endpoint
GET /api/v1/payments

Documented HTTP responses

  • 200
  • 400
  • 401
POSTPayment API

createPayment

Endpoint
POST /api/v1/payments

Documented HTTP responses

  • 200
  • 400
  • 401
GETPayment API

checkStatus

Endpoint
GET /api/v1/payments/{id}

Documented HTTP responses

  • 200
  • 401
  • 404
GETPayment API

getOperations

Endpoint
GET /api/v1/payments/{id}/operations

Documented HTTP responses

  • 200
  • 401
  • 404
POSTPayment API

getPaymentMethod

Endpoint
POST /api/v1/payment-methods/available

Documented HTTP responses

  • 200
  • 400
  • 401
  • 404

The creation operation describes deposit, payout and refund requests. Confirm permitted payment methods and operations for your account; the path alone does not establish licensed PIS or recurring-payment availability.

Request and response fields

WebhookResult

id
stringNot marked required in schema
referenceId
stringNot marked required in schema
paymentType
stringNot marked required in schema
state
WebhookPaymentStateNot marked required in schema
description
stringNot marked required in schema
parentPaymentId
stringNot marked required in schema
paymentMethod
PaymentMethodNot marked required in schema
paymentMethodDetails
PaymentMethodDetailsNot marked required in schema
amount
numberNot marked required in schema
currency
stringNot marked required in schema
customerAmount
numberNot marked required in schema
customerCurrency
stringNot marked required in schema
redirectUrl
stringNot marked required in schema
errorCode
stringNot marked required in schema
externalResultCode
stringNot marked required in schema
externalRefs
ExternalRefsNot marked required in schema
customer
CustomerNot marked required in schema
billingAddress
BillingAddressNot marked required in schema
terminalName
stringNot marked required in schema

UnifiedPaymentRequest

referenceId
stringNot marked required in schema
parentPaymentId
stringNot marked required in schema
paymentType
PaymentTypeRequired
paymentMethod
PaymentMethodNot marked required in schema
amount
numberRequired
currency
stringRequired
description
stringNot marked required in schema
customer
CustomerNot marked required in schema
billingAddress
BillingAddressNot marked required in schema
receiver
ReceiverNot marked required in schema
returnUrl
stringNot marked required in schema
pendingReturnUrl
stringNot marked required in schema
successReturnUrl
stringNot marked required in schema
declineReturnUrl
stringNot marked required in schema
webhookUrl
stringNot marked required in schema
websiteUrl
stringNot marked required in schema
additionalParameters
objectNot marked required in schema

PaymentListResponse

timestamp
stringNot marked required in schema
status
integerNot marked required in schema
hasMore
booleanNot marked required in schema
result
arrayNot marked required in schema

PaymentResponse

timestamp
stringNot marked required in schema
status
integerNot marked required in schema
result
ResultNot marked required in schema

Error

timestamp
stringNot marked required in schema
status
numberNot marked required in schema
error
stringNot marked required in schema
message
stringNot marked required in schema
errors
arrayNot marked required in schema
path
stringNot marked required in schema

These are top-level fields. Read nested schemas, enums and conditional requirements in the complete reference before sending a request. Do not infer that optional fields are unnecessary for every payment method.

Pagination

GET /api/v1/payments uses offset (default 0) and limit (default 50, range 1–1000). The response includes hasMore. This is not cursor pagination.

Pagination parametersHTTP
GET /api/v1/payments?offset=0&limit=50
offsetDefault: 0
limitDefault: 50 · range: 1–1000

Errors and safe retries

Use each operation’s response definitions; the Error schema has top-level fields rather than a nested error.code envelope. An HTTP 200 alone does not establish payment completion or credited funds.

Idempotency-Key scope, retention, retry limits and conflict handling are not established by the inspected contract. After a timeout or ambiguous write, reconcile the original operation before submitting another payment. Do not change a key simply to bypass a conflict. Obtain the supported deduplication procedure before enabling automatic write retries.

Webhooks

The payment request includes webhookUrl and the contract defines WebhookResult with state. The inspected contract does not define a payment.settled event catalogue, HMAC header, retry window or acknowledgement deadline.

Confirm callback authentication, acknowledgement, retries, ordering and duplicate handling with the integration owner. Do not treat an unverified callback or a state name as proof of settlement finality.

Scope to confirm before production

The inspected paths do not document generic /accounts, /consents or /banks APIs, recurring mandates, or a C2B credit-matching contract. This does not prove these capabilities are unavailable; request their applicable specification and enabled scope before relying on them.

Production checklist · Confirm your integration scope