---
title: "POST /discount-card-product/set-vendor-marketing-preference"
method: POST
path: "/discount-card-product/set-vendor-marketing-preference"
---

# POST /discount-card-product/set-vendor-marketing-preference

`POST /discount-card-product/set-vendor-marketing-preference`

## Request

- Base URL: `https://thetrainline.com` (the document declares no server; this is the origin it was published from)
- URL: `https://thetrainline.com/discount-card-product/set-vendor-marketing-preference`
- Auth: none declared

## Request body

- object
  - `discountCardConsent` boolean, required
  - `productIds` string[], required

## Response `200`

OK

- object
  - `data` object[]
    - `id` string
    - `marketingOptIn` boolean

---

[API](https://skmtc.dev/thetrainline/apis/trainline-desktop-api.md) - [All operations](https://skmtc.dev/thetrainline/apis/trainline-desktop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/thetrainline/apis/trainline-desktop-api/revisions/754b48400e9d?raw)
