Asset Model Number Verification REST API Interface
Resource URL Summary
Verify model number for a specified asset
POST <REST Endpoint URI>
HTTP Headers
ServiceMobility will set both of the Standard HTTP Headers when calling this REST API Interface.
That is:
- The
Content-Type
header will be set toapplication/json
; and - The
x-access-token
header will be set to the JWT that was used in the call to the API that triggered ServiceMobility to call the configured endpoint that implements this interface.
The x-access-token
header will either be the JWT issued by ServiceMobility, or by the endpoint that implements the Authentication REST API Interface that ServiceMobility has been configured to use.
Implementations of this interface may evaluate the JWT supplied, if required, but please note that ServiceMobility will have already authenticated the JWT in the initial API call before passing the call on to the configured endpoint.
API Specifics
Verify model number for a specified asset
This REST API must return the details of model number verification, based on the specified Asset Object.
URL
POST <REST Endpoint URI>
HTTP Request Body
The HTTP request body must contain a valid Asset Object.
HTTP Response
Response Codes
HTTP Code | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | OK. The verification for model number was successful. | ||||||||||||||||||||||||||||||||||||
400 | Bad Request. The server could not understand the request due to invalid data in the request. Asset Model Number Verification API will return following JSON response object. Response Object FormatsResponse Object Properties
| ||||||||||||||||||||||||||||||||||||
401 | Invalid Logon. | ||||||||||||||||||||||||||||||||||||
500 | Server error. An error occurred while processing the request. The HTTP response body should have more details as to the possible cause. |
On success, an HTTP response code of 200 must be returned, and the response body must contain a valid response body that is the same as would be returned from the Assets REST API.
ServiceMobility will return the response code (and response body, if present) as the response to the initiating Assets REST API call.