Skip to content

Sangho API

The Sangho API is a REST API that accepts UTF-8 encoded JSON requests over HTTPS. It supports two environments: Production and Sandbox.

Base URL

All requests must be sent to the Base URL. Use sk_test_ keys for Sandbox and sk_prod_ keys for Production. The environment will be automatically inferred from these keys.

Request Format

  • Protocol: HTTPS only (TLS 1.2+)
  • Format: JSON (Content-Type: application/json)
  • Encoding: UTF-8
  • Pagination: page-based (page, page_size) — see pagination
  • Timestamps: ISO 8601 (UTC)
  • Amounts: integers in currency cents

Available SDKs

Sangho provides official SDKs for JavaScript/TypeScript, Python, PHP, and Java. These SDKs automatically handle authentication, pagination, errors, and retries.

npm install @sanghosdk/jspip install sanghocomposer require sangho/sangho-phpcom.sangho:sangho-java

Environments

text
https://api.sangho.ga/v1/

Request Example

bash
curl https://api.sangho.ga/v1/account \
  -H "Authorization: Bearer sk_test_xxxx" \
  -H "Content-Type: application/json"
Response200 OK
json
{
  "id": "app_xxxxxxxx",
  "name": "My store",
  "environment": "sandbox",
  "api_version": "v1",
  "created_at": "2026-01-15T09:00:00Z"
}