# Get marketing consent by ID

Get a single marketing consent by its unique identifier.

Endpoint: GET /v1/marketing-consents/{consentId}
Security: OAuth2

## Path parameters:

  - `consentId` (string, required)
    The unique identifier of the marketing consent.

## Response 200 fields (application/json):

  - `id` (string, required)
    The unique identifier for this marketing consent record.

  - `company_id` (string, required)
    The company's unique ID.

  - `full_name` (string, required)
    The full name of the person who has given marketing consent.

  - `email` (string, required)
    The email of the person who has given marketing consent.

  - `source` (string, required)
    The source from which the consent was given.

  - `references` (array) — one of (discriminator: type):
    Typed references to related entities. Consumers can use these to
fetch additional details (e.g., customer info from the booking).
Absent for legacy consents.
    - STOREFRONT:
      - `type` (string, required)
        Discriminator value identifying this as a storefront reference.
        Enum: "STOREFRONT"
      - `id` (string, required)
        The unique identifier of the storefront.
    - BOOKING:
      - `type` (string, required)
        Discriminator value identifying this as a booking reference.
        Enum: "BOOKING"
      - `id` (string, required)
        The unique identifier of the booking.
    - ORDER:
      - `type` (string, required)
        Discriminator value identifying this as an order reference.
        Enum: "ORDER"
      - `id` (string, required)
        The unique identifier of the order.

## Response 400 fields (application/json):

  - `message` (string, required)

  - `code` (string, required)


