Rank: Member
Groups: Registered
Joined: 3/21/2024(UTC) Posts: 15 
|
When we POST/PUT a customer to CenterPoint REST API it succeeds, but the "state" value we send ends up looking different in the UI than what we send. When we send "Minnesota" we end up seeing "Mi" in the CPA customer list and "MI" if we edit the customer. What is the expected value to be sent in the customer's "state" property?
Is that the same expectation for the Vendor as well?
Request JSON body
{ "abbreviation": "4220", "firstName": "Jane", "lastName": "Doe", "active": true, "addressLine1": "", "addressLine2": "", "city": "Montgomery", "state": "Minnesota", "zip": "", "creditHold": false, "contact": "Jane Doe", "phone": "", "fax": "", "email": "", "templateId": 2147470000 }
|
|
|
|
Rank: Member
Groups: Registered
Joined: 3/21/2024(UTC) Posts: 15 
|
Just bumping this thread again to see if you can respond with the expected values for the "state" property on the Customer and Vendor entities.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 3/21/2024(UTC) Posts: 15 
|
Just bumping this thread again to see if you can respond with the expected values for the "state" property on the Customer and Vendor entities.
|
|
|
|
Rank: Administration
Groups: Administrators, Moderator, Registered Joined: 2/28/2018(UTC) Posts: 61 Location: Red Wing, MN
Was thanked: 7 time(s) in 6 post(s)
|
We would be expecting the State Code, so for Minnesota, that would be MN.
- Aaron.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 3/21/2024(UTC) Posts: 15 
|
|
|
|
|
Rank: Administration
Groups: Administrators, Moderator, Registered Joined: 2/28/2018(UTC) Posts: 61 Location: Red Wing, MN
Was thanked: 7 time(s) in 6 post(s)
|
Yes, the values in the USPS column would be correct. Currently, the API only supports US address types.
You could possibly create customers with foreign addresses by utilizing the TemplateId to identify a customer template that has a foreign address configured.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Red Wing Software Developer Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close