Partner API
The Treasury Partner API enables secure and scalable integration for digital bullion transactions. You can manage user accounts, check real-time market pricing, and execute buy/sell trades with atomic precision.
Connectivity: Our API is exclusively served over HTTPS.
Staging Base URL: https://api.partner.staging.treasury.id
Getting Started
To begin integrating with our platform, please follow these steps:
- Authentication: Generate your JWT (Secure Token) via the Authentication guide.
- IP Whitelisting: Ensure your server's outbound IP addresses are whitelisted by our security team.
- User Registration: Onboard your users to the Treasury platform using User Register.
Standardized Responses
Our API uses standardized HTTP status codes to communicate the result of each request:
| Code | Type | Description |
|---|---|---|
200 | Success | The request was successful and the payload has been returned. |
201 | Created | A new resource (e.g. User, Invoice) has been successfully created. |
401 | Unauthorized | Missing or invalid Authentication token. |
403 | Forbidden | IP address not whitelisted or lack of permissions for the operation. |
409 | Conflict | A Distributed Locking wait-timeout has occurred. |
422 | Unprocessable | Validation error in the request body (e.g. missing required fields). |
Supported Digital Assets
Transactions can be performed for the following high-purity assets:
Gold(XAU)Silver(XAG)
These assets are managed in digital form, enabling seamless transactions, accurate tracking, and real-time valuation based on market prices.
Available Features
User Management: Manage user-related operations.Asset Pricing: Retrieve real-time or latest available prices for supported assets to ensure accurate and transparent transactions.Buy Transactions: Enable users to purchase digital bullion assets securely and efficiently.Sell Transactions: Allow users to sell their digital assets with reliable processing and consistent pricing.