sageone_api_php_sample icon indicating copy to clipboard operation
sageone_api_php_sample copied to clipboard

Creating contact API docs have no reference to contact_type_form_proxy_id

Open Caffe1neAdd1ct opened this issue 10 years ago • 6 comments

Hi,

Started integrating our application and found the following error on posting a new contact to the en/v1 api:

object(stdClass)#207 (1) {
  ["$diagnoses"]=>
  array(2) {
    [0]=>
    object(stdClass)#205 (4) {
      ["$severity"]=>
      string(5) "error"
      ["$dataCode"]=>
      string(15) "ValidationError"
      ["$message"]=>
      string(40) "Must specify either customer or supplier"
      ["$source"]=>
      string(4) "base"
    }
    [1]=>
    object(stdClass)#196 (4) {
      ["$severity"]=>
      string(5) "error"
      ["$dataCode"]=>
      string(15) "ValidationError"
      ["$message"]=>
      string(23) "This field is required."
      ["$source"]=>
      string(26) "contact_type_form_proxy_id"
    }
  }
}

Any help would be very much appreciated.

Caffe1neAdd1ct avatar Jul 04 '16 14:07 Caffe1neAdd1ct

Please ignore this one! Issue was found between seat and keyboard :+1:

Caffe1neAdd1ct avatar Jul 04 '16 14:07 Caffe1neAdd1ct

I know this is almost 5 years old but we are having the same issue... do you happen to remember what was happening on your end @Caffe1neAdd1ct ?

LucasRodriguez0302 avatar Jan 26 '21 03:01 LucasRodriguez0302

Hi Lucas, can you give more details please? This issue describes a request to the v1 API, which has been turned off last year. The current API version is documented here: https://developer.sage.com/accounting/

cpetschnig avatar Jan 26 '21 15:01 cpetschnig

Hi @cpetschnig. Yes, we are using the latest version and we are getting the exact same error, tho we can't find any documentation related to contact_type_form_proxy_id

LucasRodriguez0302 avatar Jan 26 '21 17:01 LucasRodriguez0302

Can you please give me a sample of your payload? contact_type_form_proxy_id is an internal attribute that unfortunately once surfaced in the API but now shouldn't anymore.

This is an example for the smallest possible payload to create a contact:

{
  "contact": {
    "name": "Harriet Tubman",
    "contact_type_ids": [
      "CUSTOMER"
    ]
  }
}

cpetschnig avatar Jan 27 '21 15:01 cpetschnig

We have captured the error with one of our customer's account but we didn't capture the payload, so we are trying to understand or pinpoint what could've triggered it... We will try to capture the payload in case it happens again

LucasRodriguez0302 avatar Jan 27 '21 21:01 LucasRodriguez0302