Skip to content

Ping is a health check endpoint. It verifies the service is currently reachable. This also checks that an API token is still valid.

This is a simple endpoint call. It takes no parameters. A successful call returns a 200 OK and a small response body. That response reports which account and environment the token resolves to, such as a merchant or a partner account, and whether it is sandbox or production. It is typically called frequently and automatically rather than as part of actual business logic.

This endpoint is useful as:

  • an application startup check when an integration boots.
  • a periodic keep-alive in a monitoring dashboard,
  • a quick manual test after rotating an API key, to confirm the new key and its account.

A partner API token, or a merchant API token managed by a partner, also needs ping access enabled on the partner's account. A direct merchant API token never needs this extra permission.

It shares the same error-handling shape as every other endpoint, such as response codes for 400, 401, 403, 429, or 500. These error response codes are also diagnostically useful. For example, a response code of 401 indicates the API token is invalid or expired. A response code of 403 indicates the account lacks permission to use this endpoint, or the token resolves to neither a merchant nor a partner.

See Also:
To ping a webhook endpoint, see POST /v2/webhooks/endpoints/{{webhookId}}/ping