POSToken

About
Integration Guides

Integrate POST Token

Step-by-step guides to help you integrate POST Token into your business, whether you're a merchant, postal operator, or developer.

Merchant Integration Guide

Accept POST payments at your business

QR Code Payment Flow

Generate QR Code

Create a unique QR code for each transaction with amount and merchant ID

Customer Scans

Customer opens POST Wallet app and scans the QR code

Confirm Payment

Customer confirms payment amount and authorizes transaction

Instant Settlement

Payment settles in under 2 seconds. Notification sent to both parties.

Setup Time

Less than 1 hour

Perfect for retail, restaurants, pop-up shops, and events

Generate QR Code

// Generate payment QR code
const qrData = {
merchantId: "MERCH_ABC123",
amount: 25.99,
currency: "USD",
reference: "ORDER-12345"
};
const qrCode = await postSdk.generatePaymentQR(qrData);
// Display qrCode.imageUrl to customer

Postal Operator Integration Guide

Real-time settlements and cross-border transfers

Integration Timeline

Week 1: Technical Assessment

POST team evaluates infrastructure and creates integration roadmap

Weeks 2-6: Development

API integration into existing postal systems with POST developer support

Weeks 7-8: Testing

Comprehensive UAT, security audit, and documentation

Week 9+: Go Live

Production activation with 24/7 support monitoring

Key Integration Points

  • Transaction API

    Create transactions for money transfers, shipments, terminal dues

  • Gateway API

    POST ↔ PSDR conversion with transaction-linked minting

  • Vesting API

    Manage country airdrop allocations and controlled release

  • Settlement Reports

    Automated reconciliation and reporting

Transaction-Linked Conversion Flow

JavaScript

// 1. Create transaction
const txn = await postApi.transactions.create({
type: "MoneyTransfer",
amount: 100,
currency: "USD",
operatorCode: "USPS"
});
// 2. Swap POST to PSDR (requires txn.transactionId)
const swap = await postApi.gateway.swap({
postAmount: 40.816,
transactionId: txn.transactionId,
transactionType: "MoneyTransfer"
});

Developer Quickstart

Build applications on POST Token

1. Get API Credentials

Sign up for a developer account to get your API keys.

JavaScript

// Your API credentials
const API_KEY = "pk_test_xxxxx";
const API_SECRET = "sk_test_xxxxx";
// Base URL
const BASE_URL = "https://api.staging.post.network";

2. Install SDK

Bash

# npm
npm install @post-token/sdk
# yarn
yarn add @post-token/sdk
# pnpm
pnpm add @post-token/sdk

3. Initialize Client

TypeScript

import { PostNetwork } from '@post-token/sdk';
const post = new PostNetwork({
apiKey: process.env.POST_API_KEY,
environment: 'sandbox' // or 'production'
});
// Test connection
const rates = await post.gateway.getRate();
console.log('POST/USD:', rates.postToUsd);

4. Make Your First API Call

TypeScript

// Calculate transfer cost
const calculation = await post.calculator.transfer({
amount: 100,
currency: 'USD',
originCountry: 'US',
destinationCountry: 'PH'
});
console.log('Fees:', calculation.totalFees);
console.log('Recipient gets:', calculation.recipient.amount);

Available SDKs

JavaScript/TypeScript

Available

Python

Available

Go

Available

Java

Coming Soon

Ruby

Coming Soon

PHP

Coming Soon