POST

Authentication

Requires X-API-KEY header.

Details

Sends one signed event to the webhook URL set for the environment your API key belongs to (your test key uses the sandbox URL, your live key uses the live URL). It goes through the same pipeline as a real event, so the event id, the three X-Playto-* headers, the signature and the retries are the real thing. See Webhooks for how to verify it. The call queues the event and returns straight away. Check your server’s log for the event id it returns.
  • Live (production): only webhook.test can be sent. It carries a short message, your merchant id and a timestamp, with livemode: true. It never looks like a payment.
  • Sandbox: you can also send a sample invoice.paid, payment.succeeded or dispute.created. A sample has the fields of the real event, obviously fake ids (all zeros) and livemode: false, so you can run your real handler against it.
You can send up to 10 test events a minute.

Body Parameters

string
The event to send. Defaults to webhook.test. In the sandbox you can also pass invoice.paid, payment.succeeded or dispute.created. Any other value, or anything but webhook.test in production, returns 400.

Response

Returns 202 Accepted.
string
The event id (evt_...). It is the id in the body your server receives and the X-Playto-Event-Id header.
string
The event type that was queued.
boolean
true in production, false in the sandbox.
string
The delivery’s state when this call returned: pending (queued), delivered, or failed (the first attempt failed and a retry is scheduled).