1
2
3
4
CustomerLocationAdd(
    array Location,
    int CustomerID
)

Add Location information for a Customer.

Request

Request Data:

  • (object) Location (required) – the location data to add
    • (string) Name (required) – name to identify the location.
  • (int) CustomerID (required) – identify the customer.
1
2
3
4
5
6
7
8
9
10
11
12
{
    "Location": {
        "IsPrimary": <int>,
        "Name": <string>,
        "Address": <string>,
        "City": <string>,
        "StateProvince": <string>,
        "Country": <string>,
        "ZipPostalCode": <string>
    },
    "CustomerID": <int>
}

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
    "Result": {
        "Location": {
            "IsPrimary": <bool>,
            "LocationID": <int>,
            "Name": <string>,
            "Address": <string>,
            "City": <string>,
            "StateProvince": <string>,
            "Country": <string>,
            "ZipPostalCode": <string>,
            "Fields": [ // Since RPM 29 (29.0.2405)
                {
                "Field": <string>,
                "Uid": <string>,
                "Format": <int>,
                "Value"""
                // ... More custom fields
            ]
        }
    }
}

Errors

  • “A location requires a name”
  • “Customer not found”
  • “Location with this name already exists for the customer”