Transaction Management - Create and manage transactions in the HG.Cash system. All transaction endpoints require authentication.
HG.Cash API (1.0.0)
Modern REST API for users to create outbound transactions from their accounts.
- We assign accounts to your user in HG.Cash
- When these accounts have transactions (inbound or outbound), HG.Cash will notify your backend using the webhook URL you configure in the HG.Cash dashboard
- To create cash-outs (money leaving your accounts), you must call the Cash Out endpoint: Create Transaction Request (Cash Out) (
POST /transactions)
- Generate your API token in the account settings page
- Test endpoints using the interactive documentation below
- Implement in your backend services (never expose tokens in frontend)
- Monitor your integration and handle errors appropriately
This API uses Bearer Token authentication. Include your user API token in the Authorization header:
Authorization: Bearer cash_your_token_hereDownload OpenAPI description
Overview
HG.Cash API Support
License
Languages
Servers
Mock server
https://docs.hg.cash/_mock/openapi
Production server
https://hg.cash/api/v1
Development server
http://dev.hg.cash/api/v1
- Mock serverhttps://docs.hg.cash/_mock/openapi/accounts
- Production serverhttps://hg.cash/api/v1/accounts
- Development serverhttp://dev.hg.cash/api/v1/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.hg.cash/_mock/openapi/accounts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "data": [ { … } ], "count": 0 }
- Mock serverhttps://docs.hg.cash/_mock/openapi/account/{id}/balance
- Production serverhttps://hg.cash/api/v1/account/{id}/balance
- Development serverhttp://dev.hg.cash/api/v1/account/{id}/balance
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.hg.cash/_mock/openapi/account/{id}/balance' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "balance": 0, "currency": "string" }