cancel
Showing results for 
Search instead for 
Did you mean: 

Can't add query param to Webhook URL

Hi,

I'm configuring a webhook for a Salesforce commerce integration but I get an error when trying to add query params to the webhook URL. The merchant portal rejects:

  /services/data/vNN.0/commerce/payments/notify?provider=<paymentGatewayProviderId>

The receiving platform requires a query string for routing, and the value isn't a secret.

Questions:

  1. Is there a way to add a webhook URL with a query string?
  2. If not is there an officially recommended pattern for integrating with platforms whose webhook receivers require query parameters?

Thanks!

lilistoyanovamn
New Member
2 REPLIES 2

It sounds like webhook URLs may not support query parameters. If that's the case, the recommended approach is usually to use an intermediary endpoint or pass the required value through the request body, headers, or URL path instead of a query string. It would be helpful if Salesforce could clarify the officially supported pattern for this scenario.

Webhook URLs appear to reject query parameters. If query strings are not supported, consider using a dedicated endpoint, request headers, or the request body to pass the provider identifier. Another option is to use an intermediary endpoint that receives the webhook and forwards it with the required query parameter. Can Salesforce confirm the recommended approach for integrations that require query-string routing?

hunzafatimaa
Member