Customer restricted locations

In shared multi-entity companies, customers can be restricted to specific locations or location groups to prevent the customer from being used in the wrong entity. Create and maintain restricted locations from the owning customer object.

List customer restricted locations

get/objects/accounts-receivable/customer-restricted-location

Returns a collection with a key, ID, and link for each customer restricted location. This operation is mostly for use in testing; use the query service to find objects that meet certain criteria and to specify properties that are returned.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "44",
      • "id": "44",
      • "href": "/objects/accounts-receivable/customer-restricted-location/44"
      },
    • {
      • "key": "40",
      • "id": "40",
      • "href": "/objects/accounts-receivable/customer-restricted-location/40"
      },
    • {
      • "key": "41",
      • "id": "41",
      • "href": "/objects/accounts-receivable/customer-restricted-location/41"
      }
    ],
  • "ia::meta": {
    • "totalCount": 3,
    • "start": 1,
    • "pageSize": 100
    }
}

Get a customer restricted location

get/objects/accounts-receivable/customer-restricted-location/{key}

Returns detailed information for a specified customer restricted location.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the customer restricted location.

Example: 44
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "40",
    • "id": "40",
    • "location": {
      • "key": "3",
      • "id": "3",
      • "href": "/objects/company-config/location/3"
      },
    • "locationGroup": {
      • "key": null,
      • "id": null
      },
    • "customer": {
      • "key": "2",
      • "id": "LSM01",
      • "href": "/objects/accounts-receivable/customer/2"
      },
    • "href": "/objects/accounts-receivable/customer-restricted-location/40"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}