Merchant API productInputs Name limitation

My Merchant Center center account has a Product ID contains the / character. Since this is a separator for the Name in Merchant API, I keep getting a “The format of name does not match the expected format `accounts/{account}/productInputs/{productinput}“ error. How do I make updates to this products using the Merchant API?

Hey,

Hope you’re keeping well.

In the Merchant API, the name field for a productInput must follow the exact resource path format without unescaped special characters. If your Product ID contains /, you’ll need to URL-encode it before passing it in the request, so the slash becomes %2F and doesn’t break the path parsing. For example:


accounts/ACCOUNT_ID/productInputs/PRODUCT_ID_ENCODED
```  

You can encode the ID in your client code or via standard URI encoding methods before calling the API, ensuring the resource path matches the expected format.

Thanks and regards,  
Taz