Customer Group not found.

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
User avatar
EARS
Posts: 29
Joined: Mon Oct 31, 2022 4:37 am
Location: Melbourne AU

Customer Group not found.

Post by EARS » Tue Mar 28, 2023 11:06 pm

Hi all,

For UAT, I'm testing the sending of a POST to create a new customer ("/api/v1.0/companies/0/customers/individuals/").
The JSON includes 'CustomerGroup', which is defined as an integer in the simPRO documentation for this end point.
The data source (ERP) supports alphanumeric customer groups, which is a different but related issue in itself.

I've created 2 test Customer Groups in simPRO (System Setup/Customer Groups) to try and resolve the returned
payload errors I'm getting in Postman.
Created -
1 - 20
2 - Testing Customer Group - 20

Returned payload errors -
{"errors":[{"path":"\/Profile\/CustomerProfile","message":"Customer profile not found.","value":68},{"path":"\/Profile\/CustomerGroup","message":"Customer group not found.","value":20},{"path":"\/Profile\/ServiceJobCostCenter","message":"Cost center not found.","value":1}]}

Can someone shed some light on this for me please ?
You'll notice I also have 2 other errors to resolve... same type of thing

Regards
EARS
Post Reply