π Getting Started
Welcome to VentaConnect! This section will walk you through everything you need to start testing stablecoin payments in your POS system β no blockchain experience required.
Please contact us at support@venta.xyz and we will guide you through the integration prerequisites and implementation steps.
π Base URL
https://api.venta.xyz/v1All endpoints are relative to the base URL above.
π Authentication
All requests must include an API key in the headers.
Header Example:
x-api-key: <your-api-key>API keys are tied to your POS account. Keys are rate-limited per minute and can be rotated at any time.
π Rate Limits
Each API key is limited to 120 requests per minute by default. If you need higher limits, please contact us.
π Integration Flow
Request Beta Access
Register your Partner + get API Key
Register Merchant Shop(s)
Initiate Checkout Session
Generate SolanaPay QR Code
Confirm the Payment
Manage Keys or Rotate API Keys
Step 1: Request Beta Access
To begin, youβll need a one-time beta code from the Venta team. This code allows you to generate your first API key and register as a partner.
π Beta codes are issued manually. Reach out to your Venta contact or email support@venta.xyz to request one.
Step 4: Initiate Checkout Session
Use the /dev/checkout/session endpoint to simulate a payment.
For production endpoint, remove
dev/Example:
https://api.venta.xyz/v1/checkout
Headers:
Example:
Response:
What to do with link
linkIt is already
encodeURIComponent-encoded for safe transport.You can display it as a QR code as-is; wallets will decode and open the Solana Pay URL.
If you need to show a readable URL,
decodeURIComponent(link)first.
Link Example
What to do with ref
refKeep it to correlate status updates.
What to do with ws
wsConnect for real-time status updates (confirmed / expired / informational messages).
Connect to the WebSocket
βοΈ Message Envelope
All WS messages are JSON with this shape:
Statuses & Codes
confirmed
PAYMENT_CONFIRMED
Payment landed, txSig provided
β Yes
expired
ORDER_EXPIRED, CONFIRMATION_TIMEOUT, TRANSACTION_FAILED
Payment window elapsed or transaction failed
β Yes
update
RECEIVE_REQUEST, TX_BUILD_ERROR, INSUFFICIENT_FUNDS
Informational updates: QR scanned, build failed, or insufficient funds
β No
Example Messages
π§Ό When to Close the Connection
Once youβve received a confirmed transaction or after a timeout (e.g. 3 minutes), you should close the WebSocket connection:
π Fallback Strategy
In case the WebSocket disconnects (e.g. unstable network), your POS should periodically poll:
This ensures resilience and no missed confirmations.
β
Thatβs it!
Youβve completed a full end-to-end test of VentaConnect.
Last updated