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:

  1. Authentication: Generate your JWT (Secure Token) via the Authentication guide.
  2. IP Whitelisting: Ensure your server's outbound IP addresses are whitelisted by our security team.
  3. 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:

CodeTypeDescription
200SuccessThe request was successful and the payload has been returned.
201CreatedA new resource (e.g. User, Invoice) has been successfully created.
401UnauthorizedMissing or invalid Authentication token.
403ForbiddenIP address not whitelisted or lack of permissions for the operation.
409ConflictA Distributed Locking wait-timeout has occurred.
422UnprocessableValidation 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

  1. User Management: Manage user-related operations.
  2. Asset Pricing: Retrieve real-time or latest available prices for supported assets to ensure accurate and transparent transactions.
  3. Buy Transactions: Enable users to purchase digital bullion assets securely and efficiently.
  4. Sell Transactions: Allow users to sell their digital assets with reliable processing and consistent pricing.