Notes

  1. Ensuring API Key Security

    • Do not expose your API key in public repositories or client-side code.

    • Store the API key in environment variables or secure storage and restrict access.

  2. Validating the Request Body

    • Before making an API request, ensure all required parameters are included.

    • In particular, referralId and conversionId are mandatory fields.

  3. Error Handling

    • Utilize the error.code field in the response to identify the cause of the error and implement appropriate handling.

  4. Using Different Environments

  5. Addressing CORS Errors

    • If CORS errors occur in a browser environment, consider using a proxy server or implementing the logic on the server side.

    • For detailed solutions and reasons for CORS restrictions, refer to Handling CORS Errors.

Last updated

Was this helpful?