Webhooks
View as Markdown

Send a test event

Needs the webhooks:write scope, or a full-access key. About scopes

POST
/api/v1/webhook-endpoints/{id}/test

Authorization

Authorization
Required
Bearer <token>

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

In: header

Request Body

application/jsonOptional

event_type
Required
string

An event GlobalyMint delivers.

Value in: "customer.created" | "subscription.created" | "subscription.updated" | "subscription.paused" | "subscription.resumed" | "subscription.canceled" | "subscription.renewed" | "invoice.created" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.voided" | "invoice.uncollectible" | "payment.refunded" | "payment_method.attached" | "dunning.retry.scheduled" | "dunning.campaign.exhausted" | "entitlements.updated" | "credit_note.issued" | "subscription.discount_applied" | "subscription.discount_removed" | "customer.balance_updated" | "checkout.session.completed" | "subscription.trial_will_end" | "customer.updated" | "payment.succeeded" | "subscription.renewal_upcoming" | "subscription.price_change_scheduled" | "subscription.price_change_applied" | "subscription.price_change_canceled" | "api_key.expiring"

Path Parameters

id
Required
string

Format: "uuid"

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/webhook-endpoints/3fa85f64-5717-4562-b3fc-2c963f66afa6/test" \
  -H "Idempotency-Key: order-8842-charge" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "event_type": "customer.created"
  }'

The outcome of the POST. delivered is false when the receiver did not answer 2xx within 10 s.

{
  "data": {
    "delivery_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "event_type": "string",
    "delivered": true,
    "status_code": 0,
    "response_ms": 0,
    "error": "string"
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}