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
Request Example
Response200 OK