{"openapi":"3.0.0","info":{"title":"AEx ISP API","description":"API to interact with the various FNO endpoints.","contact":{"name":"Alfred Brandon"},"version":"0.1.3"},"servers":[{"url":"https://fno.national-za.aex.systems","description":"South African Production Server"},{"url":"https://fno.national-us.aex.systems","description":"United States Production Server"},{"url":"https://preprod.fno.dev.aex.systems/","description":"Preprod Server"},{"url":"https://stage.fno.dev.aex.systems","description":"Staging Server"}],"security":[{"ApiKeyAuth":["read","write"]}],"paths":{"/accounts":{"get":{"summary":"Get a list of all Accounts [DEPRECATED].","tags":["Accounts"],"description":"Get a list of all Accounts. This endpoint is deprecated. Rather use `GET /services`.","operationId":"getAccounts","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfAccounts"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"summary":"Create a new Account [DEPRECATED].","tags":["Accounts"],"description":"This endpoint is deprecated. Rather use `POST /services`.","operationId":"createAccount","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/Account"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/accounts/{accountId}":{"get":{"summary":"Get a single Account [DEPRECATED].","tags":["Accounts"],"description":"Get a single Account by id.  This endpoint is deprecated. Rather use `GET /services/{serviceId}`.","operationId":"getAccount","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"summary":"Update a single Account [DEPRECATED].","tags":["Accounts"],"description":"Update a single Account by id. This endpoint is deprecated. Rather use `PUT /services/{serviceId}`.","operationId":"updateAccount","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/Account"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"summary":"Delete a single Account [DEPRECATED].","tags":["Accounts"],"description":"Delete a single Account by id. Rather use `DELETE /services/{serviceId}`.","operationId":"deleteAccount","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/areas":{"get":{"summary":"Returns all Areas","tags":["Areas"],"description":"Returns all Areas.","operationId":"getAreas","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"has_units","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter areas that have (or don't have) Units."},{"name":"approved","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter areas that are (or are not) Approved."},{"name":"active","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter areas that are (or are not) Acive\nAreas with status _Cancelled_ or _Suspended_ are not active.\n"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/areas/full":{"get":{"summary":"Returns all Areas, with details.","tags":["Areas"],"description":"Returns all Areas with details.","operationId":"getAreasFull","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"has_units","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter areas that have (or don't have) Units."},{"name":"approved","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter areas that are (or are not) Approved."},{"name":"active","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter areas that are (or are not) Acive\nAreas with status _Cancelled_ or _Suspended_ are not active.\n"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullAreaList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/areas/{areaId}":{"get":{"tags":["Areas"],"summary":"Retrieve the properties and status of the specified Area.","description":"Retrieve the properties and status of the specified Area.","operationId":"getArea","parameters":[{"name":"areaId","in":"path","schema":{"type":"string","format":"uuid","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Area"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/areas/{latitude}/{longitude}":{"get":{"tags":["Areas"],"summary":"Retrieve the properties and status of the specified Area located at the provided coordinates.","description":"Retrieve the properties and status of the specified Area located at the provided coordinates.","operationId":"getAreaByCoordinates","parameters":[{"name":"latitude","in":"path","schema":{"type":"number"},"required":true,"description":"The latitude of the location.","example":-26.087325},{"name":"longitude","in":"path","schema":{"type":"number"},"required":true,"description":"The longitude of the location.","example":28.010184}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Area"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/client-premises":{"get":{"summary":"Get a list of all Client Premises.","tags":["Client Premises"],"description":"Get a list of all Client Premises.","operationId":"getClientPremises","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page"},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display"},{"name":"deleted","in":"query","schema":{"type":"boolean"},"required":false,"description":"Return only records that are deleted true or live records false"},{"name":"include_predefined_premise","in":"query","schema":{"type":"boolean"},"required":false,"description":"Return only records the records for client premises or include the predefined premises"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfClientPremises"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Client Premises"],"summary":"Create a new Client Premises.","operationId":"createClientPremises","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_premise":{"$ref":"#/components/schemas/ClientPremises"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/client-premises/{clientPremiseId}":{"get":{"tags":["Client Premises"],"summary":"Get a single Client Premises.","description":"Get a single Client Premises by id.","operationId":"getClientPremiseById","parameters":[{"name":"clientPremiseId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"predefined_premise_id","in":"query","schema":{"type":"integer"},"required":false,"description":"Predefined Premises Identifier Associated with Client Premises."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPremises"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Client Premises"],"summary":"Update a single Client Premises.","description":"Update a single Client Premises by id.","operationId":"updateClientPremises","parameters":[{"name":"clientPremiseId","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/ClientPremises"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPremises"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Client Premises"],"summary":"Delete a single Client Premises.","operationId":"deleteClientPremises","parameters":[{"name":"clientPremiseId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/customers":{"get":{"summary":"Get a list of all Customers.","tags":["Customers"],"description":"Get a list of all Customers.","operationId":"getCustomers","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"q","in":"query","schema":{"type":"string"},"required":false,"description":"Search the endpoint using the specified term. The following fields will be checked for the term: first_name last_name email mobile_number identity_number","example":"john wick"},{"name":"created_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created before the specified date.","example":"2020-01-23 12:34:54"},{"name":"created_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created after the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated before the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated after the specified date.","example":"2020-01-23 12:34:54"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfCustomers"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Customers"],"summary":"Create a new Customer.","operationId":"createCustomer","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/customers/{customerId}":{"get":{"tags":["Customers"],"summary":"Get a single Customer.","description":"Get a single Customer by id.","operationId":"getCustomer","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Customers"],"summary":"Update a single Customer.","description":"Update a single Customer by id.","operationId":"updateCustomer","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Customers"],"summary":"Delete a single Customer.","operationId":"deleteCustomer","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/customers/{customerId}/premises":{"get":{"tags":["Customers"],"summary":"Get premises for a customer.","description":"Get a list of premises for a single Customer by id.","operationId":"getCustomerPremises","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","allOf":[{"$ref":"#/components/schemas/Customer"}],"properties":{"premises":{"$ref":"#/components/schemas/ArrayOfPremises"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/customers/{customerId}/services":{"get":{"tags":["Customers"],"summary":"Get all the services attached to the specified customerId.","description":"Get all the services attached to the specified customerId.","operationId":"getCustomerServices","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"total":{"type":"integer","example":42}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/premises":{"get":{"summary":"Get a list of all Premises.","tags":["Premises"],"description":"Get a list of all Premises.","operationId":"getPremises","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"q","in":"query","schema":{"type":"string"},"required":false,"description":"Search the endpoint using the specified term. The following fields will be checked for the term: name mdu_name street_name suburb city province external_reference asset_reference","example":"17 Kent Avenue"},{"name":"asset_reference","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified asset_reference."},{"name":"external_reference","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified external_reference."},{"name":"area","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified area."},{"name":"customer","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified customer."},{"name":"mdu_name","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified mdu_name."},{"name":"suburb","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified suburb."},{"name":"city","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified city."},{"name":"postal_code","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified postal_code."},{"name":"province","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified province."},{"name":"country_code","in":"query","schema":{"type":"string"},"required":false,"description":"Return only records which exactly matches the specified country_code."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created before the specified date.","example":"2020-01-23 12:34:54"},{"name":"created_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created after the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated before the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated after the specified date.","example":"2020-01-23 12:34:54"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfPremises"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Premises"],"summary":"Create a new Premise.","description":"Creates a new premise using the specified information.\nA 400 response will be returned in the following cases:\n- Not all required fields have been populated.\n- A unique combination of customer_id and name hasn't been specified.\n- Any validation checks on user-supplied data fail.\nIf an FNO is using internal Predefined Premises, and the passed external reference does not relate to any defined predefined premise's GUID field, a 400 response will be returned with a description of the error.\nA 409 response will be returned in the following cases:\n- The external reference provided conflicts with one already in the system.\n  See the documentation on the external_reference field for a further explanation.\n\nNote: A 409 / Conflict supersedes any 400 errors, as it constitutes an identifier conflict.\n","operationId":"createPremise","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"premise":{"$ref":"#/components/schemas/Premise"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/premises/{premiseId}":{"get":{"tags":["Premises"],"summary":"Get a single Premise.","description":"Get a single Premise by id or asset_reference.","operationId":"getPremise","parameters":[{"name":"premiseId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique premise UUID or FSAN / Asset Reference."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Premise"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Premises"],"summary":"Update a single Premise.","description":"Update a single Premise by id or asset_reference.","operationId":"updatePremise","parameters":[{"name":"premiseId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique premise UUID or FSAN / Asset Reference."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"premise":{"$ref":"#/components/schemas/Premise"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Premise"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Premises"],"summary":"Delete a single Premise or asset_reference.","operationId":"deletePremise","parameters":[{"name":"premiseId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique premise UUID or FSAN / Asset Reference."}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/premises/{premiseId}/services":{"get":{"tags":["Premises"],"summary":"Get the services for a single Premise.","description":"Get the services single Premise by id or asset_reference.","operationId":"getPremiseServices","parameters":[{"name":"premiseId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique premise UUID or FSAN / Asset Reference."},{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"q","in":"query","schema":{"type":"string"},"required":false,"description":"Search the endpoint using the specified term. The following fields will be checked for the term: isp_reference promo_code asset_reference","example":"ISP-123456789"},{"name":"created_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created before the specified date.","example":"2020-01-23 12:34:54"},{"name":"created_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created after the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated before the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated after the specified date.","example":"2020-01-23 12:34:54"},{"name":"provider","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified provider GUID."},{"name":"product","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified product GUID."},{"name":"premise","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified premise GUID."},{"name":"line_type","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified line_type."},{"name":"status","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified status GUID."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfServices"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/predefined-premises":{"get":{"summary":"Get a list of all Predefined Premises.","tags":["PredefinedPremises"],"description":"Get a list of all Predefined Premises.","operationId":"getPredefinedPremises","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"q","in":"query","schema":{"type":"string"},"required":false,"description":"Search the endpoint using the specified term. The following fields will be checked for the term: full_text","example":"17 Kent Avenue"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfPredefinedPremises"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/predefined-premises/{predefinedPremiseId}/premise":{"post":{"tags":["PredefinedPremises"],"summary":"Create a new Premise from Predefined Premise for FNOs with internal Predefined Premises.","description":"Create a new premise using the specified predefined premise for FNO's with internal predefined premises.\n","operationId":"createPremiseFromPredefined","parameters":[{"name":"predefinedPremiseId","in":"path","required":true,"schema":{"type":"string"},"description":"The unique predefined premise guid or the predefined premise id."}],"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/products":{"get":{"summary":"Get a list of all Products.","tags":["Products"],"description":"Get a list of all Products.","operationId":"getProducts","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"q","in":"query","schema":{"type":"string"},"required":false,"description":"Search the endpoint using the specified term. The following fields will be checked for the term: name","example":"FTTH-100-10"},{"name":"provider","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified provider."},{"name":"parent","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified parent."},{"name":"ancestor","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified ancestor (parent, grand parent, etc.)."},{"name":"line_type","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified line type."},{"name":"type","in":"query","schema":{"type":"integer","enum":[1,2,3]},"required":false,"description":"Filter the list by the specified type.\n\n* 1 for Backhaul products\n* 2 for Network products\n* 3 for ISP products\n"},{"name":"status","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified status."},{"name":"visible_to_user","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the user."},{"name":"visible_to_admin","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to an administrator."},{"name":"visible_to_sp","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the service provider."},{"name":"min_contract","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified minimum contract term."},{"name":"speed_up","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified upload speed."},{"name":"speed_down","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified download speed."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created before the specified date.","example":"2020-01-23 12:34:54"},{"name":"created_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created after the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated before the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated after the specified date.","example":"2020-01-23 12:34:54"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Products"],"summary":"Create a new Product.","operationId":"createProduct","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/products/{productId}":{"get":{"tags":["Products"],"summary":"Get a single Product.","description":"Get a single Product by id.","operationId":"getProduct","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Products"],"summary":"Update a single Product.","description":"Update a single Product by id.","operationId":"updateProduct","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Products"],"summary":"Delete a single Product.","operationId":"deleteProduct","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/products/{productId}/availability":{"get":{"summary":"Get a list of Areas in which the specified product is available.","tags":["Products"],"description":"Get a list of Areas in which the specified product is available. All the filters available in the `GET /products` call is also available here.\n","operationId":"getAreasForProducts","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"provider","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified provider."},{"name":"parent","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified parent."},{"name":"ancestor","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified ancestor (parent, grand parent, etc.)."},{"name":"line_type","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified line type."},{"name":"type","in":"query","schema":{"type":"integer","enum":[1,2,3]},"required":false,"description":"Filter the list by the specified type.\n\n* 1 for Backhaul products\n* 2 for Network products\n* 3 for ISP products\n"},{"name":"status","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified status."},{"name":"visible_to_user","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the user."},{"name":"visible_to_admin","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to an administrator."},{"name":"visible_to_sp","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the service provider."},{"name":"min_contract","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified minimum contract term."},{"name":"speed_up","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified upload speed."},{"name":"speed_down","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified download speed."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaListWithProduct"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/products/availability/{latitude}/{longitude}":{"get":{"summary":"Get a list of Products available at the specified location.","tags":["Products"],"description":"Get a list of Products available at the specified location. All the filters available in the `GET /products` call is also available here.\n","operationId":"getProductsForLocation","parameters":[{"name":"latitude","in":"path","schema":{"type":"number"},"required":true,"description":"The latitude of the location.","example":-26.087325},{"name":"longitude","in":"path","schema":{"type":"number"},"required":true,"description":"The longitude of the location.","example":28.010184},{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"provider","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified provider."},{"name":"parent","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified parent."},{"name":"ancestor","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified ancestor (parent, grand parent, etc.)."},{"name":"line_type","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified line type."},{"name":"type","in":"query","schema":{"type":"integer","enum":[1,2,3]},"required":false,"description":"Filter the list by the specified type.\n\n* 1 for Backhaul products\n* 2 for Network products\n* 3 for ISP products\n"},{"name":"status","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified status."},{"name":"visible_to_user","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the user."},{"name":"visible_to_admin","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to an administrator."},{"name":"visible_to_sp","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the service provider."},{"name":"min_contract","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified minimum contract term."},{"name":"speed_up","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified upload speed."},{"name":"speed_down","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified download speed."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListWithArea"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/products/availability/{placename}":{"get":{"summary":"Get a list of Products available at the specified place name.","tags":["Products"],"description":"Get a list of Products available at the specified place name. All the filters available in the `GET /products` call is also available here.\n","operationId":"getProductsForPlacename","parameters":[{"name":"placename","in":"path","schema":{"type":"string"},"required":true,"description":"The place name. Can be that of a Province, City or Suburb.","example":-26.087325},{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"provider","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified provider."},{"name":"parent","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified parent."},{"name":"ancestor","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified ancestor (parent, grand parent, etc.)."},{"name":"line_type","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified line type."},{"name":"type","in":"query","schema":{"type":"integer","enum":[1,2,3]},"required":false,"description":"Filter the list by the specified type.\n\n* 1 for Backhaul products\n* 2 for Network products\n* 3 for ISP products\n"},{"name":"status","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified status."},{"name":"visible_to_user","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the user."},{"name":"visible_to_admin","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to an administrator."},{"name":"visible_to_sp","in":"query","schema":{"type":"boolean"},"required":false,"description":"Show only products that are visible or not visible to the service provider."},{"name":"min_contract","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified minimum contract term."},{"name":"speed_up","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified upload speed."},{"name":"speed_down","in":"query","schema":{"type":"integer"},"required":false,"description":"Show only products that have the specified download speed."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListWithPlacename"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/installers":{"get":{"summary":"Get a list of all Installers.","tags":["Installers"],"description":"Get a list of all Installers.","operationId":"getInstallers","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"active","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter on the active field."},{"name":"enabled","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter on the enabled field."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallerList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Installers"],"summary":"Create a new Installer.","description":"Create a new Installer using the specified information.\nA 400 response will be returned in the following cases:\n* All of the required fields have not been populated.\n* Any validation checks on user supplied data fails.\n","operationId":"createInstaller","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Installer"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/installers/{installerId}":{"get":{"summary":"Get a single Installer.","tags":["Installers"],"description":"Get a single Installers by id.","operationId":"getInstaller","parameters":[{"name":"installerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Installer"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Installers"],"summary":"Update a single Installer.","description":"Update a single Installer by id.","operationId":"updateServiceInstaller","parameters":[{"name":"installerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"Installer":{"$ref":"#/components/schemas/Installer"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Installer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Installers"],"summary":"Delete a single Installer.","operationId":"deleteInstaller","parameters":[{"name":"installerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/providers":{"get":{"summary":"Get a list of all Service Providers.","tags":["Providers"],"description":"Get a list of all Service Providers.","operationId":"getSeviceProviders","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"q","in":"query","schema":{"type":"string"},"required":false,"description":"Search the endpoint using the specified term. The following fields will be checked for the term: name registration_number website email","example":"Web"},{"name":"active","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter on the active field."},{"name":"enabled","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter on the enabled field."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created before the specified date.","example":"2020-01-23 12:34:54"},{"name":"created_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created after the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated before the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated after the specified date.","example":"2020-01-23 12:34:54"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Providers"],"summary":"Create a new Service Provider.","description":"Create a new service provider using the specified information.\nA 400 response will be returned in the following cases:\n* All of the required fields have not been populated.\n* Any validation checks on user supplied data fails.\n","operationId":"createProvider","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Provider"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/providers/{providerId}":{"get":{"summary":"Get a single Service Provider","tags":["Providers"],"description":"Get a single Service Providers by id.","operationId":"getSeviceProvider","parameters":[{"name":"providerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Providers"],"summary":"Update a single Service Provider.","description":"Update a single Service Provider by id.","operationId":"updateServiceProvider","parameters":[{"name":"providerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"Provider":{"$ref":"#/components/schemas/Provider"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Providers"],"summary":"Delete a single Provider.","operationId":"deleteProvider","parameters":[{"name":"providerId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services":{"get":{"summary":"Get a list of all Services.","tags":["Services"],"description":"Get a list of all Services.","operationId":"getServices","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display"},{"name":"q","in":"query","schema":{"type":"string"},"required":false,"description":"Search the endpoint using the specified term. The following fields will be checked for the term: isp_reference promo_code asset_reference","example":"ISP-123456789"},{"name":"created_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created before the specified date.","example":"2020-01-23 12:34:54"},{"name":"created_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created after the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated before the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated after the specified date.","example":"2020-01-23 12:34:54"},{"name":"provider","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified provider GUID."},{"name":"product","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified product GUID."},{"name":"premise","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter the list by the specified premise GUID."},{"name":"line_type","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified line_type."},{"name":"status","in":"query","schema":{"type":"string"},"required":false,"description":"Filter the list by the specified status GUID."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfServices"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"summary":"Create a new Service.","tags":["Services"],"description":"Create a single Service. By default an Installation work order will be created unless the `preorder` flag or the `bypass_wo_creation` flag is set to true. Specify the work_order.type_id if you require another type of work order to be created.","operationId":"createService","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service":{"$ref":"#/components/schemas/Service"},"work_order":{"$ref":"#/components/schemas/WorkOrderRequest"},"bypass_wo_creation":{"type":"boolean","default":false}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/full":{"post":{"summary":"Create a new Service for the specified Customer and Premise.","tags":["Services"],"description":"Create a single Customer, Premise and Service. By default an Installation work order will be created unless the `preorder` flag or the `bypass_wo_creation` flag is set to true. Specify the work_order.type_id if you require another type of work order to be created.\nPlease note Payments have been [DEPRECATED] please view the payment documentation.\n","operationId":"createFullService","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer"},"premise":{"$ref":"#/components/schemas/Premise"},"payment":{"$ref":"#/components/schemas/ServicePayment"},"service":{"$ref":"#/components/schemas/Service"},"work_order":{"$ref":"#/components/schemas/WorkOrderRequest"},"bypass_wo_creation":{"type":"boolean","default":false},"move_asset":{"type":"boolean","default":false,"description":"If set to true, the specified asset reference will be moved to the premise associated with the created service. This can be used to ensure that an asset is only associated with a single service. This should be used only used if proper checks are done on the client side that the specified asset is indeed associated with the premise being created / updated.\n"}}}}}},"responses":{"201":{"$ref":"#/components/responses/FullServiceCreated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}":{"get":{"summary":"Get a single Service.","tags":["Services"],"description":"Get a single Service by id.","operationId":"getService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"summary":"Update a single Service.","tags":["Services"],"description":"Update a single Service by id.","operationId":"updateService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service":{"$ref":"#/components/schemas/Service"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"summary":"Terminate a single Service.","tags":["Services"],"description":"This call will terminate the specified service. The service will be either terminated immediately, if it's not active yet, or the termination process will be kicked off through a Work Order if it is active.\nAll open work orders for the service will also be rejected.\nUsing this method to terminate a service is better than creating a cancellation work order since it abstracts away all the other considerations needed for a termination.\n","operationId":"deleteService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully terminated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/full":{"get":{"summary":"Retrieve the full Service information for the specified Service.","tags":["Services"],"operationId":"getFullService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["code","full_service"],"additionalProperties":false,"properties":{"full_service":{"type":"object","required":["customer","premise","service","isp_product","network_product","backhaul_product","last_updated"],"properties":{"customer":{"$ref":"#/components/schemas/Customer"},"premise":{"$ref":"#/components/schemas/Premise"},"service":{"$ref":"#/components/schemas/Service"},"isp_product":{"$ref":"#/components/schemas/Product"},"network_product":{"$ref":"#/components/schemas/Product"},"backhaul_product":{"$ref":"#/components/schemas/Product"},"last_updated":{"type":"string","format":"date-time"}}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/payments":{"post":{"summary":"Request a payment URL for the specified Service [DEPRECATED].","tags":["Services"],"description":"Request a payment URL for the specified Service.","operationId":"paymentForService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payment":{"$ref":"#/components/schemas/ServicePayment"}}}}}},"responses":{"201":{"description":"Resource Created","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the created resource."},"X-Resource-ID":{"schema":{"type":"string","format":"uuid"},"description":"The unique id of the created payment."},"X-Easy-Pay-Number":{"schema":{"type":"string"},"description":"The EasyPay number that can be used to make the payment."}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/work-order-types":{"get":{"summary":"Fetch the work order types available for the specified service.","tags":["Services"],"description":"Fetch the work order types available for the specified service.","operationId":"workOrderTypesForService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"$ref":"#/components/responses/ServiceWorkOrderTypesResponse"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/vouchers/check":{"post":{"summary":"Check if a service is eligible for more vouchers.","tags":["Services"],"description":"Check if a service is eligible for more vouchers.","operationId":"voucherCheckForService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"$ref":"#/components/responses/VoucherCheckResponse"},"400":{"$ref":"#/components/responses/VoucherCheckResponse"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/VoucherCheckResponse"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/payments/retry":{"post":{"summary":"Run the RetryPayment call for a specific service where the payment has failed [DEPRECATED].","tags":["Services"],"description":"Run the RetryPayment call for a specific service where the payment has failed.","operationId":"RetryPayment","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"201":{"description":"Resource Created"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/re-allocate-ip":{"post":{"summary":"Allocate a new IP address to this service.","tags":["Services"],"description":"Removes the current IP address.\nRe-provisions the service on Radius, to re-allocate an IP.\n","operationId":"ReallocateIPForService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"201":{"description":"Resource Created"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/activate":{"post":{"summary":"Immediately activates a service.","tags":["Services"],"description":"Immediately activates a service through RADIUS.\n* Only applicaple for RADIUS hosted by AEx.\n* The service must be in a state where it can ordinarily be acive.\n","operationId":"ActivateService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/services/{serviceId}/suspend":{"post":{"summary":"Immediately suspends a service.","tags":["Services"],"description":"Immediately suspends a service through RADIUS.\nOnly applicaple for RADIUS hosted by AEx.\n","operationId":"SuspendService","parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/service-changes":{"get":{"summary":"Returns all Service Changes.","tags":["ServiceChanges"],"description":"Returns all Service Changes.","operationId":"getServiceChanges","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created before the specified date.","example":"2020-01-23 12:34:54"},{"name":"created_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records created after the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_before","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated before the specified date.","example":"2020-01-23 12:34:54"},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date"},"required":false,"description":"Return only records updated after the specified date.","example":"2020-01-23 12:34:54"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfServiceChanges"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["ServiceChanges"],"summary":"Request a service change on the specified Account.","operationId":"createServiceChange","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_change":{"$ref":"#/components/schemas/ServiceChangeRequest"},"modified_by":{"type":"string","format":"uuid","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"}},"required":["service_change"]}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/service-changes/{serviceChangeId}":{"get":{"tags":["ServiceChanges"],"summary":"Retrieve the properties and status of the specified Service Change.","description":"Retrieve the properties and status of the specified Service Change.","operationId":"getServiceChange","parameters":[{"name":"serviceChangeId","in":"path","schema":{"type":"string","format":"uuid","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceChange"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/service-price-overrides":{"get":{"summary":"Get a paginated list of all service price overrides","tags":["Service Price Overrides"],"description":"Get a paginated list of all service price overrides","operationId":"getServicePriceOverrides","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfServicePriceOverrides"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"summary":"Creates a service price override","tags":["Service Price Overrides"],"description":"Create a service price override","operationId":"createServicePriceOverrides","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_price_override":{"$ref":"#/components/schemas/ServicePriceOverride"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Service Price Overrides"],"summary":"Update a single Service Price Override.","description":"Update a single Service Price Override by id.","operationId":"updateServicePriceOverride","parameters":[{"name":"servicePriceOverrideId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service-price-override":{"$ref":"#/components/schemas/ServicePriceOverride"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicePriceOverride"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Service Price Overrides"],"summary":"Delete a single Service Price Override.","operationId":"deleteServicePriceOverride","parameters":[{"name":"servicePriceOverrideId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/work-orders":{"get":{"summary":"Get a list of all Work Orders.","tags":["Work Orders"],"description":"Get a list of all Work Orders.","operationId":"getWorkOrders","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"service","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Filter work orders for the specified service."},{"name":"type","in":"query","schema":{"type":"integer"},"required":false,"description":"Filter work orders for the specified type."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfWorkOrders"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Work Orders"],"summary":"Create a new Work Order.","operationId":"createWorkOrder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work-order":{"$ref":"#/components/schemas/WorkOrder"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/work-orders/{workOrderId}":{"get":{"tags":["Work Orders"],"summary":"Get a single Work Order.","description":"Get a single Work Order by id.","operationId":"getWorkOrder","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrder"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Work Orders"],"summary":"Update a single Work Order.","description":"Update a single Work Order by id.","operationId":"updateWorkOrder","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work-order":{"$ref":"#/components/schemas/WorkOrder"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrder"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Work Orders"],"summary":"Delete a single Work Order.","operationId":"deleteWork Order","parameters":[{"name":"workOrderId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/types":{"get":{"summary":"Get a list of all the Work Order Types.","tags":["Work Order Types"],"description":"Get a list of all the Work Order Types.","operationId":"getWorkOrderTypes","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"enabled","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter on the enabled field."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfWorkOrderTypes"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/types/{typeId}":{"get":{"tags":["Work Order Types"],"summary":"Get a single Work Order Type.","description":"Get a single Work Order Type by type_id.","operationId":"getWorkOrderType","parameters":[{"name":"typeId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderType"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/statuses":{"get":{"summary":"Get a list of all the Work Order Statuses.","tags":["Work Order Statuses"],"description":"Get a list of all the Work Order Types Statuses.","operationId":"getWorkOrderStatuses","parameters":[{"name":"type","in":"query","schema":{"type":"integer"},"required":false,"description":"All the statuses for a work order type ID."},{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"enabled","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter on the enabled field."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfWorkOrderStatuses"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/statuses/{statusId}":{"get":{"tags":["Work Order Statuses"],"summary":"Get a single Work Order Type.","description":"Get a single Work Order Type by type_id.","operationId":"getWorkOrderStatus","parameters":[{"name":"statusId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderStatus"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/status-transitions":{"get":{"summary":"Get a list of all the Work Order Statuses.","tags":["Work Order Statuses"],"description":"Get a list of all the Work Order Types Statuses.","operationId":"getWorkOrderStatusTransition","parameters":[{"name":"type","in":"query","schema":{"type":"integer"},"required":false,"description":"All the statuses for a work order type ID."},{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."},{"name":"enabled","in":"query","schema":{"type":"boolean"},"required":false,"description":"Filter on the enabled field."},{"name":"source","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Get all transitions for work order status."},{"name":"destination","in":"query","schema":{"type":"string","format":"uuid"},"required":false,"description":"Get all transitions to work order status."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfWorkOrderStatusTransition"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/devices/{serial_number}/check":{"get":{"tags":["Devices"],"summary":"Checks the Serial number of the devices for validity [DEPRECATED].","description":"Checks the Serial number of the devices for validity. This has been deprecated in favour of `POST /{serial_number}/check`.","operationId":"checkSerialNumberGET","parameters":[{"name":"serial_number","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SerialNumberCheckGETResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Devices"],"summary":"Check the status of the specified device.","description":"Check the status of the specified device.","operationId":"checkSerialNumber","parameters":[{"name":"serial_number","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCheckResponse"}}}},"400":{"description":"Invalid Input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCheckResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"The specified resource could not be found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCheckResponse"}}}},"409":{"description":"Conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCheckResponse"}}}},"500":{"$ref":"#/components/responses/ServerError"}}}},"/devices/{serial_number}/premises":{"get":{"tags":["Devices"],"summary":"Returns the premises connected to a specific serial number.","description":"Returns the premises connected to a specific serial number.","operationId":"serialNumberPremise","parameters":[{"name":"serial_number","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Premise"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/network/status/{serialNumber}/status":{"get":{"tags":["OperationalStatus"],"summary":"Returns operational status of a device.","description":"Returns operational status of a device.","operationId":"getDeviceStatus","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationalStatus"}}}},"400":{"description":"Invalid Input"},"404":{"description":"Not Found"},"500":{"description":"Server Error"}}}},"/network/status/{serialNumber}/history":{"get":{"summary":"Returns network status history based on serial number.","tags":["OperationalStatus"],"description":"Returns network status history list based on serial number.","operationId":"getNetworkStatusHistoryPerSerial","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/OperationalStatus"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/network/status/{serialNumber}/service":{"get":{"tags":["ServiceStatus"],"summary":"Returns service status information of a device.","description":"Returns service status information of a device.","operationId":"getDeviceService","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceStatus"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/service/{portNumber}":{"get":{"tags":["ServiceStatus"],"summary":"Returns service status information of a device for a specific port.","description":"Returns service status information of a device for a specific port.","operationId":"getDeviceServicePerPort","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"portNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceStatus"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/full/service/status/{portNumber}":{"get":{"tags":["FullServiceStatus"],"summary":"Returns service status and service configuration information of a device for a specific port.","description":"Returns service status and service configuration information of a device for a specific port.","operationId":"getDeviceFullServiceStatusPerPort","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"portNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"refresh","in":"query","schema":{"type":"boolean"},"required":false,"description":"Determines if a full refresh should be done."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullServiceStatus"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/full-service/{portNumber}":{"get":{"tags":["FullService"],"summary":"Returns service information of a device for a specific port.","description":"Returns service information of a device for a specific port.","operationId":"getDeviceFullServicePerPort","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"portNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"refresh","in":"query","schema":{"type":"boolean"},"required":false,"description":"Determines if a full refresh should be done."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullService"}}}},"400":{"description":"Invalid Input"},"404":{"description":"Not Found"},"500":{"description":"Server Error"}}}},"/network/status/{serialNumber}/full-status/":{"get":{"tags":["FullStatus"],"summary":"Returns service status and service configuration information of a device for a specific port.","description":"Returns service status and service configuration information of a device for a specific port.","operationId":"getDeviceFullStatus","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"portNumber","in":"path","required":false,"schema":{"type":"string"}},{"name":"refresh","in":"query","schema":{"type":"boolean"},"required":false,"description":"Determines if a full refresh should be done."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullStatus"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/power":{"get":{"tags":["NetworkPower"],"summary":"Returns light level information of a device.","description":"Returns light level information of a device.","operationId":"getNetworkPower","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkPower"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/config":{"get":{"tags":["Configuration"],"summary":"Returns configuration information of a device.","description":"Returns configuration information of a device.","operationId":"getConfiguration","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/config/{portNumber}":{"get":{"tags":["Configuration"],"summary":"Returns configuration information of a device for a specific port.","description":"Returns configuration information of a device for a specific port.","operationId":"getConfigurationPerPort","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"portNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/wifi":{"get":{"tags":["WiFiStatus"],"summary":"Returns WiFi status and devices information of a device.","description":"Returns WiFi status and devices information of a device.","operationId":"getWifiInformation","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WiFiStatus"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/wifi-devices":{"get":{"tags":["WifiDevicesOnly"],"summary":"Returns devices connected to WiFi.","description":"Returns WiFi devices information and date added to datastore.","operationId":"getWifiDevicesOnly","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WifiDevicesOnly"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/network/status/{serialNumber}/wifi-information":{"get":{"tags":["WifiInformationOnly"],"summary":"Returns device Wifi configuration.","description":"Returns device Wifi configuration.","operationId":"getWifiInformationOnly","parameters":[{"name":"serialNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WifiInformationOnly"}}}},"400":{"description":"Invalid Input."},"404":{"description":"Not Found."},"500":{"description":"Server Error."}}}},"/speed-tests":{"get":{"summary":"Get a list of all speed tests [DEPRECATED].","tags":["SpeedTest"],"description":"Get a list of all speed tests.","operationId":"getSpeedTests","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page."},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfSpeedTest"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["SpeedTest"],"summary":"Create a speed test [DEPRECATED].","operationId":"createSpeedTest","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"speed_test":{"$ref":"#/components/schemas/SpeedTest"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/speed-tests/{speedTestId}":{"get":{"tags":["SpeedTest"],"summary":"Get a single speed test [DEPRECATED].","description":"Get a single test by id.","operationId":"getSpeedTest","parameters":[{"name":"speedTestId","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedTest"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["SpeedTest"],"summary":"Update a single speed test [DEPRECATED].","description":"Update a single speed test by id.","operationId":"updateSpeedTest","parameters":[{"name":"speedTestId","in":"path","required":true,"schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"speed_test":{"$ref":"#/components/schemas/SpeedTest"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeedTest"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["SpeedTest"],"summary":"Delete a single SpeedTest [DEPRECATED].","operationId":"deleteSpeedTest","parameters":[{"name":"speedTestId","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/fsan-recaptures":{"get":{"summary":"Get a list of all FSAN Recaptures.","tags":["FSANRecapture"],"description":"Get a list of all FSAN recaptures.","operationId":"getFSANRecaptures","parameters":[{"name":"count","in":"query","schema":{"type":"integer"},"required":false,"description":"Number of records to return per page"},{"name":"page","in":"query","schema":{"type":"integer"},"required":false,"description":"Page number you want to display"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/ArrayOfFSANRecapture"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["FSANRecapture"],"summary":"Capture an FSAN.","operationId":"createFSANRecapture","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fsan_recapture":{"$ref":"#/components/schemas/FSANRecapture"}}}}}},"responses":{"201":{"$ref":"#/components/responses/Created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/fsan-recaptures/{fsanRecaptureId}":{"get":{"tags":["FSANRecapture"],"summary":"Get a single FSAN Recapture.","description":"Get a single FSAN Recapture by id.","operationId":"getFSANRecapture","parameters":[{"name":"fsanRecaptureId","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FSANRecapture"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["FSANRecapture"],"summary":"Update a single FSAN Recapture.","description":"Update a single FSAN Recapture by id.","operationId":"updateFSANRecapture","parameters":[{"name":"fsanRecaptureId","in":"path","required":true,"schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fsan_recapture":{"$ref":"#/components/schemas/FSANRecapture"}}}}}},"responses":{"200":{"description":"OK","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the updated resource"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FSANRecapture"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["FSANRecapture"],"summary":"Delete a single FSANRecapture.","operationId":"deleteFSANRecapture","parameters":[{"name":"fsanRecaptureId","in":"path","required":true,"schema":{"type":"number"}}],"responses":{"204":{"description":"The resource was successfully deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"responses":{"NotFound":{"description":"The specified resource could not be found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"BadRequest":{"description":"Invalid Input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"Conflict":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"ServerError":{"description":"Unexpected Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Created":{"description":"Resource Created","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the created resource"}}},"FullServiceCreated":{"description":"Full Service Created","headers":{"Location":{"schema":{"type":"string"},"description":"The URI of the created resource"},"X-Resource-ID":{"schema":{"type":"string","format":"uuid"},"description":"The unique id of the created payment"},"X-Easy-Pay-Number":{"schema":{"type":"string"},"description":"The EasyPay number that can be used to make the payment"}},"content":{"application/json":{"schema":{"type":"object","required":["service"],"properties":{"customer":{"type":"object","description":"The customer object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the created customer"}}},"premise":{"type":"object","description":"The premise object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the created premise"}}},"payment":{"type":"object","description":"The payment object","required":["id","url"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the created payment"},"easy_pay_number":{"type":"string","description":"The EasyPay voucher number that can be used to make a payment"},"url":{"type":"string","format":"uri","description":"The payment URL the user should visit to complete payment"}}},"service":{"type":"object","description":"The service object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the created service"}}}}}}}},"VoucherCheckResponse":{"description":"The response from a voucher check call","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoucherCheckResponse"}}}},"ServiceWorkOrderTypesResponse":{"description":"A response listing all the work order types available for a specific service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceWorkOrderTypesResponse"}}}}},"schemas":{"VoucherCheckResponse":{"type":"object","required":["code","level","errors","product_id","service_id","vouchers_available"],"properties":{"code":{"type":"integer","description":"The status code, which will be the same as the HTTP response code.","example":200},"level":{"type":"string","description":"Describes the level of the response.","enum":["success","warning","error"]},"errors":{"type":"array","description":"An array of error messages related to the result.","items":{"type":"string"}},"product_id":{"type":"string","format":"uuid","description":"The unique identifier for the product associated with the service being checked."},"service_id":{"type":"string","format":"uuid","description":"The unique identifier for the service being checked."},"vouchers_available":{"type":"integer","description":"The number of vouchers that can be purchased for the service.","example":2}}},"DeviceCheckResponse":{"type":"object","required":["code","level"],"properties":{"code":{"type":"integer","description":"The status code, which will be the same as the HTTP response code.","example":200},"level":{"type":"string","example":"success","description":"A simple indication of whether the check failed or not. success - The device is ready for provisioning. warning - The device is possibly ready for provisioning. error - The device is not ready for provisioning.\n"},"errors":{"type":"array","description":"Human-readable error messages should the response be a warning or error.","items":{"type":"string","example":"Device is ready for provisioning"}},"service_id":{"type":"string","format":"uuid","description":"The service ID of the service configured on the device, if present."},"service_status":{"type":"string","description":"The current status of the attached service, if present.","example":"Active"},"service_status_id":{"type":"integer","description":"The current status ID of the attached service, if present.","example":2},"premise_id":{"type":"string","format":"uuid","description":"The premise ID(s) of the premises the device is linked to."},"serial_number":{"type":"string","description":"The serial number of the device being checked.","example":"CXNK00132538"},"port_number":{"type":"integer","description":"The service port that needs to be checked.","example":1},"configuration":{"type":"object","description":"The raw configuration as returned from the NMS. This is informational only and SHOULD NOT be used for integration purposes."}}},"ErrorResponse":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","description":"The error code, which will be the same as the HTTP response code."},"message":{"type":"array","description":"Error messages describing the error.","items":{"type":"string"}}}},"ValidationErrorResponse":{"type":"object","required":["code","errors","full_errors"],"properties":{"code":{"type":"integer","description":"The error code, which will be the same as the HTTP response code."},"errors":{"type":"object","description":"A hash (or dictionary) of validation errors. The field names that produced the error will be the keys of the hash. The values will be an array of strings describing the validation errors.\n"},"full_errors":{"type":"array","description":"An array of error messages combining the field that caused a validation error as well as the validation error in a single string.\n","items":{"type":"string"}}}},"Account":{"type":"object","required":["customer_id","product_id","premise_id"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the customer."},"customer_id":{"type":"string","format":"uuid","description":"The unique identifier for the parent of the customer."},"product_id":{"type":"string","format":"uuid","description":"The unique identifier for the parent of the customer."},"premise_id":{"type":"string","format":"uuid","description":"The unique identifier for the parent of the customer."},"provider_id":{"type":"string","format":"uuid","description":"The unique identifier for the parent of the customer."},"preorder":{"type":"boolean","description":"Flag which indicates whether this is a pre-order."},"isp_reference":{"type":"string","description":"Free form text value used by ISPs to reference the account."},"reference_code":{"type":"string","description":"Free form text value used by clients to add referrel or reference to the Account."},"port_number":{"type":"string","description":"The ONT port on which the service should be configured. Leave blank to use the product specified port. Can be values like 1-4 or 2,3 to denote multiple ports."},"provisioned_date":{"type":"string","format":"date","description":"The date the account was provisioned by the ISP. This needs to happen before installation can commence."},"on_network_date":{"type":"string","format":"date","description":"The date the account became active on the network. This is when the installation completes."},"completed_date":{"type":"string","format":"date","description":"The date the account was activated by the ISP."},"cancelled_date":{"type":"string","format":"date","description":"The date the account was set to be terminated from the network."},"expiry_date":{"type":"string","format":"date","description":"The date the account was set to expire from the network. Deprecated."},"deleted_at":{"type":"string","format":"date","description":"The date the account was terminated from the network."},"created_at":{"type":"string","format":"date","description":"The date the account was created."}}},"ArrayOfAccounts":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"Area":{"type":"object","required":["parent_id","type_id","status_id","name","pop"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the Area.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"entity_id":{"type":"string","format":"uuid","description":"The unique identifier of the company that serves the Area.","example":"fd1fa4a6-8630-4063-a550-1239b348ebf4"},"name":{"type":"string","description":"The human-friendly name for the Area.","example":"Campbell Close"},"code":{"type":"string","description":"A machine-readable identifier for the Area.","example":"FNO1-0001","nullable":true},"parent":{"format":"string","description":"The human-readable identifier for the parent of the Area. Can be null.","example":"Savoy Waverley"},"parent_id":{"type":"string","format":"uuid","description":"The unique identifier for the parent of the Area. Can be null.","example":"ABCEB259-D584-4246-BE6A-41F98FF418CD"},"type":{"type":"string","description":"The human-readable type of the Area.","example":"Complex"},"type_id":{"type":"integer","description":"The Type ID for the Area.","example":2},"status":{"type":"string","description":"The human-readable status of the Area.","example":"Connected"},"status_id":{"type":"integer","description":"The status ID for the Area.","example":14},"city":{"type":"string","description":"The city in which the Area exists.","example":"Johannesburg"},"province":{"type":"string","description":"The province in which the Area exists.","example":"Gauteng"},"pop":{"type":"string","description":"The Point of Presence the Area is connected to."},"approved":{"type":"boolean","description":"Flag indicating whether an Area is approved."},"approved_date":{"type":"string","format":"date-time","description":"When the Area was approved for rollout."},"approved_by":{"type":"string","format":"uuid","description":"The unique identifier of the person who approved the Area."},"deleted":{"type":"boolean","description":"If the Area has been deactivated."},"latitude":{"type":"number","format":"float","description":"Latitude for the center-point of an Area.","example":-26.1340292},"longitude":{"type":"number","format":"float","description":"Longitude for the center-point of an Area.","example":28.0333403},"contractor_id":{"type":"string","format":"uuid","description":"The unique identifier of the contractor linked to the Area."},"total_size":{"type":"number","format":"integer","description":"Get the total size of the Area.","example":100},"sdu_size":{"type":"number","format":"integer","description":"The number of single dwelling units for an Area.","example":100},"mdu_size":{"type":"number","format":"integer","description":"Size of a multi-dwelling unit or complex.","example":100},"forecast_date":{"type":"string","format":"date-time","description":"The forecast date of the Area."},"region_id":{"type":"number","format":"integer","description":"The region ID of the Area."},"network_type":{"type":"string","description":"The layer of an Area."},"task_id":{"type":"number","format":"integer","description":"This is the civil status task ID.","example":1},"owner_id":{"type":"string","format":"uuid","description":"The ID of the owner of the Area."},"network_type_id":{"type":"integer","description":"The ID of the network type of the Area."},"has_children":{"type":"boolean","description":"If the Area has children Areas."},"future":{"type":"boolean","description":"If the Area is a future Area."},"future_date":{"type":"string","format":"date_time","description":"Date at which a future area will become active"},"interest_required":{"type":"integer","description":"Number of people interested in flagging this Area for development."},"kml_hidden":{"type":"boolean","description":"A value to determine if the Area should be hidden on the KML layout or not."},"connected":{"type":"boolean","description":"A value to determine if the Area is connected."},"wayleaves":{"type":"boolean","description":"A value to determine if the Area has wayleaves or not."},"primary_backhaul_vendor":{"type":"string","description":"A value to determine if the Area's backhaul vendor is type 1."},"secondary_backhaul_vendor":{"type":"string","description":"A value to determine if the Area's backhaul vendor is type 2."},"primary_backhaul":{"type":"string","description":"A value to determine if the Area's backhaul is type 1."},"secondary_backhaul":{"type":"string","description":"A value to determine if the Area's backhaul is type 2."},"construction_date":{"type":"string","format":"date","description":"The date of the building age."},"technology_type_id":{"type":"integer","description":"The ID of the technology type of the Area."},"sales_representative_id":{"type":"string","format":"uuid","description":"The ID of the sales representative of the Area."},"xpath":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of parent IDs starting with the root.","example":["4E5997B3-5681-440A-8B61-F0349B2FD0A7","3AEFB321-29B6-477E-9AF7-5CC8480630BD"]},"updated_at":{"type":"string","format":"date-time","description":"The date of the last update to the record."},"created_at":{"type":"string","format":"date-time","description":"The date of the record's creation."},"build_access":{"type":"boolean","description":"A value to determine if the Area requires building access or not."}}},"FullArea":{"allOf":[{"$ref":"#/components/schemas/Area"},{"type":"object","properties":{"has_active_child_areas":{"type":"boolean","description":"Indicates if there are any active child Areas."},"active_locations":{"type":"integer","description":"Number of active locations linked to this Area."},"active_units":{"type":"integer","description":"Number of active units linked to this Area."},"active_services":{"type":"integer","description":"Number of active services in this Area."},"active_premises":{"type":"integer","description":"Number of active premises in this Area."},"pre_order":{"type":"boolean","description":"Indicates if the Area is in pre-order status."}}}]},"ArrayOfAreas":{"type":"array","items":{"$ref":"#/components/schemas/Area"}},"ArrayOfFullAreas":{"type":"array","items":{"$ref":"#/components/schemas/FullArea"}},"ClientPremises":{"type":"object","required":["latitude","longitude","street_number","street_name","suburb","city","country_code","postal_code","province"],"properties":{"id":{"type":"integer","description":"The unique identifier for the client premises."},"latitude":{"type":"number","format":"float","description":"Latitude for the center-point of an client premises.","example":-26.1340292},"longitude":{"type":"number","format":"float","description":"Longitude for the center-point of an client premises.","example":28.0333403},"street_number":{"type":"string","description":"The street number of the client's premises."},"street_name":{"type":"string","description":"The street name of the client's premises."},"suburb":{"type":"string","description":"The suburb where the client's premises is located."},"city":{"type":"string","description":"The city where the client's premises is located."},"country_code":{"type":"string","description":"The country code for the client's premises location."},"postal_code":{"type":"string","description":"The postal code of the client's premises."},"province":{"type":"string","description":"The province or state of the client's premises."},"area_name":{"type":"string","description":"The name of the area where the client's premises is situated."},"mdu_name":{"type":"string","description":"The name of the multiple dwelling unit (MDU) at the client's premises."},"mdu_block":{"type":"string","description":"The block or building identifier at the client's premises."},"mdu_floor":{"type":"string","description":"The floor number of the client's premises within a building."},"mdu_unit":{"type":"string","description":"The unit or apartment number at the client's premises."},"intersection":{"type":"string","format":"uuid","description":"An identifier for an intersection near the client's premises."},"asset_reference":{"type":"string","description":"Reference to a device asset associated with the client's premises."},"predefined_premise_id":{"type":"string","description":"Predefined identifier for the client's premises."},"deleted_at":{"type":"string","format":"date_time","description":"Date and time when the client's premises data was deleted."},"created_at":{"type":"string","format":"date_time","description":"Date and time when the client's premises data was created."},"updated_at":{"type":"string","format":"date_time","description":"Date and time when the client's premises data was last updated."},"nid":{"type":"boolean","description":"Unique identifier for the client's premises address."}}},"ArrayOfClientPremises":{"type":"array","items":{"$ref":"#/components/schemas/ClientPremises"}},"Customer":{"type":"object","required":["first_name","last_name","email","mobile_number","parent_id"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the customer."},"parent_id":{"type":"string","format":"uuid","description":"The unique identifier for the parent of the customer."},"portal_user_id":{"type":"string","format":"uuid","description":"The unique identifier for the user."},"first_name":{"type":"string","description":"The customer's first name."},"last_name":{"type":"string","description":"The customer's last name."},"business_name":{"type":"string","description":"The customer's business name."},"email":{"type":"string","format":"email","description":"The customer's email address."},"username":{"type":"string","description":"The customer's login username. Should be same as email. (Deprecated)"},"mobile_number":{"type":"string","description":"The customer's mobile number."},"home_number":{"type":"string","description":"The customer's home number."},"work_number":{"type":"string","description":"The customer's work number."},"password":{"type":"string","description":"The customer's login password."},"vat_number":{"type":"string","description":"The customer's VAT number. (Deprecated)"},"identity_number":{"type":"string","description":"The customer's ID number."},"registration_number":{"type":"string","description":"The customer's registration number."},"billing_address":{"type":"string","format":"uuid","description":"The customer's billing address. (Deprecated)"},"billing_suburb":{"type":"string","format":"uuid","description":"The suburb for sending customer billing. (Deprecated)"},"billing_city":{"type":"string","description":"The city for sending customer billing. (Deprecated)"},"billing_postal_code":{"type":"string","description":"The postal code for sending customer billing. (Deprecated)"},"billing_province":{"type":"string","description":"The province for sending customer billing. (Deprecated)"},"billing_country":{"type":"string","format":"email","description":"The country for sending customer billing. (Deprecated)"},"physical_address":{"type":"string","description":"The customer's physical address for deliveries. (Deprecated)"},"physical_suburb":{"type":"string","description":"The suburb for sending customer deliveries. (Deprecated)"},"physical_city":{"type":"string","description":"The city for sending customer deliveries. (Deprecated)"},"physical_postal_code":{"type":"string","description":"The postal code for sending customer deliveries. (Deprecated)"},"physical_province":{"type":"string","description":"The province for sending customer deliveries. (Deprecated)"},"physical_country":{"type":"string","description":"The country for sending customer deliveries. (Deprecated)"}}},"ArrayOfCustomers":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"Installer":{"type":"object","required":["id","name"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the Installer."},"parent_id":{"type":"string","format":"uuid","description":"The unique identifier of the FNO."},"name":{"type":"string","description":"The name of the Installer."},"registration_number":{"type":"string","description":"The Installer's registration number."},"support_number":{"type":"string","description":"The Installer's support number."},"website":{"type":"string","description":"The Installer's website URL."},"email":{"type":"string","description":"The Installer's email address."},"active":{"type":"boolean","description":"The Installer's active status."},"enabled":{"type":"boolean","description":"The Installer's enabled status."}}},"InstallerList":{"type":"object","required":["items","page","count","total"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfInstallers"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}},"ArrayOfInstallers":{"type":"array","items":{"$ref":"#/components/schemas/Installer"}},"Premise":{"type":"object","required":["customer_id","name","latitude","longitude","street_number","street_name","suburb","postal_code","city","province"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the premise."},"customer_id":{"type":"string","format":"uuid","description":"The unique identifier for the customer of the premise."},"name":{"type":"string","description":"The human-friendly name for the premise."},"latitude":{"type":"number","description":"The latitude of the premise."},"longitude":{"type":"number","description":"The longitude of the premise."},"mdu_unit":{"type":"string","description":"The MDU unit for the premise."},"mdu_block":{"type":"string","description":"The MDU block for the premise."},"mdu_name":{"type":"string","description":"The MDU name for the premise."},"street_number":{"type":"string","description":"The street number for the premise."},"plot_number":{"type":"string","description":"The plot number for the premise."},"street_name":{"type":"string","description":"The street name for the premise."},"suburb":{"type":"string","description":"The suburb for the premise."},"postal_code":{"type":"string","description":"The postal code for the premise."},"city":{"type":"string","description":"The city for the premise."},"province":{"type":"string","description":"The province for the premise."},"country_code":{"type":"string","description":"The country code for the premise."},"asset_reference":{"type":"string","description":"The serial number or reference of the asset associated with this premise."},"external_reference":{"type":"string","description":"An external, unique reference, typically provided by the FNO. Since this is used to uniquely identify the premise externally, any attempts to create duplicate values in this field will result in a 409 (Conflict) response.\n","example":"357956"},"status":{"type":"string","description":"The status of the premise."}}},"ArrayOfPremises":{"type":"array","items":{"$ref":"#/components/schemas/Premise"}},"PredefinedPremise":{"type":"object","required":["latitude","longitude"],"properties":{"id":{"type":"integer","format":"number","description":"The unique identifier for the predefined premise.","example":1},"guid":{"type":"string","format":"guid","description":"The unique identifier for the predefined premise.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"full_text":{"type":"string","format":"text","description":"The conjoied address information of the predefined premise","example":"43A, Compensation Beach Road, Ballito, Dolphin Coast, ZA, 4399, Kwa-Zulu Natal"},"latitude":{"type":"number","format":"number","description":"The the latitude of the prededfined premise.","example":-29.546811},"longitude":{"type":"number","format":"number","description":"The the longitude of the prededfined premise.","example":-29.546811},"premise_id":{"type":"string","format":"guid","description":"The unique identifier for the premise related to the predefined premise if it exists.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"updated_at":{"type":"string","format":"date","description":"The last date that the predefined premise was updated","example":"2021-04-21T15:20:33.367"},"created_at":{"type":"string","format":"date-time","description":"The date on which thepredefined premise was creates.","example":"2021-04-21T15:20:33.367"}}},"ArrayOfPredefinedPremises":{"type":"array","items":{"$ref":"#/components/schemas/PredefinedPremise"}},"Product":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the product."},"parent_id":{"type":"string","format":"uuid","description":"The unique identifier for the parent of the product."},"provider_id":{"type":"string","format":"uuid","description":"The unique identifier for the provider of the product."},"name":{"type":"string","description":"The name of the product."},"description":{"type":"string","description":"The description for the product."},"effective_date":{"type":"string","format":"date","description":"The date from when the product is available."},"min_contract":{"type":"integer","description":"The minimum contract term for the product."},"visible_to_user":{"type":"boolean","description":"Is this product available for customer signup."},"visible_to_admin":{"type":"boolean","description":"Is this product available for admins to sign up customers."},"speed_up":{"type":"string","description":"The upload speed delivered to the customer."},"speed_down":{"type":"string","description":"The download speed delivered to the customer."},"pricing":{"type":"array","items":{"$ref":"#/components/schemas/ProductPrice"}}}},"ArrayOfProducts":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"ProductPrice":{"type":"object","required":["price_type","currency_code","tax","value","effective_date","code","description"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the price."},"price_type":{"type":"string","description":"The interval at which this price is billed."},"currency_code":{"type":"string","description":"The currency in which this price is offered."},"tax":{"type":"integer","description":"The tax percentage that should be added to this price."},"value":{"type":"number","description":"The price, excluding VAT."},"effective_date":{"type":"string","format":"date","description":"From when the price is effective."},"code":{"type":"string","description":"The vendor code for the price."},"description":{"type":"string","description":"The human-readable description/name for the price."}}},"Provider":{"type":"object","required":["id","name"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the Service Provider."},"parent_id":{"type":"string","format":"uuid","description":"The unique identifier for the FNO."},"name":{"type":"string","description":"The name of the Service Provider."},"registration_number":{"type":"string","description":"The Service Provider's registration number."},"support_number":{"type":"string","description":"The Service Provider's support number."},"website":{"type":"string","description":"The Service Provider's website URL."},"email":{"type":"string","description":"The Service Provider's email address."},"active":{"type":"boolean","description":"The Service Provider's active status."},"enabled":{"type":"boolean","description":"The Service Provider's enabled status."}}},"ProviderList":{"type":"object","required":["items","page","count","total"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfProviders"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}},"ArrayOfProviders":{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},"ServiceChange":{"type":"object","required":["service_id","product_id","effective_date"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the service change.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"service_id":{"type":"string","format":"uuid","description":"The unique identifier for the original service.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"new_service_id":{"type":"string","description":"The unique identifier for the service created as a result of the service change.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"effective_date":{"type":"string","format":"date","description":"The date the service change should take effect."},"created_at":{"type":"string","format":"date-time","description":"The date on which the service change was requested.","example":"2018-01-25 09:50:43 +0200"}}},"ServiceChangeRequest":{"type":"object","required":["service_id","product_id"],"properties":{"service_id":{"type":"string","format":"uuid","description":"The unique identifier of the service that should be changed.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"product_id":{"type":"string","format":"uuid","description":"The unique identifier of the product the service should be changed to.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"effective_date":{"type":"string","format":"date","description":"The date when the service change should take effect."}}},"ArrayOfServiceChanges":{"type":"array","items":{"$ref":"#/components/schemas/ServiceChange"}},"WorkOrder":{"type":"object","required":["type_id","account_id","on_hold"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the work order.","example":"6785707A-09FB-4F9F-B53E-FC0ABFE20CC6"},"type_id":{"type":"integer","description":"The work order type ID.","example":1},"reference":{"type":"string","description":"The unique reference of the work order.","example":"20190614-615923562"},"on_hold":{"type":"boolean","description":"Indicates whether the work order is on hold.","example":false},"completed_date":{"type":"string","format":"date-time","description":"The date and time when the work order was completed."},"schedule_date":{"type":"string","format":"date","description":"The scheduled date for the work order."},"schedule_time":{"type":"string","format":"time","description":"The scheduled time for the work order."},"external_reference":{"type":"string","description":"External reference associated with the work order.","example":"357956"},"category":{"type":"string","description":"The category of the work order."},"updated_at":{"type":"string","format":"date","description":"The date and time of the last update to the work order.","example":"2019-06-14 19:06:32 +0200"},"created_at":{"type":"string","format":"date","description":"The date and time when the work order was created.","example":"2019-06-14 19:06:32 +0200"},"status_id":{"type":"string","format":"uuid","description":"The status ID associated with the work order.","example":"029715DE-80AE-469F-A344-E984588E76D1"},"assigned_id":{"type":"string","format":"uuid","description":"The unique identifier of the assigned entity or resource.","example":"64D629C9-11C9-4DE2-9BF4-B70D30B2ECBA"},"assigned_user_id":{"type":"string","format":"uuid","description":"The unique identifier of the assigned user."},"created_by":{"type":"string","format":"uuid","description":"The unique identifier of the user who created the work order."},"status":{"type":"string","description":"The current status of the work order.","example":"Installation Schedule Pending"},"type":{"type":"string","description":"The type or category of the work order.","example":"Installation"},"service_id":{"type":"string","format":"uuid","description":"The unique identifier for the associated service.","example":"17464116-AB30-412B-B89B-C86C92F7934A"},"last_comment":{"type":"string","description":"The most recent comment associated with the work order."}}},"WorkOrderRequest":{"type":"object","required":["type_id","account_id"],"properties":{"type_id":{"type":"integer","example":1,"description":"The type of work order to create.","enum":["1 - Installation","2 - Provisioning","4 - Change Service","8 - Cancellation","16 - Swapout Device","32 - Recover Device","64 - Deprovisioning","128 - Service Activation","246 - Change of ISP","512 - Fault","1024 - Repair","2048 - Layer 3 Provisioning","4096 - Preorder Installation"]},"comments":{"type":"string","description":"The first comment that should accompany the Work Order."},"modified_by_id":{"type":"string","format":"uuid","example":"17464116-AB30-412B-B89B-C86C92F7934A","description":"The unique identifier of the end user who created the Work Order."},"external_reference":{"type":"string","description":"Any external identifier that will help the FNO tie the work order back to its internal systems."}}},"ArrayOfWorkOrders":{"type":"array","items":{"$ref":"#/components/schemas/WorkOrder"}},"ServiceWorkOrderTypesResponse":{"type":"object","required":["service_id","items","page","count","total"],"additionalProperties":false,"properties":{"service_id":{"type":"string","format":"uuid","example":"17464116-AB30-412B-B89B-C86C92F7934A"},"items":{"$ref":"#/components/schemas/ArrayOfWorkOrderTypes"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}},"WorkOrderType":{"type":"object","properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"Installation"},"enabled":{"type":"boolean","example":"true"}}},"ArrayOfWorkOrderTypes":{"type":"array","items":{"$ref":"#/components/schemas/WorkOrderType"}},"WorkOrderStatus":{"type":"object","properties":{"id":{"type":"integer","example":1},"type_id":{"type":"integer","example":1},"order":{"type":"integer","example":1},"name":{"type":"string","example":"Rejected"},"isp_provisioned":{"type":"boolean","example":"true"},"enabled":{"type":"boolean","example":"true"},"service_provider_allocated":{"type":"boolean","example":"true"},"scheduled_date_required":{"type":"boolean","example":"true"},"installer_allocated":{"type":"boolean","example":"true"},"cancelled":{"type":"boolean","example":"true"},"user_allowed":{"type":"boolean","example":"true"},"closed":{"type":"boolean","example":"true"},"action_name":{"type":"string","example":"Rejected"},"on_network":{"type":"boolean","example":"true"},"asset_validation_required":{"type":"boolean","example":"true"},"activated":{"type":"boolean","example":"true"},"send_email":{"type":"boolean","example":"true"},"send_sms":{"type":"boolean","example":"true"},"notify_entity":{"type":"boolean","example":"true"},"notify_service_provider":{"type":"boolean","example":"true"},"notify_installer":{"type":"boolean","example":"true"},"user_allocated":{"type":"boolean","example":"true"},"previous_entity_allocated":{"type":"boolean","example":"true"},"asset_type_required":{"type":"boolean","example":"true"},"asset_attribute_required":{"type":"boolean","example":"true"},"create_work_order_type_id":{"type":"boolean","example":"true"},"entity_notification_subject":{"type":"string","example":"Rejected"},"entity_notification_email":{"type":"string","example":"Rejected"},"entity_notification_sms":{"type":"string","example":"Rejected"},"skip_asset_required":{"type":"boolean","example":"true"},"document_uploads_enabled":{"type":"boolean","example":"true"},"schedule_time_required":{"type":"boolean","example":"true"},"scheduled_id":{"type":"boolean","example":"true"},"client_description":{"type":"boolean","example":"true"},"enable_clear_fsan":{"type":"boolean","example":"true"},"enable_edit_fsan":{"type":"boolean","example":"true"},"require_payment":{"type":"boolean","example":"true"},"type":{"type":"string","example":"Installation"}}},"ArrayOfWorkOrderStatuses":{"type":"array","items":{"$ref":"#/components/schemas/WorkOrderStatus"}},"WorkOrderStatusTransition":{"type":"object","properties":{"id":{"type":"integer","example":1},"type_id":{"type":"integer","example":1},"updated_at":{"type":"string","format":"date","description":"The last date that the status transition was updated","example":"2021-04-21T15:20:33.367"},"enabled":{"type":"boolean","example":"true"},"source_status_id":{"type":"string","format":"uuid","example":"17464116-AB30-412B-B89B-C86C92F7934A","description":"The unique identifier of work order status you want to transition from."},"destination_status_id":{"type":"string","format":"uuid","example":"17464116-AB30-412B-B89B-C86C92F7934A","description":"The unique identifier of work order status you want to transition to."}}},"ArrayOfWorkOrderStatusTransition":{"type":"array","items":{"$ref":"#/components/schemas/WorkOrderStatusTransition"}},"SerialNumberCheckGETResponse":{"type":"object","properties":{"status_id":{"type":"integer","description":"Unique identifier for the status being returned."},"flash":{"type":"string","description":"Used to determine success, warning, or error."},"message":{"type":"string","description":"Message being displayed to the end user explaining the status."}}},"ProductList":{"type":"object","required":["items","page","count","total"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfProducts"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}},"ProductListWithPlacename":{"type":"object","required":["items","page","count","total","placename","areas"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfProducts"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123},"placename":{"type":"string","description":"The provided placename","example":"Johannesburg"},"areas":{"$ref":"#/components/schemas/ArrayOfAreas"}}},"ProductListWithArea":{"type":"object","required":["items","page","count","total","area_id","area"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfProducts"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123},"area_id":{"type":"string","format":"uuid"},"area":{"$ref":"#/components/schemas/Area"}}},"AreaList":{"type":"object","required":["items","page","count","total"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfAreas"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}},"FullAreaList":{"type":"object","required":["items","page","count","total"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfFullAreas"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123}}},"AreaListWithProduct":{"type":"object","required":["items","page","count","total","product","product_id"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfAreas"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":123},"product_id":{"type":"string","format":"uuid"},"product":{"$ref":"#/components/schemas/Product"}}},"OperationalStatus":{"type":"object","additionalProperties":false,"properties":{"service":{"type":"string","description":"Whether this service is up or down.","enum":["up","down"],"example":"up"},"last_updated":{"type":"string","format":"date-time","description":"The last time this information was updated in the cache.","example":"2019-06-19 18:22:41 +0200"},"pop_id":{"type":"integer","description":"The ID of the Point of Presence (PoP)."},"pop_name":{"type":"string","description":"The translated name of the PoP."},"pop_description":{"type":"string","description":"The untranslated name of the PoP."},"pop_status":{"type":"string","description":"The operational status of the PoP.","enum":["up","down"],"example":"up"},"serial_number":{"type":"string","description":"The serial number of this device.","example":"4857544312345678"},"populated_ports":{"type":"array","items":{"type":"integer","description":"Ports to which it was plugged in.","example":[1,2]}},"alerts":{"type":"array","items":{"type":"string","description":"The interpreted alerts for the ONT.","example":"Possible Power Down"}},"alarms":{"type":"array","items":{"type":"string","description":"Alarms reported by the ONT. Will differ by vendor.","example":"Possible Power Down"}}}},"ServiceStatus":{"type":"object","additionalProperties":false,"properties":{"gpon_status":{"type":"string","description":"The GPON connection status of the ONT.","enum":["up","down"],"example":"up"},"pppoe_status":{"type":"string","description":"The PPPoE connection status of the ONT.","enum":["up","down"],"example":"up"},"service_port":{"type":"integer","description":"'The ONT port on which this service resides. This can vary depending on the vendor, but in general 1-4'","example":1},"network":{"type":"string","description":"The type of network this device is residing on.","enum":["end_to_end_ip","gpon","active_ethernet"],"example":"end_to_end_ip"},"pop":{"type":"string","description":"The human-readable name of the PoP this device resides on.","example":"Mitchells Plain"},"serial_number":{"type":"string","description":"The serial number of this device.","example":"4857544312345678"},"ip_address":{"type":"string","description":"The IP address of the device, if one exists.","example":"192.168.0.168"},"ip_v6_address":{"type":"string","description":"IPv6 address of the device, if one exists.","example":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},"isp_modem_mac":{"type":"string","description":"The MAC address of a layer 3 device plugged into this device.","example":"58-F9-87-A8-0A-DC"},"nni_mac":{"type":"string","description":"'Whether the MAC is picked up on the interconnect. success - All of the MAC addresses returned match warning - There are more than a single MAC, and 1 or more are picked up failure - None of the MAC addresses are picked up'","enum":["success","warning","failure"],"example":"success"},"cpe":{"type":"string","description":"'The vendor or the CPE Type depending on GPON / Active-E. Active-E - Will have the CPE type displayed here. GPON - Will have the vendor displayed here.'","example":"Huawei"},"model":{"type":"string","description":"The ONT model for the GPON network.","example":"EG8040H"},"configuration":{"type":"string","description":"'Whether there is a configuration present on the selected port (default 1), and whether it's an automated config or not.'","enum":["present","present_auto","not_present"],"example":"present_auto"},"devices_connected":{"type":"string","description":"'Comma-separated list of ONT ports that have a layer 3 device plugged into it.'","example":"1,2,4"},"lease_expiry":{"type":"string","description":"Active Ethernet specific - The date at which the IP lease expires.","example":"2019-06-19 18:22:41 +0200"},"modem_port_speed":{"type":"integer","description":"Active Ethernet specific - The physical speed of the modem port in Mbps.","example":100},"modem_connected":{"type":"integer","description":"Active Ethernet specific - The port to which the modem is connected.","example":1},"object_status":{"type":"string","description":"Active Ethernet specific - Displays the state of the object.","enum":["deliverable","in_deployment","unknown"],"example":"deliverable"},"order_status":{"type":"string","description":"Active Ethernet specific - Displays the state of the order.","enum":["active","inactive"],"example":"active"},"last_updated":{"type":"string","format":"date-time","description":"The last time this information was updated in the cache.","example":"2019-06-19 18:22:41 +0200"}}},"FullServiceStatus":{"type":"object","additionalProperties":false,"properties":{"gpon_status":{"type":"string","description":"The GPON connection status of the ONT","enum":["up","down"],"example":"up"},"pppoe_status":{"type":"string","description":"The PPPoE connection status of the ONT","enum":["up","down"],"example":"up"},"service_port":{"type":"integer","description":"The ONT port on which this service resides This can vary depending on the vendor, but in general 1-4","example":1},"network":{"type":"string","description":"The type of network this device is residing on.","enum":["end_to_end_ip","gpon","active_ethernet"],"example":"end_to_end_ip"},"pop":{"type":"string","description":"The human readable name of the PoP this device resides on.","example":"Mitchells Plain"},"ip_address":{"type":"string","description":"The IP address of the device, if one exists.","example":"192.168.0.168"},"isp_modem_mac":{"type":"string","description":"The MAC address of a layer 3 device plugged into this device.","example":"58-F9-87-A8-0A-DC"},"nni_mac":{"type":"string","description":"Whether the MAC is picked up on the interconnect. success - All of the MAC addresses returned match warning - There are more than a single MAC, and 1 or more are picked up failure - None of the MAC addresses are picked up","enum":["success","warning","failure"],"example":"success"},"cpe":{"type":"string","description":"The vendor or the CPE Type depending on GPON / Active-E Active-E - Will have the CPE type displayed here GPON - Will have the vendor displayed here","example":"Huawei"},"model":{"type":"string","description":"The ONT model for the GPON network.","example":"EG8040H"},"configuration":{"type":"string","description":"Whether there is a configuration present on the selected port (default 1), and whether it's an automated config or not.","enum":["present","present_auto","not_present"],"example":"present_auto"},"devices_connected":{"type":"string","description":"Comma separated list of ONT ports that have a layer 3 device plugged into it","example":"1,2,4"},"lease_expiry":{"type":"string","description":"Active Ethernet specific - The date at which the IP lease expires","example":"2019-06-19 18:22:41 +0200"},"modem_port_speed":{"type":"integer","description":"Active Ethernet specific - The physical speed of the modem port in Mbps","example":100},"modem_connected":{"type":"integer","description":"Active Ethernet specific - The port to which modem is connected","example":1},"object_status":{"type":"string","description":"Active Ethernet specific - Displays the state of the object","enum":["deliverable","in_deployment","unknown"],"example":"deliverable"},"order_status":{"type":"string","description":"Active Ethernet specific - Displays the state of the order","enum":["active","inactive"],"example":"active"},"olt_port":{"type":"string","description":"The physical GPON port where this device resides.","example":"1-2-3-4"},"last_updated":{"type":"string","format":"date-time","description":"The last time this information was updated to the cache.","example":"2019-06-19 18:22:41 +0200"},"distance":{"type":"number","format":"float","description":"The distance from the CPE to the exchange in kilometers.","example":1.56},"rx_power":{"type":"number","format":"float","description":"The receive power of the CPE device.","example":-21.45},"rx_status":{"type":"string","description":"The status of the rx_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"sfp_status":{"type":"string","description":"The status of the sfp_power value.","enum":["Normal","Abnormal","Unknown","Unable to fetch","Device unsupported"],"example":"Normal"},"sfp_rx_status":{"type":"string","description":"The status of the sfp_power value.","enum":["Normal","Abnormal","Unknown","Unable to fetch","Device unsupported"],"example":"Normal"},"tx_power":{"type":"number","format":"float","description":"Output optical power.","example":2.59},"tx_status":{"type":"string","description":"The status of the tx_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"switch":{"type":"string","description":"The name of the switch to which this devices is connected.","example":"telsaf-a47"},"sfp_sync_speed":{"type":"string","description":"The speed of the physical SFP port in Mbps.","example":1000},"switch_port":{"type":"integer","description":"The port of the switch where the CPE is plugged in.","example":14},"sfp_power":{"type":"number","format":"float","description":"The transmit power of the parent (OLT, Hub) device.","example":-21.4},"sfp_rx_power":{"type":"number","format":"float","description":"The transmit power of the parent (OLT, Hub) device.","example":-21.4},"service":{"type":"string","description":"Whether this service is up or down.","enum":["up","down"],"example":"up"},"pop_id":{"type":"integer","description":"The id of the PoP"},"pop_name":{"type":"string","description":"The translated name of the PoP"},"pop_description":{"type":"string","description":"The untranslated name of the PoP"},"pop_status":{"type":"string","description":"The operational status of the PoP.","enum":["up","down"],"example":"up"},"serial_number":{"type":"string","description":"The serial number of this device.","example":"4857544312345678"},"populated_ports":{"type":"array","items":{"type":"integer","description":"Ports to which it was plugged-in.","example":[1,2]}},"alerts":{"type":"array","items":{"type":"string","description":"The interpreted alerts for the ONT.","example":"Possible Power Down"}},"alarms":{"type":"array","items":{"type":"string","description":"Alarms reported by the ONT. Will differ by vendor.","example":"Possible Power Down"}},"vlans":{"type":"string","description":"Concatenation of the CVLAN/SVLAN.","example":"123/3606"},"download_speed":{"type":"integer","description":"The download speed configured on the device concatenated with Mbps.","example":20},"upload_speed":{"type":"integer","description":"The upload speed configured on the device concatenated with Mbps.","example":2},"ont_port":{"type":"string","description":"The port on the ONT that the configuration resides on.","example":1},"service_provider":{"type":"string","description":"The service provider of the account linked to this device.","example":"Afrihost"},"vlans_success":{"type":"boolean","description":"Field that displays if vlans are configured correctly.","example":false},"speeds_success":{"type":"boolean","description":"Field that displays if speeds are configured correctly.","example":false}}},"FullStatus":{"type":"object","additionalProperties":false,"properties":{"gpon_status":{"type":"string","description":"The GPON connection status of the ONT.","enum":["up","down"],"example":"up"},"network":{"type":"string","description":"The type of network this device is residing on.","enum":["end_to_end_ip","gpon","active_ethernet"],"example":"end_to_end_ip"},"pop":{"type":"string","description":"The human-readable name of the PoP this device resides on.","example":"Mitchells Plain"},"serial_number":{"type":"string","description":"The serial number of this device.","example":"4857544312345678"},"cpe":{"type":"string","description":"'The vendor or the CPE Type depending on GPON / Active-E. Active-E - Will have the CPE type displayed here. GPON - Will have the vendor displayed here.'","example":"Huawei"},"model":{"type":"string","description":"The ONT model for the GPON network.","example":"EG8040H"},"lease_expiry":{"type":"string","description":"Active Ethernet specific - The date at which the IP lease expires.","example":"2019-06-19 18:22:41 +0200"},"modem_port_speed":{"type":"integer","description":"Active Ethernet specific - The physical speed of the modem port in Mbps.","example":100},"modem_connected":{"type":"integer","description":"Active Ethernet specific - The port to which the modem is connected.","example":1},"object_status":{"type":"string","description":"Active Ethernet specific - Displays the state of the object.","enum":["deliverable","in_deployment","unknown"],"example":"deliverable"},"last_updated":{"type":"string","format":"date-time","description":"The last time this information was updated in the cache.","example":"2019-06-19 18:22:41 +0200"},"pop_name":{"type":"string","description":"The translated name of the PoP."},"service":{"type":"string","description":"Whether this service is up or down.","enum":["up","down"],"example":"up"},"alerts":{"type":"array","items":{"type":"string","description":"The interpreted alerts for the ONT.","example":"Possible Power Down"}},"alarms":{"type":"array","items":{"type":"string","description":"Alarms reported by the ONT. Will differ by vendor.","example":"Possible Power Down"}},"populated_ports":{"type":"array","items":{"type":"integer","description":"Ports to which it was plugged in.","example":[1,2]}},"olt_port":{"type":"string","description":"The physical GPON port where this device resides.","example":"1-2-3-4"},"distance":{"type":"number","format":"float","description":"The distance from the CPE to the exchange in kilometers.","example":1.56},"rx_status":{"type":"string","description":"The status of the rx_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"rx_power":{"type":"number","format":"float","description":"The receive power of the CPE device.","example":-21.45},"sfp_status":{"type":"string","description":"The status of the sfp_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"sfp_rx_status":{"type":"string","description":"The status of the sfp_power value.","enum":["Normal","Abnormal","Unknown","Unable to fetch","Device unsupported"],"example":"Normal"},"sfp_power":{"type":"number","format":"float","description":"The transmit power of the parent (OLT, Hub) device.","example":-21.4},"sfp_rx_power":{"type":"number","format":"float","description":"The transmit power of the parent (OLT, Hub) device.","example":-21.4},"tx_status":{"type":"string","description":"The status of the tx_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"tx_power":{"type":"number","format":"float","description":"Output optical power.","example":2.59},"switch":{"type":"string","description":"The name of the switch to which this device is connected.","example":"telsaf-a47"},"switch_port":{"type":"integer","description":"The port of the switch where the CPE is plugged in.","example":14},"sfp_sync_speed":{"type":"string","description":"The speed of the physical SFP port in Mbps.","example":1000}}},"FullService":{"type":"object","additionalProperties":false,"properties":{"pppoe_status":{"type":"string","description":"The PPPoE connection status of the ONT.","enum":["up","down"],"example":"up"},"service_port":{"type":"integer","description":"'The ONT port on which this service resides. This can vary depending on the vendor, but in general 1-4'","example":1},"ip_address":{"type":"string","description":"The IP address of the device, if one exists.","example":"192.168.0.168"},"isp_modem_mac":{"type":"string","description":"The MAC address of a layer 3 device plugged into this device.","example":"58-F9-87-A8-0A-DC"},"nni_mac":{"type":"string","description":"'Whether the MAC is picked up on the interconnect. success - All of the MAC addresses returned match warning - There are more than a single MAC, and 1 or more are picked up failure - None of the MAC addresses are picked up'","enum":["success","warning","failure"],"example":"success"},"configuration":{"type":"string","description":"'Whether there is a configuration present on the selected port (default 1), and whether it's an automated config or not.'","enum":["present","present_auto","not_present"],"example":"present_auto"},"devices_connected":{"type":"string","description":"'Comma-separated list of ONT ports that have a layer 3 device plugged into it.'","example":"1,2,4"},"order_status":{"type":"string","description":"Active Ethernet specific - Displays the state of the order.","enum":["active","inactive"],"example":"active"},"pop_id":{"type":"integer","description":"The ID of the PoP."},"pop_description":{"type":"string","description":"The untranslated name of the PoP."},"pop_status":{"type":"string","description":"The operational status of the PoP.","enum":["up","down"],"example":"up"},"vlans":{"type":"string","description":"Concatenation of the CVLAN/SVLAN.","example":"123/3606"},"download_speed":{"type":"integer","description":"The download speed configured on the device concatenated with Mbps.","example":20},"upload_speed":{"type":"integer","description":"The upload speed configured on the device concatenated with Mbps.","example":2},"ont_port":{"type":"string","description":"The port on the ONT that the configuration resides on.","example":1},"service_provider":{"type":"string","description":"The service provider of the account linked to this device.","example":"Afrihost"},"speeds_success":{"type":"boolean","description":"Field that displays if speeds are configured correctly.","example":false},"vlans_success":{"type":"boolean","description":"Field that displays if vlans are configured correctly.","example":false},"last_updated":{"type":"string","format":"date-time","description":"The last time this information was updated in the cache.","example":"2019-06-19 18:22:41 +0200"},"configuration_type":{"type":"string","description":"Layer 2 or Layer 3 device.","example":"Layer 2"}}},"NetworkPower":{"type":"object","additionalProperties":false,"properties":{"olt_port":{"type":"string","description":"The physical GPON port where this device resides.","example":"1-2-3-4"},"last_updated":{"type":"string","format":"date-time","description":"The last time this information was updated to the cache.","example":"2019-06-19 18:22:41 +0200"},"distance":{"type":"number","format":"float","description":"The distance from the CPE to the exchange in kilometers.","example":1.56},"rx_power":{"type":"number","format":"float","description":"The receive power of the CPE device.","example":-21.45},"rx_status":{"type":"string","description":"The status of the rx_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"sfp_power":{"type":"number","format":"float","description":"The transmit power of the CPE device.","example":-21.4},"sfp_status":{"type":"string","description":"The status of the sfp_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"tx_power":{"type":"number","format":"float","description":"Output optical power.","example":2.59},"tx_status":{"type":"string","description":"The status of the tx_power value.","enum":["Normal","Abnormal","Unknown"],"example":"Normal"},"switch":{"type":"string","description":"The name of the switch to which this devices is connected.","example":"telsaf-a47"},"sfp_sync_speed":{"type":"string","description":"The speed of the physical SFP port in Mbps.","example":1000},"switch_port":{"type":"integer","description":"The port of the switch where the CPE is plugged in.","example":14},"lease_expiry":{"type":"string","format":"date-time","description":"Active Ethernet specific - The date at which the IP lease expires.","example":"2019-06-19 18:22:41 +0200"}}},"Configuration":{"type":"object","additionalProperties":false,"properties":{"vlans":{"type":"string","description":"Concatenation of the CVLAN/SVLAN.","example":"123/3606"},"download_speed":{"type":"integer","description":"The download speed configured on the device concatenated with Mbps.","example":20},"upload_speed":{"type":"integer","description":"The upload speed configured on the device concatenated with Mbps.","example":2},"ont_port":{"type":"string","description":"The port on the ONT that the configuration resides on.","example":1},"service_provider":{"type":"string","description":"The service provider of the account linked to this device.","example":"Afrihost"},"last_updated":{"type":"string","format":"date-time","description":"The last time this information was updated to the cache.","example":"2019-06-19 18:22:41 +0200"},"vlans_success":{"type":"boolean","description":"Field that displays if vlans are configured correctly.","example":false},"speeds_success":{"type":"boolean","description":"Field that displays if speeds are configured correctly.","example":false}}},"WiFiStatus":{"type":"object","additionalProperties":false,"properties":{"state":{"type":"string","description":"Whether this WiFi is Active or Inactive.","enum":["Active","Inactive"],"example":"Active"},"ssid":{"type":"string","description":"The SSID being broadcasted for this WiFi.","example":"TestSSID"},"mode":{"type":"string","description":"The mode at which the WiFi is setup.","example":"802.11b/g/n"},"frequency":{"type":"string","description":"The frequency at which this WiFi SSID runs.","example":"2.4GHz"},"devices":{"$ref":"#/components/schemas/ArrayOfWiFiDevices"},"last_updated":{"type":"string","format":"date-time","description":"When last the WiFi information was updated.","example":"2019-06-19 18:22:41 +0200"},"devices_last_updated":{"type":"string","format":"date-time","description":"When last the devices linked to the SSID / WiFi was updated.","example":"2019-06-19 18:22:41 +0200"}}},"WifiDevicesOnly":{"type":"object","additionalProperties":false,"properties":{"devices":{"$ref":"#/components/schemas/ArrayOfFieldValuePairs","description":"Devices connected to this Wifi"},"added":{"type":"string","format":"date-time","description":"Time when devices were added to datastore","example":"2019-06-19 18:22:41 +0200"}}},"ArrayOfFieldValuePairs":{"type":"array","items":{"$ref":"#/components/schemas/FieldValuePair"}},"FieldValuePair":{"type":"object","additionalProperties":false,"properties":{"field":{"type":"string","description":"Field name","example":"Signal Quality"},"value":{"type":"string","description":"Field value","example":"6"}}},"WifiInformationOnly":{"type":"object","additionalProperties":false,"properties":{"pppoe_username":{"type":"string","format":"nullable","example":"9E7FCA2F0DCC408891722C18A676DCEEbb.net99.co.za"},"pppoe_password":{"type":"string","format":"nullable","example":"P@ssw0rd!"},"device_id":{"type":"string","example":"ALCLB3B7207A"},"wifi_configuration":{"$ref":"#/components/schemas/WifiConfig"}}},"WifiConfig":{"type":"object","additionalProperties":false,"properties":{"transport_power":{"type":"string","example":"100%"},"auth_mode":{"type":"string","example":"WPA/WPA2 Pre-Shared Key"},"encryption_mode":{"type":"string","example":"TKIP&AES"},"connection_status":{"type":"string","example":"Active"},"frequency":{"type":"array","items":{"$ref":"#/components/schemas/WifiChannel"}}}},"WifiChannel":{"type":"object","additionalProperties":false,"properties":{"ssid":{"type":"string","example":"test1234_2.4Ghz"},"band_width":{"type":"string","example":"20MHz"},"wmm":{"type":"string","example":"Enabled"},"channel":{"type":"integer","example":2},"channel_width":{"type":"string","example":"20MHz"},"information":{"type":"object","format":"nullable"}}},"WiFiDevice":{"type":"object","additionalProperties":false,"properties":{"ssid":{"type":"string","description":"The SSID which this device is connected to.","example":"TestSSID"},"mac_address":{"type":"string","description":"The MAC Address of this device.","example":"04:F1:28:65:16:2A"},"current_down_speed":{"type":"number","format":"float","description":"The speed at which the device is currently downloading in Mbps.","example":2.56},"current_up_speed":{"type":"number","format":"float","description":"The speed at which the device is currently uploading in Mbps.","example":0.25},"signal":{"type":"integer","description":"The signal of the device in dBm.","example":-64},"noise":{"type":"integer","description":"The noise of the device in dBm.","example":-96},"signal_to_noise":{"type":"integer","description":"The signal to noise ratio of the device in dBm.","example":32},"signal_quality":{"type":"integer","description":"The signal quality of the device in dBm.","example":30}}},"ArrayOfWiFiDevices":{"type":"array","items":{"$ref":"#/components/schemas/WiFiDevice"}},"Service":{"type":"object","required":["customer_id","product_id","premise_id"],"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the service."},"customer_id":{"type":"string","format":"uuid","description":"The unique identifier for the customer associated with the service."},"product_id":{"type":"string","format":"uuid","description":"The unique identifier for the product associated with the service."},"premise_id":{"type":"string","format":"uuid","description":"The unique identifier for the premise associated with the service."},"provider_id":{"type":"string","format":"uuid","description":"The unique identifier for the service provider associated with the service."},"preorder":{"type":"boolean","description":"A flag indicating whether this is a pre-order."},"isp_reference":{"type":"string","description":"Free-form text value used by ISPs to reference the service."},"reference_code":{"type":"string","description":"Free-form text value used by clients to add a referral or reference to the service."},"port_number":{"type":"string","description":"The ONT port on which the service should be configured. Leave blank to use the product-specified port. Can have values like 1-4 or 2,3 to denote multiple ports."},"provisioned_date":{"type":"string","format":"date","description":"The date the service was provisioned by the ISP. This needs to occur before installation can commence."},"on_network_date":{"type":"string","format":"date","description":"The date the service became active on the network. This is when the installation completes."},"completed_date":{"type":"string","format":"date","description":"The date the service was activated by the ISP."},"cancelled_date":{"type":"string","format":"date","description":"The date the service was set to be terminated from the network."},"expiry_date":{"type":"string","format":"date","description":"The date the service was set to expire from the network."},"deleted_at":{"type":"string","format":"date","description":"The date the service was terminated from the network."},"created_at":{"type":"string","format":"date","description":"The date the account was created."}}},"ServicePayment":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the payment."},"redirect_url":{"type":"string","format":"uri","description":"The URL the user will be redirected to after completing the payment. The same URL will be used for both successful and failed payments.\n"},"voucher_count":{"type":"integer","description":"The number of vouchers to purchase for vouchered accounts. Can only be used for vouchered accounts. Is mutually exclusive with recurring_payment_date.\n"},"recurring_payment_date":{"type":"integer","enum":[1,16,21,26],"description":"The date on which payments should be processed for recurring accounts. Can only be used for recurring accounts. Is mutually exclusive with voucher_count.\n"}}},"ArrayOfServices":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"FSANRecapture":{"type":"object","required":["serial_number"],"additionalProperties":false,"properties":{"id":{"type":"number","description":"The unique identifier for the FSAN recapture."},"serial_number":{"type":"string","description":"The serial number for the FSAN recapture."},"first_name":{"type":"string","description":"The first name for the FSAN recapture."},"last_name":{"type":"string","description":"The last name for the FSAN recapture."},"email":{"type":"string","description":"The email for the FSAN recapture."},"mobile":{"type":"string","description":"The mobile for the FSAN recapture."},"premise_line_1":{"type":"string","description":"The premise line 1 for the FSAN recapture."},"premise_line_2":{"type":"string","description":"The premise line 2 for the FSAN recapture."},"premise_suburb":{"type":"string","description":"The premise suburb for the FSAN recapture."},"premise_city":{"type":"string","description":"The premise city for the FSAN recapture."},"product":{"type":"string","description":"The product for the FSAN recapture."},"provider_id":{"type":"string","format":"uuid","description":"The provider id for the FSAN recapture."},"status":{"type":"string","description":"The status of the FSAN recapture."},"scheduled_for":{"type":"string","format":"date","description":"When the service should be moved to the Internal Network."},"processed":{"type":"boolean","description":"The processed for the FSAN recapture."},"restore_config_id":{"type":"boolean","description":"The restore config id for the FSAN recapture."},"capture_config_id":{"type":"boolean","description":"The capture config id for the FSAN recapture."},"created_at":{"type":"string","format":"date","description":"The created date for the FSAN recapture."},"updated_at":{"type":"string","format":"date","description":"The updated date for the FSAN recapture."}}},"ArrayOfFSANRecapture":{"type":"array","items":{"$ref":"#/components/schemas/FSANRecapture"}},"FSANRecaptureList":{"type":"object","required":["items","page","count","total"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfFSANRecapture"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":1}}},"SpeedTest":{"type":"object","required":["service_id","asset_reference","port_number","created_at","updated_at"],"additionalProperties":false,"properties":{"id":{"type":"number","description":"The unique identifier for the test."},"work_order_id":{"type":"string","format":"uuid","description":"The unique identifier for the work order."},"user_agent":{"type":"string"},"up_speed_average":{"type":"string"},"down_speed_average":{"type":"string"},"iterations":{"type":"number","format":"int"},"passed":{"type":"boolean"},"initial_configuration":{"type":"string"},"final_configuration":{"type":"string"},"service_id":{"type":"string","format":"uuid","description":"The unique identifier of the service that should be changed.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"asset_reference":{"type":"string","description":"The serial number of reference of the asset associated with a premise."},"port_number":{"type":"number","description":"The ONT port on which the service should be configured. Leave blank to use the product specified port. Can be values like 1-4 or 2,3 to denote multiple ports."},"created_at":{"type":"string","format":"date","description":"The date the test was created."},"updated_at":{"type":"string","format":"date","description":"The date the tests was updated."},"closed_at":{"type":"string","format":"date","description":"The date the tests was closed."},"product_speed_up":{"type":"integer","description":"The up speed of the service product"},"product_speed_down":{"type":"integer","description":"The down speed of the service product"}}},"ArrayOfSpeedTest":{"type":"array","items":{"$ref":"#/components/schemas/SpeedTest"}},"SpeedTestList":{"type":"object","required":["items","page","count","total"],"additionalProperties":false,"properties":{"items":{"$ref":"#/components/schemas/ArrayOfSpeedTest"},"page":{"type":"integer","example":1},"count":{"type":"integer","example":10},"total":{"type":"integer","example":1}}},"ServicePriceOverride":{"type":"object","required":["value_excluding_tax","tax_percentage","product_price_id","price_type_id","service_id","comment","start_date"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier for the price override."},"value_excluding_tax":{"type":"number","description":"The price excluding tax."},"tax_percentage":{"type":"number","description":"The tax percentage applied."},"product_price_id":{"type":"string","format":"uuid","description":"The unique identifier for the product price."},"price_type_id":{"type":"number","description":"The type of price."},"service_id":{"type":"string","format":"uuid","description":"The unique identifier of the service that should be changed.","example":"e5ed6f98-6798-4283-9b00-600df3a01cf2"},"created_at":{"type":"string","format":"date-time","description":"The date and time the price override was created."},"updated_at":{"type":"string","format":"date-time","description":"The date and time the price override was last updated."},"created_by":{"type":"string","format":"uuid","description":"The user who created the price override."},"last_updated_by":{"type":"string","format":"uuid","description":"The user who last updated the price override."},"category":{"type":"string","description":"The category of the price override."},"reference_number":{"type":"string","description":"The reference number associated with the price override."},"birthdate":{"type":"string","format":"date-time","description":"The birthdate associated with the price override."},"comment":{"type":"string","description":"A comment associated with the price override."},"start_date":{"type":"string","format":"date-time","description":"The start date of the price override."},"end_date":{"type":"string","format":"date-time","description":"The end date of the price override."}}},"ArrayOfServicePriceOverrides":{"type":"array","items":{"$ref":"#/components/schemas/ServicePriceOverride"}}}}}