Skip to content

Integration Documentation

Welcome to the official integration documentation for the SportyWallet Worker service.

This guide is intended for external partners who need to read card identifiers and write credits to cards through the Worker running on a host machine.


Integration Scope

The only integration entry point is the local HTTP API exposed by the Worker service.

Available operations:

Base URL:

  • http://localhost:60000

Authentication

Partners receive an API key from the SportyWallet integration team upon request.

Header to use:

  • X-Api-Key: <your-api-key>

Authentication is currently required for POST /writecard.


Getting Started

Before making API calls, ensure the following:

  1. The Worker service is running on the host machine. You can verify this by calling GET /ping.
  2. Your integration origin is allowlisted when browser-based access is required.
  3. You have received a valid X-Api-Key from the SportyWallet integration team.
  4. You are targeting http://localhost:60000.

Quick Test Flow

  1. Call GET /ping to confirm that the Worker is reachable.
  2. Place a card on the reader and call GET /readcard.
  3. Send a recharge request to POST /writecard with the X-Api-Key header and a JSON body containing credits.

Example request:

POST /writecard HTTP/1.1
Host: localhost:60000
X-Api-Key: your-api-key
Content-Type: application/json

{
    "credits": 1.5
}

Testing Tools

You can use the provided Postman assets to test the integration quickly:

Worker download by environments:


Support

For API key provisioning, allowlisting requests, or integration support, contact the SportyWallet integration team.