What You Can Do
Browse the Card Catalog
Retrieve the full list of vendors and their card denominations available to your merchant account, then cache them locally for fast storefront display.
Check Available Stock
Query real-time balance information for any specific card type before presenting it to a customer, preventing failed orders.
Place and Confirm Orders
Initiate a card order with a card ID and quantity, receive a transaction ID, then confirm the order to get back the redeemable card codes.
Manage Cards via Console
Use the Wasl Cards Console Panel to replace faulty cards and generate sales reports directly from a merchant dashboard.
Protocol and Data Format
The Wasl Cards API is a REST API that runs over TCP/IP. All request and response bodies use JSON. Every API call requires aContent-Type: application/json header and a valid authentication token passed in the Token header.
Familiarity with a server-side language such as JSP, ASP .NET, PHP, or Java is a prerequisite for integrating with this API.
Environments
Wasl provides two isolated environments so you can build and test without affecting live transactions.The Card Lifecycle
Every transaction with the Wasl Cards API follows the same six-step lifecycle. Understanding this flow upfront will help you design your integration cleanly.1
Authenticate
Call the Authentication API to exchange your credentials for a session token. Pass this token in every subsequent request.
2
Load the Catalog
Call the Get Card List and Get Card Details endpoints once and cache the results in your system to power your storefront.
3
Present Cards to Customer
Display the cached card catalog in your sales channel and let the customer select a card and quantity.
4
Check Balance
Before proceeding, query available stock for the selected card type to confirm Wasl can fulfil the order.
5
Initiate Order
Submit the card ID and quantity. Wasl returns a
transaction_id that you store against the pending order.6
Confirm Order
Confirm the order using the
transaction_id. Wasl responds with the redeemable card codes to deliver to your customer.Next Steps
Get Started
Register your merchant account, receive your credentials, and make your first API call.
Request Flow Guide
Walk through the complete end-to-end API request flow with code examples for every step.