Supplier creating multiple times in Simpro

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
avinash.walkerscott
Posts: 9
Joined: Tue Mar 26, 2024 8:49 pm
Location: New Zealand

Supplier creating multiple times in Simpro

Post by avinash.walkerscott » Wed May 01, 2024 10:30 pm

Hi team.
We are doing a supplier integration with Simpro. We observed that, when some data is not matching (for example, the Payment terms ID mismatch), the api send an error message. But when I check Simpro, the supplier will be already created.

The problem is when the error occurs, I won't receive the supplier id (unique key) from Simpro. Due to this when I correct the data and send again, it is creating a new supplier.

Is there any way to control this?
Thanks,
Cheers
Avinash
SimproAPITeam
Posts: 17
Joined: Wed May 01, 2024 2:31 am

Re: Supplier creating multiple times in Simpro

Post by SimproAPITeam » Thu May 02, 2024 12:32 am

Hi Avinash,
I've tried to recreate this but have been unsuccessful.

When posting a new vendor/supplier with an invalid PaymentTerm ID we return a 422 Error with the message "Payment Term ID is invalid.".

I could not see that the vendor was created when this error is returned.

If it behaves differently for you can you please provide some more information such as the POST data so we can try to recreate this.

You can also send a private message with your build details and the ID's of the vendors that has been created so we can investigate.

Regards
Simpro API Team | Simpro Software Group
Post Reply