send webhooks

Description

Send Webhooks allows you to send data for a specific transaction, customer, or subscription to the webhook you specify.

To feed a webhook from the store resource, send a POST request to send_webhooks with the resource to feed and the webhook IDs to feed to:

[
    {
        "resource": "https://api.foxycart.com/transactions/transaction-id",
        "refeed_webhooks": [webhook-id-1, webhook-id-2]
    }
]

You can bulk refeed by sending an array:

[
    {
        "resource": "https://api.foxycart.com/transactions/transaction-id-1",
        "refeed_webhooks": [webhook-id-1, webhook-id-2]
    },
    {
        "resource": "https://api.foxycart.com/transactions/transaction-id-2",
        "refeed_webhooks": [webhook-id-1, webhook-id-2]
    }
]

To feed a webhook from the transactions, customers, or subscriptions resources, send a POST request to send_webhooks the webhook IDs to feed to:

{
    "refeed_webhooks": [webhook-id-1, webhook-id-2]
}

Interact with this resource

To interact with this resource and see it in the context of the API, you can utilise Postman or your Terminal/Console to perform requests. If you have a Foxy store, you can also use the API browser in the admin to interact with resources connected to your store.