CreateDriverAssets
CreateDriverAssets
Overview
Allows you to add new Drivers' Asset/s.
HTTP Method
Use the HTTP Method 'POST' for consuming this web service.
Input Fields (Header)
Header should contain the 'Content-Type' Key with the Value = 'application/json' or 'application/hjson'.
Header should contain the 'Accept' Key with the Value = 'application/vnd.catch-e-api.v1+json, application/problem+json'
Input Fields (Body)
JSON Example
https://api.catch-e.com/fm/driver/assets/ [ { "driver_id": "101175", "finance_asset_type_id": "16238640163402548256", "amount": "77777.00", "description": "Matt Test Asset 1" }, { "driver_id": "101175", "finance_asset_type_id": "16238640163402548256", "amount": "88888.00", "description": "Matt Test Asset 2" } ] (Successful) Output Example (sample)
{ "driver_asset_id": 3196434310060077777, "driver_id": 101211, "finance_asset_type_id": 3196195708503877777, "amount": 77777, "ownership": "debt_free", "description": "Test Asset 1", "finance_asset_type_name": "Resident Property", "_links": { "self": { "href": "https://api.catch-e.com/fm/driver/assets/3196434310060077777" } } } Error Codes
Example error output
{ "validation_messages": { "amount": { "isEmpty": "Value is required and can't be empty" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" }Was this helpful?
Still need help? Ask the team