Integrations
View as Markdown

Check the Stripe connection for one mode

Needs a full-access key (*). About scopes

POST
/api/v1/gateway-credentials/stripe/{mode}/check

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Path Parameters

mode
Required
string

Value in: "test" | "live"

Header Parameters

Idempotency-Keystring

A unique value for this operation, chosen by you. A retry with the same key and the same body returns the first response instead of running again. The same key with a different body answers 409 idempotency_key_reused; a key whose first request is still running answers 409 idempotency_in_progress.

curl -X POST "https://globalymint.com/api/v1/gateway-credentials/stripe/test/check" \
  -H "Idempotency-Key: order-8842-charge" \
  -H "Authorization: Bearer <token>"

What the check found, and the masked status for both modes.

{
  "data": {
    "items": [
      {
        "mode": "test",
        "configured": true,
        "secretKeyHint": "string",
        "publishableKeyHint": "string",
        "hasWebhookSecret": true,
        "account_name": "string",
        "account_id_hint": "string",
        "verified_at": "string",
        "checked_at": "string",
        "webhook_registered": true,
        "webhook_reason": "string",
        "last_event_at": "string",
        "last_event_type": "string",
        "status": "connected",
        "reason": "string",
        "reason_code": "not_verified"
      }
    ],
    "check": {
      "outcome": "checked",
      "mode": "test",
      "status": "connected",
      "reason_code": "string",
      "webhook_registered": true,
      "webhook_reason": "string"
    }
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}