If you encounter PB-APIM-ERR-1004, Invalid API Call, try the following solutions:
Make sure you are using the correct URL for your environment. The Production environment uses a different URL than the Sandbox test environment. See API Environments.
Make sure you are using the correct version number in the API resource. For correct version numbers, see the list of all API calls or the documentation page specific to the API call.