Antom, leading provider of tailored payment solutions

Integration diagnostics

If an API request fails or returns an unexpected result during integration, use one of the following methods to investigate the cause and get recommendations for resolving the issue.
Method
Use case
Antom AutopilotView request logs and diagnose requests in Antom Dashboard.
Antom CLIDiagnose sandbox requests from the command line or with an AI agent.
Note: Before you begin, make sure you have the paymentRequestId of the request you want to diagnose, and confirm which merchant and environment the request belongs to.

Diagnose with Antom Autopilot

Follow these steps to diagnose payment request errors with Antom Autopilot during sandbox integration testing and get recommendations for resolving the errors.
  1. Log in to Antom Dashboard and go to Developer > Request Log.
  2. Click the merchant name in the upper-left corner of the page, and select the merchant account associated with the request you want to diagnose.
  3. Use the mode switch in the lower-left corner of the page to switch to Test mode. An indicator at the top of the page shows that you are in the test (sandbox) environment.
  4. Use either of the following methods to diagnose the request:
    • Request log: Search by Payment Request ID, select the request, and click Ask Autopilot.
    • Autopilot chat: Open Antom Autopilot, provide the paymentRequestId, and describe the issue.
For example, you can use the following prompt:
Note: Before submitting your question, replace the paymentRequestId in the example with the ID of the request you want to diagnose.
Code exampletext
Please diagnose the request with paymentRequestId d3719a45-fe2a-49a1-a537-3ef79833fc5e, explain the cause of the error, and provide recommendations for resolving it.

Diagnose with Antom CLI

Use Antom CLI to diagnose payment request errors during sandbox integration testing and get recommendations for resolving them.

Diagnose from the command line

  1. Install Antom CLI.
  2. Complete login and merchant configuration. Make sure the current merchant account is the one associated with the failed request.
  3. Replace YOUR_PAYMENT_REQUEST_ID in the following command with the ID of the failed request, run the command to diagnose the request, and review the recommended steps:
bash
antom integration diagnose --request-id YOUR_PAYMENT_REQUEST_ID

Diagnose with an AI agent

In the following template, replace paymentRequestId to diagnose with the ID of the sandbox request you want to diagnose. Copy the entire template into an AI agent that can run terminal commands.
Note:
  • Find the request ID in your request parameters or Developer > Request Log.
  • The CLI uses the merchant identity authorized at login, so you do not need to specify it in the template. The first time you use the CLI, follow the prompts to authorize access in your browser with an administrator account.
markdown
Use Antom CLI to diagnose this sandbox request:

- paymentRequestId: [paymentRequestId to diagnose]

If the request ID is missing or is still a placeholder, ask me for the actual request ID and wait for my response. Do not run diagnosis with a placeholder.

Perform the following steps:
1. Read the official guide: https://docs.antom.com/ac/ref/antom_cli.md. Check whether the CLI is available. If it is not installed, follow the official installation instructions for the current operating system.
2. Run antom whoami to check the current identity and credential configuration. If login is required, run antom login --non-interactive and guide me through browser authorization with an administrator account. After authorization is complete, run antom login --complete and check the identity again.
3. Use the current merchant identity and conversation context to confirm the merchant associated with the request. If you cannot determine the merchant, use antom login list to list the saved profiles and ask me to select one. Use --profile to specify the selected profile when running diagnosis. If the target merchant is not logged in, guide me through the login process.
4. Run antom integration diagnose with the paymentRequestId provided above as the value of --request-id, and include --json.
5. Based on the actual results, explain the cause of the error, the supporting evidence, and specific steps to resolve it in concise Chinese. Clearly state when the available information is insufficient.

Only diagnose the request and provide recommendations. Do not modify code or merchant settings, or initiate another payment.