> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction simulator webhooks

When a transaction is marked as `capture_pending` by the simulator,
it can be moved to a next state using webhooks.

To move a transaction to the next status, grab the webhook URL for the connector
from your dashboard, and then post a payload with the expected values.

<CodeGroup>
  ```json Capture succeeded theme={"system"}
  {
      "payment_service_transaction_id": "0OTS351KWIJT",
      "event": "capture.succeeded"
  }
  ```

  ```json Capture Failed theme={"system"}
  {
      "payment_service_transaction_id": "0OTS351KWIJT",
      "event": "capture.succeeded"
  }
  ```
</CodeGroup>

In these examples the `payment_service_transaction_id` needs to be set to the value of the field
with the same name on the transaction.

<Warning>
  Webhook handling of capture events is only available for the card / PayPal simulator.
</Warning>
