{ "opencollection": "1.0.0", "info": { "name": "Autopay Accounting Fleet API", "version": "1.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Fleet", "type": "folder" }, "items": [ { "info": { "name": "Retrieve all fleet vehicles", "type": "http" }, "http": { "method": "GET", "url": "https://api.autopay.io/fleet/v2/vehicles", "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieve all fleet vehicles" }, { "info": { "name": "Add a vehicle to the fleet", "type": "http" }, "http": { "method": "POST", "url": "https://api.autopay.io/fleet/v2/vehicles", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Add a vehicle to the fleet" }, { "info": { "name": "Remove a vehicle from the fleet", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.autopay.io/fleet/v2/vehicles", "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Remove a vehicle from the fleet" }, { "info": { "name": "Detach vehicle from all user profiles", "type": "http" }, "http": { "method": "POST", "url": "https://api.autopay.io/fleet/v2/vehicles/detach", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Detach vehicle from all user profiles" }, { "info": { "name": "Retrieve all parkings and toll road passings", "type": "http" }, "http": { "method": "GET", "url": "https://api.autopay.io/fleet/v2/services", "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieve all parkings and toll road passings" }, { "info": { "name": "Retrieve services filtered by update timestamp", "type": "http" }, "http": { "method": "GET", "url": "https://api.autopay.io/fleet/v2/services/by_updated_at", "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieve services filtered by update timestamp" }, { "info": { "name": "Retrieve services for a specific vehicle", "type": "http" }, "http": { "method": "GET", "url": "https://api.autopay.io/fleet/v2/vehicles/services", "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieve services for a specific vehicle" }, { "info": { "name": "Lock payments for unpaid services", "type": "http" }, "http": { "method": "POST", "url": "https://api.autopay.io/fleet/v2/vehicles/disable_payments", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api-auth.autopay.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Lock payments for unpaid services" } ] } ], "bundled": true }