To help you test the Trustist Ecommerce Payments API more efficiently, we have provided a Postman collection that you can import and use to send requests to our API. Postman is a popular API testing tool that allows you to easily create, save, and execute HTTP requests. By using our collection, you can ensure that your requests are correctly formatted and authenticated.
Here’s how to get started with the Postman collection:
1. Download and install Postman from https://www.postman.com/downloads/ if you haven’t already.
2. Open Postman and click the “Import” button in the top left corner.
3. Download the collection from here:
4. Click “Import” to confirm the import of the Trustist Ecommerce API collection.
5. The Trustist Ecommerce API collection should now be available in your Postman workspace. Click on the collection to expand it and view the available API endpoints.
6. Before you start sending requests, you need to set up the environment variables. Click the gear icon in the top right corner to open the “Manage Environments” dialog. Create a new environment, and add the following variables:
– `client-id`: Your Client ID (also known as the merchant ID)
– `client-key`: Your Private Key
– `trustistecommerce-api-host`: The API host URL (use `https://api-sandbox.trustistecommerce.com` for the sandbox environment or `https://api.trustistecommerce.com` for the production environment)
7. Select the environment you just created from the dropdown menu in the top right corner of Postman.
8. You are now ready to send requests to the Trustist Ecommerce Payments API. Expand the collection and select an endpoint (e.g., “Create Payment”) to view the request details. Ensure the request is using Hawk authentication with the correct credentials.
9. Click “Send” to execute the request. Postman will display the response from the API below the request.
10. The collection includes pre-defined tests for some requests. After sending a request, check the “Test Results” tab below the response to see if the tests passed or failed. Using the Postman collection, you can easily test your integration with the Trustist Ecommerce Payments API, validate your authentication, and verify the request and response formats. This will help you to ensure a smooth integration process and quickly identify any issues that may arise.