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

# Get notified about payouts

> Have CreatorCore call your HTTPS endpoint when a creator onboards for payouts and at each stage of a payment.

By the end of this guide, your system receives a signed webhook every time a creator moves through payout onboarding and every time a payment changes stage: initiated, in transit, processed, failed. This page is the shortest path; [Webhooks](https://docs.creatorcore.co/guides/webhooks.md) is the full reference.

## Before you start

* Your organization has the **Payouts** add-on.
* An [API key](https://docs.creatorcore.co/authentication.md) granted the webhook operations by name, plus `payouts.read`. A key granted all operations (`*`) does **not** include the webhook operations. See [API key permissions](https://docs.creatorcore.co/guides/webhooks.md#api-key-permissions) for the list.
* A public HTTPS URL that can receive `POST` requests.

## Set it up

**1. Register your endpoint**

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/utilities/notifications/destinations \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "webhook", "label": "Payout notifications", "config": { "url": "https://example.com/creatorcore/webhooks" } }'
```

Keep `destination.id` from the response for the next steps. The response also includes `signingSecret`. **It is shown only once**, so store it with your other secrets. See [Create a notification destination](https://docs.creatorcore.co/api-reference/notification-destinations/create-a-notification-destination.md).

**2. Subscribe to payout events**

Pick the subscription that matches what you need:

| You want | Subscribe to |
| - | - |
| Everything payout-related, including onboarding | `payouts:%` |
| Onboarding only | `payouts:recipient:%` |
| Payment stages only | One subscription per topic, such as `payouts:created`, `payouts:pending`, `payouts:completed` and `payouts:failed` |

No wildcard covers payment stages without onboarding, because both use the `payouts:` prefix. A topic ending in `%` matches every topic that starts with the same prefix.

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "topic": "payouts:%", "destinationId": "<destination id>" }'
```

To see every topic you can subscribe to, call [List supported notification event topics](https://docs.creatorcore.co/api-reference/notifications/list-supported-notification-event-topics.md).

**3. Send a test event**

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/<destination id>/test \
  -H "Authorization: Bearer $CREATORCORE_API_KEY"
```

Your endpoint receives a signed `notification.test` event. See [Send a test webhook event](https://docs.creatorcore.co/api-reference/notification-destinations/send-a-test-webhook-event.md).

**4. Verify and acknowledge each delivery**

Check the `CreatorCore-Signature` header against the **raw** request body, then respond with any `2xx` within 10 seconds. Delivery is at least once and can arrive out of order, so skip any event `id` you have already processed. See [Verify the signature](https://docs.creatorcore.co/guides/webhooks.md#verify-the-signature) and [Retries and duplicates](https://docs.creatorcore.co/guides/webhooks.md#retries-and-duplicates).

## What you will receive

**A payment** filed as a request starts with `payouts:requested`; a payout sent directly skips that event. An approved request whose creator hasn't finished onboarding gets `payouts:awaiting_recipient` first. You get `payouts:created` (initiated) once per payment. If it goes out later, `payouts:scheduled` follows, with the estimated time it goes out in `data.payout.releaseAt`. Then `payouts:pending` (in transit) and `payouts:completed` (processed; standard bank transfers can take a few more business days to land). A payment can also stop with `payouts:failed`, `payouts:reversed` or `payouts:canceled`.

**Onboarding** usually goes `payouts:recipient:invited`, `payouts:recipient:started`, `payouts:recipient:verified`, `payouts:recipient:method_added`, then `payouts:recipient:onboarded`. Steps can be skipped, so don't wait for every one.

[Events](https://docs.creatorcore.co/guides/webhooks.md#events) lists every topic and what it means. For the full body schemas, see [Payout completed](https://docs.creatorcore.co/api-reference/webhooks/payout-completed.md) and [Payout recipient onboarded](https://docs.creatorcore.co/api-reference/webhooks/payout-recipient-onboarded.md).

## Troubleshooting

* **`403` when subscribing.** The API key doesn't have `payouts.read`. See [API key permissions](https://docs.creatorcore.co/guides/webhooks.md#api-key-permissions).
* **Nothing arrives after subscribing.** Topics aren't checked when you subscribe, so a typo is accepted and matches nothing. Compare yours with the [topic list](https://docs.creatorcore.co/api-reference/notifications/list-supported-notification-event-topics.md).
* **Deliveries stopped.** A webhook belongs to the API key that created it. Revoking or deleting that key disables the webhook. See [API key permissions](https://docs.creatorcore.co/guides/webhooks.md#api-key-permissions).
* **A delivery failed.** Find it in the [delivery log](https://docs.creatorcore.co/guides/webhooks.md#delivery-log) and [redeliver it](https://docs.creatorcore.co/api-reference/notifications/redeliver-a-failed-webhook-event.md) once your endpoint is fixed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.