You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moneybird API needs to return 404 if a contact doesn’t exist upon checking, if 404 then create a contact for the consumer otherwise return an already existing contact for that consumer.
Current behavior
Moneybird API returns 404 when checking a contact via consumer ID but when we try to create a contact then it says it already exists.
This is happening for some of the consumers not all and due to this we are getting failed jobs, I have replicated this on my local with moneybird sandbox account.
Seems like something is wrong in the package's codebase, or maybe the moneybird APIs,
Anyone came across such a thing?
The text was updated successfully, but these errors were encountered:
If i run this code twice (via a command on the CLI) then the $contacts var will be an empty array in BOTH cases. Which is weird. I've tested this endpoint directly with cURL and there the contacts get request does return a contact.
EDIT: If I do the get request via cURL before the contact create and THEN do the get request again. Then I get an empty array. So I think Moneybird is caching responses when the request is the same/similar. I'm contacting Moneybird. I'll keep you posted.
Package version: ^0.15.0
Laravel/lumen version: 5.8
Expected behavior
Moneybird API needs to return 404 if a contact doesn’t exist upon checking, if 404 then create a contact for the consumer otherwise return an already existing contact for that consumer.
Current behavior
Moneybird API returns 404 when checking a contact via consumer ID but when we try to create a contact then it says it already exists.
Sample code
Note:
This is happening for some of the consumers not all and due to this we are getting failed jobs, I have replicated this on my local with moneybird sandbox account.
Seems like something is wrong in the package's codebase, or maybe the moneybird APIs,
Anyone came across such a thing?
The text was updated successfully, but these errors were encountered: