Astra sends a webhook when a transfer is created and each time its status changes. Each webhook tells you which transfer changed, not what it changed to. To get the new status, call Get a Specific Transfer for a User with the resource_id from the webhook.
To confirm that a webhook came from Astra, see Webhook Verification.
Astra sends only the webhook topics that you subscribe to in the Astra Dashboard. To receive the events on this page, subscribe to the transfer webhook topics.
Transfer created
Astra sends transfer_created when a routine produces a transfer.
| Parameter | Data type | Description |
|---|---|---|
webhook_type | string | transfer_created |
webhook_id | string | The unique ID of the webhook event |
user_id | string | The unique ID of the user |
resource_id | string | The unique ID of the resource (transfer ID) |
{
"webhook_type": "transfer_created",
"webhook_id": "364f57aa-47dd-461b-8df4-d6388fb2d05e",
"user_id": "0335ff6c8223d6626800253f88de7268",
"resource_id": "b2b301aa-4a89-42a9-a341-95fe5db15ca1"
}Transfer updated
Astra sends transfer_updated when the status of a transfer changes.
| Parameter | Data type | Description |
|---|---|---|
webhook_type | string | transfer_updated |
webhook_id | string | The unique ID of the webhook event |
user_id | string | The unique ID of the user |
resource_id | string | The unique ID of the resource (transfer ID) |
{
"webhook_type": "transfer_updated",
"webhook_id": "364f57aa-47dd-461b-8df4-d6388fb2d05e",
"user_id": "0335ff6c8223d6626800253f88de7268",
"resource_id": "b2b301aa-4a89-42a9-a341-95fe5db15ca1"
}How a Push-to-Card payout completes
Astra completes an account-to-card payout asynchronously. A successful response to Create an account to card routine means Astra accepted the request. It doesn't mean the money reached the card. Use transfer webhooks to learn the outcome.
An account-to-card payout moves through these stages:
- You create an account-to-card routine. Astra returns the routine in the response.
- Astra processes the routine and creates a transfer. Astra sends
transfer_created. The transferstatusispending. - Astra sends an Original Credit Transaction (OCT) to the recipient's debit card through the card network.
- The OCT is approved or declined. Astra updates the transfer
statusand sendstransfer_updated. - You call Get a Specific Transfer for a User to read the new
statusand, if the payout failed, thefailure_reason.
For detail on each leg of the payout, such as the ACH debit and the OCT, call Get Details on the Segments of a Transfer.
Wait for a final statusDon't show the recipient a "funds sent" message based on the routine response alone. Wait for the transfer to reach a final status.
Example: a payout that succeeds
In this example, a user sends $12.99 from their bank account to their debit card, and the OCT is approved. You receive two webhooks for the same transfer.
Webhook 1: the transfer is created.
{
"webhook_type": "transfer_created",
"webhook_id": "a1f0c3d2-6b1e-4c8a-9e7f-2d5b8c4a1e01",
"user_id": "0335ff6c8223d6626800253f88de7268",
"resource_id": "b2b301aa-4a89-42a9-a341-95fe5db15ca1"
}When you get the transfer, its status is pending. The payout isn't final yet.
{
"action_id": "6f1226a3-088a-4ff8-b3db-427de82f013f",
"action_name": "My Account to Card Routine 12.99",
"action_type": "one-time",
"amount": 12.99,
"client_correlation_id": "qzhcv0rg",
"destination_id": "fd09f886-aa8e-4984-8e15-367ba6c6a46b",
"destination_user_id": "0335ff6c8223d6626800253f88de7268",
"id": "b2b301aa-4a89-42a9-a341-95fe5db15ca1",
"initiated": "2026-11-18T23:35:41.252282+00:00",
"processor": "astra",
"routine_id": "6f1226a3-088a-4ff8-b3db-427de82f013f",
"routine_name": "My Account to Card Routine 12.99",
"routine_type": "one-time",
"source_id": "astra_generic_8c521e899f42e153a0efcf9dbb91e0b9",
"status": "pending",
"updated": "2026-11-18T23:35:41.252306+00:00"
}Webhook 2: the transfer status changes.
{
"webhook_type": "transfer_updated",
"webhook_id": "b7e2d4f1-3c9a-4f6b-8d0e-5a1c7b9e2f02",
"user_id": "0335ff6c8223d6626800253f88de7268",
"resource_id": "b2b301aa-4a89-42a9-a341-95fe5db15ca1"
}When you get the transfer again, its status is processed. The payout is complete, and you can tell the recipient the funds are on their card. This example shows only the fields that changed. Other fields are omitted.
{
"id": "b2b301aa-4a89-42a9-a341-95fe5db15ca1",
"amount": 12.99,
"initiated": "2026-11-18T23:35:41.252282+00:00",
"updated": "2026-11-18T23:35:45.137953+00:00",
"status": "processed"
}Example: a payout where the OCT fails
In this example, the same $12.99 payout starts the same way, but the card issuer declines the OCT. The webhooks look the same as in the success example. The difference is in the transfer you get after transfer_updated.
Webhook 1: transfer_created. The transfer status is pending.
Webhook 2: transfer_updated. When you get the transfer, its status is failed, and failure_reason explains why. This example shows only the fields that changed. Other fields are omitted.
{
"id": "b2b301aa-4a89-42a9-a341-95fe5db15ca1",
"amount": 12.99,
"initiated": "2026-11-18T23:35:41.252282+00:00",
"updated": "2026-11-18T23:35:44.508117+00:00",
"failure_reason": "<OCT decline reason>",
"status": "failed"
}Astra doesn't retry a failed OCT to the same card. To pay the recipient, create a new routine after you resolve the cause. For example, ask the recipient to add a different debit card, or to confirm that their card can receive push payments. To check this before you send a payout, see Messaging for Cards Not Pull or Push Enabled.
Use Get Details on the Segments of a Transfer to see which leg failed and whether the source account was debited.
Which status means the payout is final
A payout is final when the transfer status is processed, failed, or cancelled. A pending transfer can still change, so don't act on it as an outcome.
| Status | Final | What it means for a Push-to-Card payout | What to do |
|---|---|---|---|
pending | No | Astra is still processing the payout. | Wait for the next transfer_updated webhook. |
processed | Yes | The funds reached the recipient's debit card. | Tell the recipient the payout is complete. |
failed | Yes | The payout didn't complete. Read failure_reason for the cause. | Tell the recipient, resolve the cause, and create a new routine if needed. |
cancelled | Yes | The transfer was canceled before it completed. | Update your records. No funds reached the card. |
Recommendations for handling transfer webhooks
- Always get the transfer after a webhook arrives. Don't infer the outcome from the webhook type alone, because both success and failure arrive as
transfer_updated. - Store each
webhook_idyou process, and skip any you've already handled. - Don't assume webhooks arrive in order. Because you read the current transfer each time, an earlier webhook that arrives late doesn't change your result.
- Return a
2xxresponse quickly, and do slow work after you respond.