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.
Returns a collection with a key, ID, and link for each customer restricted location. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "200",
- "id": "200",
- "href": "/objects/accounts-receivable/customer-restricted-location/200"
}, - {
- "key": "198",
- "id": "198",
- "href": "/objects/accounts-receivable/customer-restricted-location/198"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100
}
}
Returns detailed information for a specified customer restricted location.
key required | string System-assigned unique key for the customer restricted location. Example: 142 |
OK
Bad Request
{- "ia::result": {
- "key": "142",
- "objectType": "CUSTOMER",
- "id": "142",
- "location": {
- "key": "3",
- "id": "3",
- "href": "/objects/company-config/location/3"
}, - "locationGroup": {
- "key": null,
- "id": null
}, - "customer": {
- "key": "330",
- "id": "Nov7-02",
- "href": "/objects/accounts-receivable/customer/142"
}, - "href": "/objects/accounts-receivable/customer-restricted-location/142"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Use the query service to find customer restricted locations that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}