Every request to Stigg — whether it succeeds or fails — generates a trace ID. This ID is consistent across the activity log, the API response, and any webhook notifications emitted during the same request. You can use it to correlate all three signals into a single investigation, or share it with the Stigg team for server-side log correlation. There are three places where trace IDs surface:Documentation Index
Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
Use this file to discover all available pages before exploring further.
- The activity log — for both successful and failed requests
- Error responses — on any failed API call
- Webhook error notifications — emitted when specific failure events occur
1. Activity log
Every event in the activity log carries a trace ID tied to the request that triggered it.Viewing a trace ID for a successful request
- In the Stigg app, navigate to the relevant customer.
- Open the Activity tab.
- Click into the event (for example,
subscription.created). - The trace ID is shown in the event header.
- See the API request (the GraphQL mutation) that originated the event — this is exactly the request your application sent.
- See the API response returned to your application for that request.
Sharing an event with the Stigg team
Click Copy event link from the event header to get a direct URL to that event. You can share this link with the Stigg team to give them immediate context when requesting further investigation.Filtering by trace ID
To find all events associated with a single request, use the Trace ID filter in the activity log. This is particularly useful when a single request triggers multiple downstream events (for example, a subscription creation that also triggers entitlement updates or billing sync events).Activity log
2. Error responses
When a request fails, the Stigg API includes a trace ID in the error response. It appears in theextensions field of each error object:
What to log on your side
When an error occurs, capture and log at minimum:| Field | Where to find it |
|---|---|
traceId | errors[].extensions.traceId |
code | errors[].extensions.code |
message | errors[].message |
| Operation name | The GraphQL operation or REST endpoint you called |
| HTTP status | From the response headers |
Using the trace ID
Once you have the trace ID from an error:- Search the activity log by trace ID to see whether Stigg recorded an event for the request and what state it left the system in.
- Share it with the Stigg team to request a deeper investigation using Stigg’s internal logs.
Common error codes
| Code | Description |
|---|---|
Unauthenticated | Invalid or missing API key |
InvalidArgumentError | The request payload is malformed or contains invalid values |
CustomerNotFound | The referenced customer does not exist |
SubscriptionNotFound | The referenced subscription does not exist |
PlanNotFound | The referenced plan does not exist |
3. Webhook error notifications
When a request fails, Stigg can emit a webhook notification in addition to returning an error response. These notifications carry the same trace ID as the originating request, so you can match them to the corresponding API call and activity log entry.Available error events
subscription.create_failed — fired whenever a subscription creation attempt fails.
input field contains the parameters that were sent in the original request. The error field contains the human-readable error message.
customer.payment_failed — fired when a charge attempt fails. Requires a billing provider integration (for example, Stripe or Zuora).
sync.failed — fired when Stigg fails to sync an entity to an integrated third-party system (for example, a CRM or billing provider).
Setting up error webhooks
To receive these notifications:- Go to Settings > Integrations > Webhooks.
- Click + New webhook.
- Enter a service name and your endpoint URL.
- In Events to send, select the error events you want to subscribe to.
- Click Add.
Webhook events
Correlating across all three
The trace ID is the same across the API response, activity log, and webhook notification for a given request. For example, when a subscription creation fails:- Your application receives an error response containing the trace ID.
- A
subscription.create_failedwebhook is emitted to your endpoint with the same trace ID. - The activity log records the event, also tagged with that trace ID.
- Connect your application logs to the Stigg activity log.
- Match webhook notifications to the specific request that caused them.
- Correlate multiple downstream events triggered by one request.
To request a server-side investigation from Stigg, share the trace ID. It allows the Stigg team to look up the exact request in internal logs and provide detailed context on what occurred.
