logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ksturm@easy-automation.com  
#1 Posted : Tuesday, September 2, 2025 8:59:23 PM(UTC)
ksturm@easy-automation.com

Rank: Member

Groups: Registered
Joined: 3/21/2024(UTC)
Posts: 15
United States

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
}
ksturm@easy-automation.com  
#2 Posted : Tuesday, September 9, 2025 4:00:02 PM(UTC)
ksturm@easy-automation.com

Rank: Member

Groups: Registered
Joined: 3/21/2024(UTC)
Posts: 15
United States

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.
ksturm@easy-automation.com  
#3 Posted : Wednesday, September 17, 2025 4:27:29 PM(UTC)
ksturm@easy-automation.com

Rank: Member

Groups: Registered
Joined: 3/21/2024(UTC)
Posts: 15
United States

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.
aarony  
#4 Posted : Thursday, September 18, 2025 12:52:19 PM(UTC)
aarony

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.
ksturm@easy-automation.com  
#5 Posted : Thursday, September 18, 2025 12:55:47 PM(UTC)
ksturm@easy-automation.com

Rank: Member

Groups: Registered
Joined: 3/21/2024(UTC)
Posts: 15
United States

Just to be clear, would that be the USPS values here?

https://en.wikipedia.org..._territory_abbreviations

And the Postal/ISO values from here?

https://en.wikipedia.org...rovinces_and_territories
aarony  
#6 Posted : Thursday, September 18, 2025 1:08:05 PM(UTC)
aarony

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.
Users browsing this topic
Guest (4)
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.