Skip to main content
Mode B is for suppliers that already run a point inventory system with API capability. After the user completes payment, Waffo Point Topup calls your API to retrieve point codes in real time.

Advantages

  • Real-time point code retrieval
  • No manual inventory management
  • Automatic inventory sync

Use cases

  • Game publishers with a digital point generation system
  • Point code distributors with an existing API

Integration flow

Mode B point code retrieval flow: after payment, Waffo calls the supplier endpoint for a code in real time and emails it to the user

API list

The specification on this page is a sample. If you already have a point code retrieval endpoint, hand your own API documentation to Waffo Point Topup — Waffo Point Topup adapts to your existing interface, so there is no need to rebuild it to match this page.

User redirection

To send users from your own website to Waffo Point Topup, you can use the URL signature method from Mode C, or simply provide a direct link without a signature:

Point code retrieval endpoint

Called by Waffo Point Topup after the user completes payment, to retrieve point codes from the supplier.
Idempotency requirement: the supplier must support idempotency on distributorOrderId + distributorId. If the same request arrives more than once, return the same point codes and do not deduct inventory again.

Request

Response

Examples

A status of FAILURE is a business failure: the HTTP status code and the outer code still report success. Return system-level errors per the error codes.

Next steps

API common specifications

Message structure, RSA signing and verification, error codes, and key generation.

Mode C: direct fulfillment API

To credit the user’s account directly instead of issuing point codes, see Mode C.