Skip to main content

API Reference

Complete documentation for all StateSet Commerce Network APIs. All API endpoints are RESTful and return JSON responses.

๐ŸŒ Base URLs

๐Ÿ”‘ Authentication

All requests must include your API key in the Authorization header:

๐Ÿ“š Core APIs

Stablecoin API

Issue, redeem, and transfer ssUSD stablecoinsKey Endpoints:
  • POST /stablecoin/issue
  • POST /stablecoin/redeem
  • POST /stablecoin/transfer
  • GET /stablecoin/balance

Payments API

Process payments and handle transactionsKey Endpoints:
  • POST /payments/create
  • GET /payments/{id}
  • POST /payments/refund
  • GET /payments/list

Orders API

Manage e-commerce orders and fulfillmentKey Endpoints:
  • POST /orders/create
  • PATCH /orders/{id}
  • POST /orders/{id}/fulfill
  • GET /orders/list

Finance API

Trade finance, factoring, and lendingKey Endpoints:
  • POST /finance/invoices/factor
  • POST /finance/po/finance
  • POST /finance/loans/create
  • GET /finance/options

AI Agents API

Deploy and manage autonomous agentsKey Endpoints:
  • POST /agents/create
  • POST /agents/{id}/execute
  • GET /agents/{id}/activity
  • PATCH /agents/{id}/config

Global Commerce API

Cross-border trade and complianceKey Endpoints:
  • POST /global/orders/create
  • POST /global/compliance/check
  • GET /global/tax/calculate
  • POST /global/shipping/quote

๐Ÿ”ง Common Parameters

Pagination

Most list endpoints support pagination: Example:

Filtering

List endpoints support filtering:

Expanding Objects

Request nested objects in a single call:

๐Ÿ“จ Request Format

Headers

Request Body

All POST, PUT, and PATCH requests accept JSON:

๐Ÿ“ค Response Format

Success Response

Error Response

๐Ÿ”„ Idempotency

Ensure safe retries with idempotency keys:
Idempotency keys are valid for 24 hours.

๐Ÿ“Š Rate Limits

Rate limit headers:

๐ŸŒ CORS

The API supports CORS for browser-based requests:

๐Ÿ” Security

API Key Types

Best Practices

  1. Never expose secret keys in client-side code
  2. Use HTTPS for all requests
  3. Verify webhooks with signature validation
  4. Implement retry logic with exponential backoff
  5. Monitor rate limits and implement caching

๐Ÿ“ก Webhooks

Register webhooks to receive real-time events:
Learn more about webhooks โ†’

๐Ÿงช Testing

Test Mode

Use test API keys to simulate transactions:
  • No real money movement
  • Immediate transaction processing
  • Special test card numbers available

Test Data

๐Ÿ“ฑ SDK Support

Official SDKs available for:

Node.js

Python

Go

View all SDKs โ†’

๐Ÿ†˜ Support Resources

API Status

Real-time API status and incidents

Postman Collection

Import our complete API collection

Discord Community

Get help from developers

Support Portal

Contact our support team