Zebec Partner Service Documentation
Integration Guide API Specification Recipient Specs Valid Countries ๐Ÿงช Sandbox Swagger Docs HMAC Generator

Using the Swagger UI

๐Ÿ“– Interactive Documentation: The Swagger UI provides live, interactive API documentation where you can test endpoints directly from your browser.

Accessing Swagger UI

Development/Sandbox Environment

Getting Started

Step 1: Generate Authentication Headers

Before testing any endpoints, you need to generate valid HMAC authentication headers:

  1. Go to the HMAC Generator tool
  2. Enter your API credentials (API Key and Secret)
  3. Select the HTTP method (GET/POST) and endpoint path
  4. Add request body if needed (for POST requests)
  5. Click "Generate Headers"
  6. Copy the generated header values

Step 2: Authorize in Swagger UI

  1. Open the Swagger UI
  2. Click the "Authorize" button at the top of the page
  3. You'll see 4 fields to fill:
  4. Paste the values from the HMAC generator into each field
  5. Click "Authorize"
  6. Close the modal
โš ๏ธ Signature Validity: HMAC signatures include a timestamp and are only valid for a short period (typically 5 minutes). If you get authentication errors, regenerate fresh headers using the HMAC generator tool.

Step 3: Test Endpoints

  1. Browse the available endpoints organized by tags:
  2. Click on an endpoint to expand it
  3. Click "Try it out"
  4. Fill in any required parameters or request body
  5. Click "Execute"
  6. View the response below

Understanding the API Organization

๐ŸŽ Cards v1 (Standard)

Core card operations available to all partners:

๐Ÿ’Ž Cards v2 (Premium)

Advanced features requiring v2 API key:

๐Ÿ’ก Tip: Swagger UI shows which features are required for each v2 endpoint. Check the endpoint description for feature requirements like balanceAccess or transactionAccess.

Testing Tips

1. Start with Health Check

Test the unauthenticated ping endpoint first:

GET /ping

This confirms the API is accessible.

2. Test Authentication

Try a simple authenticated endpoint to verify your HMAC signature:

GET /orders/programs?country=USA

3. Use Sandbox Email Patterns

When testing order creation in development/sandbox, use special email patterns:

See the Sandbox Environment Guide for details.

4. Check Response Schemas

Swagger UI shows the expected response schema for each endpoint. Use this to understand the data structure.

5. Save Successful Requests

Swagger UI allows you to download request/response examples. Use this to build your integration code.

Common Issues

401 Unauthorized

403 Forbidden

400 Bad Request

โœจ Pro Tip: Open your browser's Developer Tools (F12) โ†’ Network tab while using Swagger UI. This shows the actual HTTP requests being made, including all headers and the request body. This is invaluable for debugging your own integration code!

Additional Resources