> ## Documentation Index
> Fetch the complete documentation index at: https://help.lobyco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deactivate coupon

> Deactivation sends coupon deactivation information to client Coupon or POS integration layer,
making it unavailable for pick-up in store.



## OpenAPI

````yaml openapi/promotion-v2.json POST /v2/coupons/{couponId}/deactivate
openapi: 3.0.4
info:
  title: Offer (Promotion) Api
  version: v2
servers:
  - url: https://{host}/promotion
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v2/coupons/{couponId}/deactivate:
    post:
      tags:
        - Coupons
      summary: Deactivate coupon
      description: >-
        Deactivation sends coupon deactivation information to client Coupon or
        POS integration layer,

        making it unavailable for pick-up in store.
      parameters:
        - name: memberId
          in: header
          description: The id of the member.
          required: true
          schema:
            type: string
        - name: couponId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CouponIdResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebServiceError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebServiceError'
components:
  schemas:
    CouponIdResponse:
      required:
        - couponId
      type: object
      properties:
        couponId:
          maxLength: 50
          minLength: 1
          type: string
          description: ID of the impacted Coupon
      additionalProperties: false
    WebServiceError:
      required:
        - message
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
        message:
          minLength: 1
          type: string
        details:
          nullable: true
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````