---
title: "Update validity for CPP element accesses of fare contracts"
method: POST
path: "/v1/customer-accounts/{customerAccountId}/update-validity"
tags: ["Internal"]
---

# Update validity for CPP element accesses of fare contracts

`POST /v1/customer-accounts/{customerAccountId}/update-validity`

## Request

- Base URL: `https://abt-integration-entur-production.entur.io`
- URL: `https://abt-integration-entur-production.entur.io/v1/customer-accounts/{customerAccountId}/update-validity`
- Auth: none declared

Update to new start- and end of validity on customer purchase package element accesses within a fare contract.

## Path parameters

- `customerAccountId` string, required

## Request body

- UpdateValidityRequest
  - `fareContractUpdates` FareContractValidityUpdate[], required
    - `fareContractId` string, required
    - `customerPurchasePackagesValidityUpdates` CustomerPurchasePackageValidityUpdate[], required
      - `orderLineId` string, required
      - `customerPurchasePackageElementValidityUpdate` CustomerPurchasePackageElementValidityUpdate[], required
        - `validableElementId` string, required: elementId on validableElement in context of an order.
        - `startOfValidity` string, date-time, required
        - `endOfValidity` string, date-time, required

## Response `200`

OK

- UpdateValidityResponse
  - `successfulValidityUpdates` SuccessfulCustomerPurchasePackageValidityUpdate[], required
    - `orderLineId` string, required
  - `failedValidityUpdates` FailedCustomerPurchasePackageValidityUpdate[], required
    - `orderLineId` string, required
    - `errorMessage` string, required

## Other responses

- `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)
