As we continue our development of SecurityTrax, updates and changes are required.

Check it out and let us know what you think.

New

State required to create a lead or customer
/customers

The state attribute is now required when creating a lead or customer. This attribute will also be required when updating existing leads and customers. Below is a list of values that will be accepted for the state attribute.

AL,
AK,
AZ,
AR,
CA,
CO,
CT,
DE,
DC,
FL,
GA,
HI,
ID,
IL,
IN,
IA,
KS,
KY,
LA,
ME,
MD,
MA,
MI,
MN,
MS,
MO,
MT,
NE,
NV,
NH,
NJ,
NM,
NY,
NC,
ND,
OH,
OK,
OR,
PA,
RI,
SC,
SD,
TN,
TX,
UT,
VT,
VA,
WA,
WV,
WI,
WY,
AS,
GU,
MH,
FM,
MP,
PW,
PR,
VI,
AB,
BC,
MB,
NB,
NL,
NS,
NT,
NU,
ON,
PE,
QC,
SK,
YT


For reference, here are some example JSON body’s with the required information needed to create a lead or customer.

LEAD
{
    "data": {
        "attributes": {
            "fname": "John",
            "lname": "Doe",
            "primary_phone": "1111111111",
            "city": "Provo",
            "state": "UT",
            "record_type": "lead"
        },
        "relationships": {
            "lead_company": {
                "data": {
                    "type": "lead_companies",
                    "id": "1"
                }
            }
        },
        "type": "customers"
    }
}
  CUSTOMER
{
    "data": {
        "attributes": {
            "fname": "John",
            "lname": "Doe",
            "primary_phone": "1111111111",
            "city": "Provo",
	    "state": "UT",
            "sale_date": "2020-01-01",
            "record_type": "customer"
        },
        "relationships": {
            "location": {
                "data": {
                    "type": "locations",
                    "id": "1"
                }
            }
        },
        "type": "customers"
    }
}