Set Up a Test API Call
In Step 3, you define a test API operation to validate that the authentication and request logic is working correctly. The test is triggered when a connector is created using this integration.
To configure a test API call:
- Choose a lightweight, non-destructive API endpoint from the third-party platform that can confirm successful connectivity.
Config Section | Developer Action | Example |
---|---|---|
HTTP Method | Select the request method to test connectivity. | GET |
Test URL | Provide the full API endpoint. Use one that verifies credentials without modifying data. | https://sellingpartnerapi-na.amazon.com/orders/v0/orders |
Headers / Auth | Add required headers (e.g., token, API key) as expected by the platform. | Authorization: Bearer ${access_token} |
Params / Body | Add optional query parameters or body values. | Filter fields, date ranges, etc. |
Assert Expression | Define the expected success condition. | HTTP Status Code == 200 |
Output Processing | Select how the response will be handled or extracted. | - Path: $.order_id - Fixed: token_type: Bearer - Full Response |
- After completing the fields above, click Save and Next.
- To execute the test API operation and validate the configuration:
- Navigate to Workspace and select the target merchant.
- Click + Add Connector.
- From the connector list, choose the integration created in Step 1.
- Input required authentication fields (e.g., API Key, OAuth login).
- Complete the Auth flow and click Test Connection.
- This triggers both:
- Authentication check (token or credential validation)
- Execution of the configured test API call
- If the connection is successful, click Submit. The connector will now appear in the Connectors list.
- If the test fails:
- Review the Error Message in the connector setup window.
- Navigate to Integrations, locate the one you created, and click View Logs (opens in a new tab) for debugging.