---
title: "start or end the usage of a continuous service of an demand vehicle"
method: PATCH
path: "/fulfillments/{fulfillmentId}/continuous-service-usage/{continuousServiceUsageId}"
tags: ["Fulfillments", "On-Demand Services"]
---

# start or end the usage of a continuous service of an demand vehicle

`PATCH /fulfillments/{fulfillmentId}/continuous-service-usage/{continuousServiceUsageId}`

## Request

- Base URL: `https://s3p-osdm.cloud.sqills.com`
- URL: `https://s3p-osdm.cloud.sqills.com/fulfillments/{fulfillmentId}/continuous-service-usage/{continuousServiceUsageId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://login.microsoftonline.com/tbd`

start or end the usage of a continuous service of an demand vehicle

## Path parameters

- `fulfillmentId` string, required
- `continuousServiceUsageId` string, required

## Headers

- `Requestor` string
- `Accept-Language` string
- `traceparent` string
- `tracestate` string
- `Idempotency-Key` string, uuid
- `x-accept-namespace` string

## Request body

- ContinuousServiceUsagePatchRequest: Usage of a continuous service vehicle
  - `id` string, required
  - `status` string, required: status of the usage of a vehicle
  - `parkingImage` string, byte: base64 encoded binary of the jpg image of the parked vehicle when ending the usage.
  - `tip` Tip2: Tips for staff can be included e.g. for taxi drivers. The tip is part of the payment in a post payment scenario.
    - `id` string, required
    - `summary` string: A human-readable description of the tip.
    - `bookingPartRef` BookingPartReference2: References all the booking part elements in an uniform format. In its part, a BookingPartReference can refer to reservation, admission, ancillary or fee.
      - `id` string, required
      - `summary` string, nullable: A human-readable description of the booking part reference.
      - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
        - `rel` string, required: the 'rel' field in HATEOAS navigation.
        - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
        - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
        - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
    - `price` Price2, required
      - `currency` string, required: ISO 4217 currency codes
      - `amount` integer, required: amount in cents
      - `scale` integer, nullable: scale of the amount - the number of positions after the comma
      - `vats` VAT2[]
        - `countryCode` string, required: ISO 3166-1 alpha-2 2 character country code
        - `amount` integer, required: VAT amount in cents
        - `scale` integer, nullable: scale of the amount - the number of positions after the comma
        - `netAmount` integer: amount before adding VAT
        - `netAmountScale` integer, nullable: scale of the netAmount - the number of positions after the comma
        - `grossAmount` integer: total amount after adding VAT in cents
        - `grossAmountScale` integer, nullable: scale of the grossAmount - the number of positions after the comma
        - `percentage` number, float, nullable
        - `taxId` string, nullable
        - `vatOnInvoice` boolean, nullable
        - `taxIdOnInvoice` boolean, nullable
        - `scope` string: scope where the VAT applies. Values from the [Tax Scope Code List](https://osdm.io/spec/catalog-of-code-lists/#VatScope) Listed values here are examples.
      - `appliedCurrencyConversion` CurrencyConversion2: details on a currency conversion applied
        - `description` string: description of the conversion, e.g. rate, rounding rules, reference to rules
        - `originalCurrency` string, required: ISO 4217 currency codes
        - `originalAmount` integer, required: amount in cents
        - `scale` integer, nullable: scale of the amount - the number of positions after the comma
        - `appliedRate` number
        - `originalVats` VAT2[]
          - `countryCode` string, required: ISO 3166-1 alpha-2 2 character country code
          - `amount` integer, required: VAT amount in cents
          - `scale` integer, nullable: scale of the amount - the number of positions after the comma
          - `netAmount` integer: amount before adding VAT
          - `netAmountScale` integer, nullable: scale of the netAmount - the number of positions after the comma
          - `grossAmount` integer: total amount after adding VAT in cents
          - `grossAmountScale` integer, nullable: scale of the grossAmount - the number of positions after the comma
          - `percentage` number, float, nullable
          - `taxId` string, nullable
          - `vatOnInvoice` boolean, nullable
          - `taxIdOnInvoice` boolean, nullable
          - `scope` string: scope where the VAT applies. Values from the [Tax Scope Code List](https://osdm.io/spec/catalog-of-code-lists/#VatScope) Listed values here are examples.
    - `distributorBookingRef` string, nullable: reference to the booking in the downstream distributor system
    - `accountingRef` AccountingRef2: reference to accounting data in case the accounting is not provided by the API provider
      - `accountingCompany` string, required: Identifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: 'urn:uic:rics:1185:000011'
      - `accountingIds` AccountingId[]: ids of accounting data used to link the booking part with accounting data in the billing send by the accounting company

## Response `200`

fulfillment patched

- ContinuousServiceUsage: Usage of a continuous service vehicle
  - `id` string, required
  - `status` string, required: status of the usage of a vehicle
  - `geoPosition` GeoPosition2: WGS84 coordinates position. Provided by OJP.
    - `longitude` number, double, required: Longitude from Greenwich Meridian. -180 (West) to +180 (East). Decimal degrees. eg 2.356.
    - `latitude` number, double, required: Latitude from equator. -90 (South) to +90 (North). Decimal degrees. e.g. 56.356.
  - `startUsageDescription` string, required: start usage procedure description
  - `endUsageDescription` string, required: end usage procedure description
  - `startUsageCredentials` FulfillmentDocument2: Document created for fulfillment. Either downloadLink + downloadExpiry or content must be provided.
    - `id` string: Technical reference. Required if referencing from fulfilment.fulfillmentDocumentRefs
    - `medium` string, required: Fulfillment types. RCT2, RCCST and UIC_PDF are official UIC standards. Notice:`ALLOCATOR_APP` is deprecated and should not be used anymore. The `ALLOCATOR_APP` type is replaced by the `RETAILER_APP` type. `DISTRIBUTOR_APP` was introduced to distinguish between the different types of apps that can be used to fulfill a booking. Values from the [Fulfillment Media Type Code List](https://osdm.io/spec/catalog-of-code-lists/#FulfillmentMediaType) Listed values here are examples.
    - `type` string, required: The type of fulfillment document. Values from the [Fulfillment Document Type Code List](https://osdm.io/spec/catalog-of-code-lists/#FulfillmentDocumentType)
    - `downloadLink` string, uri, nullable
    - `downloadExpiry` string, date-time, nullable: Expiration time of the download link, the document will not be available at the given URI after this time.
    - `content` string, byte, nullable: base64 encoded binary of the actual fulfillment document. The length restriction of 4 MBytes applies to the encoded string, so the raw document cannot exceed 3 MBytes in size. Preferred encoding is UTF-8.
    - `format` 'application/pdf' | 'application/vnd.apple.pkpass' | 'image/jpeg' | 'image/png' | 'text/calendar' | 'text/html' | 'application/json', required: Physical format of the document provided in the content field in Mime-Type format, e.g. application/pdf, image/jpeg, etc. Must be filled if the 'content' field is present.
    - `applicationProvider` string: Identifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: 'urn:uic:rics:1185:000011'
    - `controlNumber` string, nullable: Ticket Control Number. Used for secure paper stock of referencing tickets in fulfillment applications.
  - `startUsageTimeLimit` string, date-time: time limit to start the usage
  - `blockingFeeRef` string: id of the fee taken on blocking the vehicle
  - `tipRef` string: id of the tip provided to staff
  - `consumptionForPostPayment` IndicatedConsumption2
    - `unit` AbstractTravelAccountUnit2
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
    - `amount` integer, required
  - `remainingConsumptionFromPrePayment` IndicatedConsumption2
    - `unit` AbstractTravelAccountUnit2
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
    - `amount` integer, required
  - `estimatedTimeOfArrivalAtPickUpPlace` string, date-time

## Other responses

- `400`: Bad Request (400)
- `401`: Unauthorized (401)
- `403`: Forbidden (403)
- `404`: Not Found (404)
- `409`: Conflict (409)
- `415`: Unsupported Media Type (415)
- `500`: Internal Server Error (500)
- `501`: Not Implemented (501)
- `503`: Service Unavailable (503)
- `default`: default error response

## Changes

- **2026-10-22** `4b5d9b1df9c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/changes/fulfillments/:fulfillmentId/continuous-service-usage/:continuousServiceUsageId/patch.md)

---

[API](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm.md) - [All operations](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/llms.txt) - [OpenAPI document](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/revisions/f2e631e1357c?raw)
