Fulfillments

Activates a fulfillment, i.e. changes the status from AVAILABLE to FULFILLED.

Changed on

Changes the fulfillment from status AVAILABLE to FULFILLED. In the case of multi-trip product with usage quota, the fulfillment must be referenced in booking of a trip to produce Fulfillment related to that trip that uses quota of the multi-journey product.

patch/fulfillments/{fulfillmentId}

Request

  • Base URL
    https://s3p-osdm.cloud.sqills.com
  • Auth
    OAuth 2
    Client credentials
    Token URLhttps://login.microsoftonline.com/tbd

Path parameters

fulfillmentIdstring required

Headers

Requestorstring

The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred.

Accept-Languagestring

Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must.

traceparentstring

The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context).

tracestatestring

The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context).

Idempotency-Keystring uuid

The HTTP Idempotency request header field can be used to carry idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Servers should keep the idempotency key for as long as the result of the underlying operation is valid. Idempotency keys should be globally unique.

x-accept-namespacestring

The x-accept-namespace HTTP header indicates the URN namespace that the client prefers. The provider uses content-negotiation to apply the corresponding namespace(s) where applicable.

Request body

selectedZoneIdsstring[] nullable
travelDatesstring[] nullable
startOfUsagestring date-time nullable required
stockControlNumbersstring[] nullable

The ids of the secure paper stock that identifies the blank secure paper stock used for printing.

The stock control number is only used for secure paper stock and triggers a printing of the stock control number in the ticket layout. This establishes a link between paper stock and ticket that is used to control the usage of blank secure paper stock at offices as secure paper has otherwise no intrinsic protection against internal fraud.

Response

fulfillment patched

Example response

{
  "warnings": {
    "warnings": [
      {
        "type": "https://example.com/warns/price-updated",
        "detail": "The price of the given offer part has been updated during the booking operation",
        "instance": "offers/offer1234"
      }
    ]
  },
  "problems": [
    {
      "type": "https://example.com/probs/passenger-too-young",
      "title": "Service Unavailable",
      "status": 503,
      "detail": "Connection to database timed out",
      "pointers": [
        {
          "type": "https://example.com/probs/passenger-too-young",
          "title": "Service Unavailable",
          "status": 503,
          "detail": "Connection to database timed out",
          "requestPointer": "#/offers[1]/placeSelections[1]/reservationId",
          "responsePointer": "#/booking/bookedOffers[4]/reservations[1]/id",
          "originator": "IMS1"
        }
      ],
      "alternativeSystemProposals": [
        {
          "reservationSystemId": 80,
          "scope": [
            {
              "vehicleNumber": "462"
            }
          ],
          "priority": 1
        }
      ]
    }
  ],
  "fulfillment": {
    "bookingParts": [
      {
        "_links": [
          {
            "rel": "self",
            "type": "application/json"
          }
        ]
      }
    ],
    "availableUsage": {
      "availableZones": [
        {
          "polygon": {
            "edges": [
              {
                "longitude": 8.54021,
                "latitude": 47.37818
              }
            ]
          }
        }
      ]
    },
    "continuousServiceUsage": {
      "geoPosition": {
        "longitude": 8.54021,
        "latitude": 47.37818
      }
    },
    "billingReferences": [
      {
        "price": {
          "currency": "CHF",
          "vats": [
            {
              "countryCode": "DE",
              "amount": 5,
              "netAmount": 5,
              "grossAmount": 5
            }
          ],
          "appliedCurrencyConversion": {
            "originalCurrency": "CHF",
            "originalVats": [
              {
                "countryCode": "DE",
                "amount": 5,
                "netAmount": 5,
                "grossAmount": 5
              }
            ]
          }
        }
      }
    ],
    "_links": [
      {
        "rel": "self",
        "type": "application/json"
      }
    ]
  }
}

Changes