Get service
const url = 'https://api-uat.flinkey.de/v3/services/1';const options = { method: 'GET', headers: { 'Customer-ID': 'example', 'flinkey-API-Key': '<flinkey-API-Key>', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-uat.flinkey.de/v3/services/1 \ --header 'Authorization: Bearer <token>' \ --header 'Customer-ID: example' \ --header 'flinkey-API-Key: <flinkey-API-Key>'Purpose
Retrieve one specific service by service ID in the selected customer context.
A service represents the contract or service relationship associated with a flinkey product.
Use this operation for operational lookup, reconciliation and support workflows where service-level information is required.
In standard developer integrations, partner backends usually work primarily with Car, User and Assignment.
When to use this operation
Use this operation when the partner backend needs to retrieve one specific service.
Typical situations:
- validating a service reference,
- checking the assigned product ID,
- checking whether a service is terminated,
- retrieving service termination date,
- retrieving service termination cause,
- supporting operational troubleshooting,
- reconciling service information with partner or support records.
Do not treat Service as the primary access permission object.
Access permissions are managed through assignments between User and Car.
Validation notes
- Active and terminated service objects were retrieved successfully with
200 OK. namecan be a string ornull.- An active service returned a numeric
productId,isTerminated: falseand null termination fields. - A terminated service returned
productId: null,isTerminated: true, a populatedterminationDateandterminationCause: ServiceIsNotNeededAnymore. - Collection-style OData options returned
400 Bad Requestbecause the resource is not a collection.
Async behavior
Synchronous.
The service is returned directly in the API response.
Webhook result
No.
This operation does not produce a webhook result.
Security notes
Never log:
flinkey-API-Key,- bearer token,
- full request headers.
Service and product identifiers are environment-specific.
Do not mix UAT and PROD service IDs or product IDs.
Use placeholders in documentation, examples, screenshots and AI prompts.
For standard partner integrations, the mobile app must not receive API Manager credentials, backend bearer tokens or the flinkey-API-Key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Database ID of the service
Header Parameters
Section titled “Header Parameters”Customer database ID
Responses
Section titled “Responses”Service was retrieved successfully
object
Service database ID
Service name, if available
Product database ID assigned to the service
Indicates whether the service is terminated
Service termination date in date-time format, if available
Termination cause, if available
Example
{ "id": 11111, "name": "flinkey Access", "productId": 67890, "isTerminated": false, "terminationDate": null, "terminationCause": null}Invalid subscription key or missing / invalid access token
Recommended handling: Check flinkey-API-Key, bearer token and environment configuration
API Manager, customer context or service was not found
Recommended handling: Check credentials, Customer-ID and local serviceId reference
Server-side error
Recommended handling: Retry later if appropriate and escalate if persistent
