The Facilities API enables seamless integration with Optoro's platform to ensure that facility information is synchronized and up-to-date across all services in the Store Solution.
This endpoint allows for creating or updating a facility. If a facility with the provided identifier already exists, it will be updated with the new information provided in the payload. Otherwise, a new facility record is created.
Facility created or updated successfully.
Malformed request. Check structure of JSON payload.
Missing, expired, or invalid OAuth bearer token. Request a new token from the auth service.
Validation error. Fix request payload and try again.
Server error. Retry request using an exponential backoff.
{- "facility": {
- "group_identifier": "network_id",
- "identifier": "location_id",
- "name": "location_name",
- "address": {
- "name": "Facility ABC",
- "street": "123 Main St",
- "street2": "123 Main St",
- "city": "Anytown",
- "state": "CA",
- "zip": "12345",
- "country": "US"
}, - "details": { },
- "latitude": 32.94,
- "longitude": -97.13,
- "facility_type": "location_type"
}
}
{- "facility": {
- "group_identifier": "network_id",
- "identifier": "location_id",
- "name": "location_name",
- "address": {
- "name": "Facility ABC",
- "street": "123 Main St",
- "street2": "123 Main St",
- "city": "Anytown",
- "state": "CA",
- "zip": "12345",
- "country": "US"
}, - "details": { },
- "latitude": 32.94,
- "longitude": -97.13,
- "facility_type": "location_type",
- "created_at": "2024-08-08T18:05:44.128Z",
- "updated_at": "2024-08-08T18:05:44.128Z"
}
}