TriPSs / Moneybird-API

Moneybird API client for PHP
MIT License
4 stars 1 forks source link

Object of class stdClass could not be converted to string #3

Closed Jaspur closed 5 years ago

Jaspur commented 5 years ago

Hi, since last update I'm getting this: unspecified

TriPSs commented 5 years ago

Hi, can you print_r || var_dump the object?

Jaspur commented 5 years ago

It occurs when creating a Contact with delivery_method inside it that you showed at #2

{#1418 ▼
  +"error": {#1415 ▼
    +"delivery_method": array:1 [▼
      0 => "is not a valid value"
    ]
  }
}
TriPSs commented 5 years ago

Hmm, looks like they changed the errors.

Can you show me the code that is causing this error for you?

Jaspur commented 5 years ago

https://github.com/TriPSs/Moneybird-API/issues/2#issuecomment-439847919 > happens when added delivery_method. works fine without.

TriPSs commented 5 years ago

@Jaspur still would like to solve this, the code that i pasted in the comment that did not work for you? It should also work with but they are very specific in the value, it is it is case-sensitive