API

API overview

The merchant payment API is the Payment Engine.


Base URLs

EnvironmentBase URL
Livehttps://merchant.venpays.com
Sandboxhttps://init-vpay.venlabs.link

Conventions

  • JSON request and response bodies
  • Auth header: X-API-KEY: <your-secret-or-legacy-key> (not a publishable key)
  • Primary identifier: track_id
  • Amounts are decimal numbers (BHD commonly uses three decimal places)

Endpoint groups

GroupDocs
Initiate / status / refundInitiate, Status, Refunds
ChooserPayment chooser
JavaScript checkoutJavaScript checkout SDK
Flutter checkoutFlutter checkout SDK
SubscriptionsSubscriptions API
StreamsStreams API
Native Apple PayApple Pay iOS

Prefer webhooks for asynchronous updates, and use exponential backoff if you poll status.