I've the the Salesforce module mapping in place integrated with Commerce module and I've the following SalesforceException when purchasing the order:

SalesforceException: HTTP Method 'PATCH' not allowed. Allowed are HEAD,GET,POST

What's happening and how to deal with or debug this problem?

  • This question appears to be off-topic because it is either a problem in SalesForce, or a bug in the module (in which case you should post in the module's issue queue). Sep 10, 2014 at 15:42
  • Re-posted at: Salesforce.SE.
    – kenorb
    Nov 30, 2017 at 13:17

1 Answer 1


The format of the HTTP SFDC API callback for inserting/upserting records is:


The ObjectName is the Name of an Salesforce table i.e. 'Contact' or 'Account'. And Id is the Id of a specific record you want to update in the table.

The possible cause of the error for that would be that you're calling SFDC API with the invalid data.

Please check if your REST URL is correct, probably your objectId is not passed through. E.g. If you have dependencies between the other objects, check if these were created in the first place, before creating your main object.


Not the answer you're looking for? Browse other questions tagged or ask your own question.