---
title: "Consume one access right of a fare contract"
method: POST
path: "/v1/customer-accounts/{customerAccountId}/fare-contracts/{fareContractId}/consume"
tags: ["Internal"]
---

# Consume one access right of a fare contract

`POST /v1/customer-accounts/{customerAccountId}/fare-contracts/{fareContractId}/consume`

## Request

- Base URL: `https://abt-integration-entur-production.entur.io`
- URL: `https://abt-integration-entur-production.entur.io/v1/customer-accounts/{customerAccountId}/fare-contracts/{fareContractId}/consume`
- Auth: none declared

Consumes (activates) one of the consumable customer purchase package elements of a fare contract, e.g. one clip of a carnet (klippekort). Consumption is done with activation means USE_OF_MOBILE_DEVICE.

## Path parameters

- `customerAccountId` string, required
- `fareContractId` string, required

## Request body

- ConsumeFareContractRequest
  - `validableElementId` string, required: elementId on validableElement in context of an order. Identifies which customer purchase package element (e.g. which klippekort) to consume, as a fare contract may contain several.

## Response `200`

OK

- ConsumeFareContractResponse
  - `fareContractRef` string, required
  - `consumedElementAccesses` ConsumedElementAccess[], required
    - `elementAccessId` string, required
    - `customerPurchasePackageElementRef` string, required
    - `startOfValidity` string, date-time
    - `endOfValidity` string, date-time
  - `remainingNumberOfAccesses` integer: Number of accesses left on the consumed element after this consumption. Not set if the number of accesses is unlimited or unknown.

## Other responses

- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

---

[API](https://skmtc.dev/entur/apis/abt-integration-entur-api.md) - [All operations](https://skmtc.dev/entur/apis/abt-integration-entur-api/llms.txt) - [OpenAPI document](https://skmtc.dev/entur/apis/abt-integration-entur-api/revisions/dfc1ed85250a?raw)
