Skip to main content

API Structure Overview

The Vantio API is organized into resource groups that represent different aspects of your referral program. Understanding this structure helps you navigate the API effectively.

Resource Groups

The Vantio API is organized into five main resource groups:

Users

Student ambassadors enrolled in your programs. Endpoints:
  • GET /api/v1/users - List all users
  • GET /api/v1/users/{id} - Get specific user
Use Cases:
  • View all ambassadors
  • Get ambassador details
  • Filter by program

Referrals

Signups and conversions from your referral program. Endpoints:
  • GET /api/v1/referrals - List referrals
  • POST /api/v1/referrals - Create referral
  • GET /api/v1/referrals/{id} - Get referral
  • PUT /api/v1/referrals/{id} - Update referral
Use Cases:
  • Track signups
  • Monitor conversions
  • Update referral status

Posters

QR code posters placed by ambassadors. Endpoints:
  • GET /api/v1/posters - List posters
  • GET /api/v1/posters/{id} - Get poster
Use Cases:
  • View all poster placements
  • Download QR codes
  • Track poster performance

Impressions

QR code scans and engagement tracking. Endpoints:
  • GET /api/v1/impressions - List impressions
  • GET /api/v1/impressions/{id} - Get impression
Use Cases:
  • Track QR code scans
  • Monitor engagement
  • Analyze scan patterns

Earnings

Commissions and payouts for ambassadors. Endpoints:
  • GET /api/v1/earnings - List earnings
  • POST /api/v1/earnings - Create earning
  • GET /api/v1/earnings/{id} - Get earning
  • PUT /api/v1/earnings/{id} - Update earning
Use Cases:
  • Track commissions
  • Process payouts
  • Monitor earnings status

Resource Relationships

Understanding how resources relate helps you navigate the API:
  1. Start with a Program - Programs contain all other resources
  2. Find Users - Users are ambassadors in programs
  3. Track Posters - Posters are placed by users
  4. Monitor Impressions - Impressions come from poster scans
  5. Create Referrals - Referrals link to impressions
  6. Generate Earnings - Earnings link to referrals

Filtering Resources

Most list endpoints support filtering to help you navigate:

By Program

By User/Student

By Status

Pagination

Navigate through large result sets using pagination:

Common Navigation Patterns

Get All Data for a Program

Follow the Referral Chain

Dashboard Navigation

In addition to the API, you can navigate resources in the Vantio Dashboard:
  1. Programs - View and manage all programs
  2. Users - Browse student ambassadors
  3. Referrals - Track signups and conversions
  4. Posters - Manage QR code posters
  5. Impressions - View scan analytics
  6. Earnings - Monitor commissions and payouts

Best Practices

  1. Start with programs - Programs are the top-level organization
  2. Use filters - Narrow results to what you need
  3. Follow relationships - Use IDs to navigate between resources
  4. Implement pagination - Handle large datasets efficiently
  5. Cache frequently accessed data - Reduce API calls

Next Steps