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-api-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
SubscriptionsSubscriptions API
StreamsStreams API
Native Apple PayApple Pay iOS

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