Webhooks
Send a test event
Needs the webhooks:write scope, or a full-access key. About scopes
POST
/
api/v1/webhook-endpoints/{id}/testAuthorization
AuthorizationRequiredBearer <token>
An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).
In: header
Request Body
application/jsonOptionalevent_typeRequiredstring
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
idRequiredstring
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.
The outcome of the POST. delivered is false when the receiver did not answer 2xx within 10 s.