Jump to content

Recommended Posts

Posted (edited)

Hi

I've tried a curl request to obtain a contact, after I've found it by searching with the following

$curl = curl_init('https://api.accounting.sage.com/v3.1/contacts?search=' . $CID);

As it've found the contact and have the $id and $path, when I now try to update the contact with:

$curl = curl_init('https://api.accounting.sage.com/v3.1'.$existing_contact);

Note - $existing_contact contains /contacts/{id}

This is built with the same code and creating a contact (which works), but I now get:

  "results" => array:1 [▼
    0 => array:4 [▼
      "$severity" => "error"
      "$dataCode" => "MethodNotAllowed"
      "$message" => "The requested HTTP method is not allowed on this path."
      "$source" => "Gateway"

Any ideas of what I've done wrong?

Regards

Carl.

Edited by Carl Ogden
incorrect spelling

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...