Troubleshoot Salesforce Spiff Webhook API Requests
Troubleshoot common Salesforce Spiff Webhook API errors, including invalid connector IDs, mapping IDs, and empty records after a 200 response.
For setup steps, see Get Started with Salesforce Spiff Webhook API.
These URL formats are valid.
- Test the webhook:
https://SUBDOMAIN.spiff.com/_webhook/connector/CONNECTOR_ID/test - Upsert or delete one record:
https://SUBDOMAIN.spiff.com/_webhook/mapping/MAPPING_ID - Upsert or delete multiple records:
https://SUBDOMAIN.spiff.com/_webhook/mapping/MAPPING_ID/bulk
Before you send a test request, complete the webhook and mapping setup in Set Up a Third-Party Connector in Salesforce Spiff. The test endpoint returns an error if the webhook has no mappings.
| HTTP status | Message | Cause |
|---|---|---|
404 | No such connector | The connector ID in the URL doesn’t match a webhook connector in Spiff. |
400 | Invalid mapping id | The mapping ID in the URL doesn’t match a webhook mapping in Spiff. |
404 | Page not found | The endpoint path is incorrect. |
401 | Could not validate HMAC Signature | The HMAC-SHA256 signature is invalid. |
A 200 response confirms that Spiff received the request. It doesn’t confirm that records were created or updated.
If records are missing or fields are empty after a 200 response:
- Confirm that each record in the request body includes
external_id.external_idis the record’s primary key. Don’t use a different key name, such asKEY. - Confirm that every field name in the payload matches a connector field that you configured in Spiff.
See Also
- Salesforce Help: Set Up a Third-Party Connector in Salesforce Spiff
- Trailhead: Deliver Smarter Incentives with Salesforce Spiff