Using Platform Triggers, you can automate tasks to streamline your workflows. When working with POST request trigger types, you can also use outbound webhooks to push payloads to servers that you want automatically updated. Outbound webhooks send event data from Sage Intacct to an external endpoint whenever a Platform Trigger event occurs. This allows external systems to receive event information in real time and take action without requiring polling or manual intervention. You may have concurrent requests using webhooks.

One of the primary advantages of using webhook delivery rather than just HTTP POST is that webhooks automatically re-try if no response is received, up to four total attempts.

## Prerequisites

* Understand how to create a Platform trigger. See [Add Platform triggers to automate tasks](https://www.intacct.com/ia/docs/en_US/help_action/More/Customization_and_Platform_Services/Triggers/add-platform-triggers.htm?) in the Sage Intacct Help Center.
* Obtain a client ID by following the instructions in the [REST developer quick start](https://developer.sage.com/intacct/docs/1/sage-intacct-rest-api/get-started/quick-start).
* Know which HTTPS endpoint will receive the webhook request and confirm it accepts HTTP POST requests.

## Create a Platform Trigger webhook

1. Follow the instructions to create a trigger as you normally do using the steps in [Add Platform triggers to automate tasks](https://www.intacct.com/ia/docs/en_US/help_action/More/Customization_and_Platform_Services/Triggers/add-platform-triggers.htm).
2. Ensure you select HTTP post as your trigger type.
3. When defining the trigger type properties, select **Use webhook
   delivery**.
4. When you select **Use webhook delivery**, the **Client ID** field appears. Add your client ID information.
5. Define the remainder of your property details.
6. Save your trigger.

## Webhook delivery behavior

When a Platform trigger event with a webhook occurs, Sage Intacct creates a webhook payload. This payload is delivered to the configured endpoint, and the endpoint validates the request. After validation, the endpoint returns a response.

If a call is unsuccessful, retries occur until a successful HTTP status code is received, up to 4 attempts. Note that all status codes beginning with `2` are considered successful. The following HTTP status codes trigger retries:

| HTTP Status Code          | Description                                                           |
| ------------------------- | --------------------------------------------------------------------- |
| 408 Request Timeout       | The server timed out waiting for the request.                         |
| 429 Too Many Requests     | Too many requests were sent in a given period.                        |
| 500 Internal Server Error | An unexpected server error occurred.                                  |
| 502 Bad Gateway           | The server received an invalid response from an upstream server.      |
| 503 Service Unavailable   | The service is temporarily unavailable.                               |
| 504 Gateway Timeout       | The server did not receive a timely response from an upstream server. |

If the first call fails, retries occur at the following intervals:

* First retry after 10 seconds
* Second retry after 30 seconds
* Third retry after 90 seconds

## Idempotency handling

To ensure idempotent message processing, each webhook request includes a unique Idempotency-Key. To prevent duplicate processing:

1. Store each received Idempotency-Key.
2. Check whether the key has already been processed.
3. If the key exists, return the previous response.
4. Retain keys for at least 24 hours.

## Integrate with Sage Intacct and validate requests

If you need to integrate a system with Sage Intacct to receive webhook requests, endpoints must:

* support HTTPS
* be publicly accessible
* accept HTTP POST requests
* respond within the specified timeout periods

### Header reference

In addition to the above requirements for integration, Sage Intacct recommends verifying request JSON web token (JWT) signatures and using HTTPS for transport encryption. The header information from Sage Intacct will contain detail to indicate whether a request is legitimate.

| Header              | Description                                                                                                                      |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| X-ClientContext     | Trigger and event metadata                                                                                                       |
| X-IA-Sage-Signature | Base64 encoded context information, including the client ID and the JWT token. This information gets decoded on the server side. |
| Idempotency-Key     | Unique request identifier for duplicate request checking                                                                         |

### Security steps

To verify that a webhook request originated from Sage Intacct and was not modified during transit, validate both the JWT signature and the payload hash.

1. Decode and verify that the JWT contained in the X-IA-Sage-Signature is using your client secret (HS256).
2. Validate standard claims: Check exp has not passed, iss is "Sage Intacct".
3. Hash the raw received request body with SHA-256 (hex-encoded).
4. Compare the hash to the payload_signature claim in the JWT. If all checks pass, the payload is authentic and has not been tampered with.

JWT Claims:

| Claim                 | Description                                        |
| --------------------- | -------------------------------------------------- |
| iat                   | Issued at (epoch ms)                               |
| exp                   | Expiration (iat + 1 hour)                          |
| iss                   | "Sage Intacct"                                     |
| tenant_id             | Client ID / Tenant identifier                      |
| app_id                | Partner application ID                             |
| payload_signature     | `SHA-256` hex hash of the exact posted body string |
| payload_signature_alg | `SHA-256`                                          |

Subscriber verification (pseudocode):

```
import jwt, hashlib
def verify_jwt_signature(received_body, jwt_token, shared_secret):
    # Verify ia-core (JWT) signature.
    # Two-step verification:
    #   1. Verify the JWT signature (proves it came from someone with the shared secret)
    #   2. Verify the payload hash (proves the HTTP body was not swapped)
    # Both steps are REQUIRED for secure verification.
    # Step 1: Verify JWT signature and decode claims
    # This also validates exp (expiration) automatically
    claims = jwt.decode(jwt_token, shared_secret, algorithms=["HS256"], issuer="Sage Intacct")
    # Step 2: Verify payload integrity (CRITICAL - do not skip)
    # Without this, an attacker could present a valid JWT with a different HTTP body
    expected_hash = hashlib.sha256(received_body).hexdigest()
    return claims["payload_signature"] == expected_hash
```

### Client context header example

```
X-ClientContext
eyJDT01QQU5ZIjoxOTkwNTYsIkVOVElUWSI6ZmFsc2UsIlVTRVIiOiI5IiwiT0JKRUNUTkFNRSI6IkNMQVNTIiwiUkVTVE9CSkVDVE5BTUUiOiJjb21wYW55LWNvbmZpZ1wvY2xhc3MiLCJET0NUWVBFIjoiIiwiSUQiOnt9LCJWSUQiOiI1MDAiLCJFVkVOVCI6ImFmdGVyX2NyZWF0ZSIsIkVWRU5UTkFNRSI6IkFmdGVyIGNyZWF0ZSBvciB1cGRhdGUgY2xhc3Mgbm90aWZpY2F0aW9uIiwiVElNRVNUQU1QIjoiMDFcLzE2XC8yMDI2IDIxOjI4OjAwIn0=
```

### Signature header example (JWT)

```
 X-IA-Sage-Signature
 eyJjbGllbnRJZCI6ImQ0ZjJiNmIzMTgxNzRiOWE2MGE3LklOVEFDQ1QuYXBwLnNhZ2UuY29tIiwiZGJJZCI6NjE0MDQsImRiVVJJIjoiZGV2Nzc6OTA4MCIsImNvbm5JZCI6NzM5NDUsInVzZXJJZCI6IkFkbWluIiwidXNlcktleSI6MSwiY29tcGFueUlkIjo0NTIxMTk2OSwibG9jYXRpb25LZXkiOjAsIm1vbmdvU2hhcmQiOiJkZXZfcnMxIiwic2Vzc2lvbktleSI6IlN6a3dwVDl0bS11SVhobWl2a19fM29KSF80bGVHVXM1TUtVOTNGT0xpRjRab3I1UHZ0X3hkUHVJIiwidHJ4TGV2ZWwiOjAsImp3dERhdGEiOm51bGx9
```

### Client context decoded

```
{
  "COMPANY": "199056",
  "ENTITY": false,
  "USER": "9",
  "OBJECTNAME": "CLASS",
  "RESTOBJECTNAME": "company-config/class",
  "DOCTYPE": "",
  "ID": {},
  "VID": "200",
  "EVENT": "after_update",
  "EVENTNAME": "CreateUpdate class"
}

```

### Payload example

Payload fields are determined by the API object you use. In the following example, the Employee expense object is used, which contains fields relevant to an individual employee expense report.

```
{
  "beginDate": "2026-01-01",
  "state": "submitted",
  "description": "Week of 01/01/26",
  "employee": {
    "key": "973"
  },
  "attachment": {
    "key": "8420"
  },
  "lines": [
    {
      "dimensions": {
        "department": {
          "key": "11"
        },
        "location": {
          "key": "22"
        },
        "project": {
          "key": "1"
        },
        "costType": {
          "key": "2"
        },
        "task": {
          "key": "1"
        },
        "customer": {
          "key": "13"
        },
        "item": {
          "key": "13"
        }
      },
      "entryDate": "2026-04-01",
      "quantity": 6,
      "description": "Week of 04/01/26",
      "notes": "Talked to client regarding project",
      "timeType": {
        "key": "1"
      },
      "isBillable": true
    }
  ]
}
```

Other suggested security practices include implementing a rate-limiting process and logging all webhook requests to assist with troubleshooting.

## Troubleshoot webhook delivery

| Issue                 | Possible cause                      |
| --------------------- | ----------------------------------- |
| Duplicate processing  | Idempotency-Key not checked         |
| Requests not received | Endpoint is not publicly accessible |

## Retrieve missed messages

Up to 3 retries are attempted if your service returns a temporary failure response. These messages are stored for up to 7 days. [Read about the Trigger queue event service](/intacct/docs/1/sage-intacct-rest-api/webhooks-and-triggers/events). You can retrieve and process them using the following endpoints:

| Endpoint                                   | Notes                                                                                                                   |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| `/ia/api/v1/services/delivery/event/count` | **GET** - Retrieve the number of messages available for your application.                                               |
| `/ia/api/v1/services/delivery/event/list`  | **GET** - Retrieve a list of messages that are ready to be processed.                                                   |
| `/ia/api/v1/services/delivery/event/ack`   | **POST** - Acknowledge receipt and successful processing of messages. Acknowledged messages are removed from the queue. |