Postman collection
Overview
Section titled “Overview”This guide explains how to integrate the MoneyGo API using a Postman Collection. It is designed for developers who need to connect their applications to MoneyGo’s services—not merely for testing. By importing the collection into Postman, you can quickly explore and implement endpoints for tasks such as token retrieval, wallet management, and transaction processing.
Required Variables
Section titled “Required Variables”When you import the Postman Collection and its associated environment file (.json), you’ll see several variables in the Manage Environments section. The following variables are mandatory and must be configured before executing any requests:
Downloads
Section titled “Downloads”Download the required files to work with MoneyGo API in Postman:
Alternatively, you can copy these URLs and paste them directly into Postman’s import window:
- Collection URL:
/Public-Api-Prod.postman_collection.json - Environment URL:
/Public-Api-Prod.postman_environment.json
Mandatory Environment Variables
Section titled “Mandatory Environment Variables”-
URL Example:
https://api.money-go.comThe base URL for all MoneyGo API requests. -
client_id Example:
123456Replace with your actual (or placeholder) client ID. This value is required to obtain your access token. -
client_secret Example:
abcdefReplace with your actual (or placeholder) client secret. This is used alongside theclient_idto generate or refresh tokens. -
your_wallet Example:
UABR193Replace with your actual (or placeholder) wallet ID. This identifies your wallet in the MoneyGo system. -
user_wallet Example:
UABR173Replace with the target user’s wallet ID. This is used when sending or receiving funds between wallets. -
processing_tokenForm Example:
66f66b99b85f0e3...Replace with your actual (or placeholder) processing token. This special token or form parameter is needed for certain transaction requests. -
webhook_site Example:
https://webhook.site/abc123Replace with your webhook endpoint URL. MoneyGo sends event notifications (e.g., transaction status updates) to this address. -
amount Example:
1Specifies the transaction amount for requests that require an amount.
All other variables in the environment file can remain unchanged, as they will be set automatically at runtime or are optional.
1. First Request: Get Token
Section titled “1. First Request: Get Token”Before you can access most API endpoints, you must obtain an access token:
-
Locate the “Get Token” Request: In the Postman Collection, find the request labeled Get Token or POST /token.
-
Review the Request Parameters: Ensure the request body includes:
client_idas{{client_id}}client_secretas{{client_secret}}
-
Send the Request: If the request is successful, the response will include an
access_token. -
Update Your Environment: Copy the
access_tokenfrom the response and paste it into theaccess_tokenvariable (in the Current Value field) in your Postman environment.
2. Running Other Requests
Section titled “2. Running Other Requests”Once you have obtained your access_token, you can proceed with additional API requests, such as:
-
Wallet Operations: (e.g., transferring funds from
your_wallettouser_wallet) -
Transaction Processing: (e.g., using
processing_tokenFormto handle payment transactions) -
Webhook Testing: (e.g., verifying callbacks to
{{webhook_site}})
Ensure that the following variables are properly set to avoid errors:
URLclient_idclient_secretyour_walletuser_walletprocessing_tokenFormwebhook_siteamount
3. Summary
Section titled “3. Summary”- Mandatory Variables: Confirm that your Postman environment is configured with the following:
URLclient_idclient_secretyour_walletuser_walletprocessing_tokenFormwebhook_siteamount
-
Obtain the Access Token First: Use the Get Token request with your
client_idandclient_secret. Then, copy the returned token into theaccess_tokenvariable. -
Proceed with API Calls: All subsequent requests (e.g., wallet transfers, transaction processing) require a valid
access_tokenand the corresponding environment variables.
Following these steps ensures that your Postman environment is correctly configured for using the MoneyGo API. Once you have confirmed that everything works in Postman, replicate the same logic in your application code to fully integrate MoneyGo’s services.
Happy coding!