Helloasso Codes promotionnels API

Gestion des codes promotionnels des évènements. Un code promotionnel est un code qui permet d'appliquer une réduction sur le prix d'un billet pour un évènement.

GitHub OpenAPI

Operations 5

GET /v1/organizers/{organizerId}/events/{eventId}/discounts List Codes promotionnels #
POST /v1/organizers/{organizerId}/events/{eventId}/discounts Create Codes promotionnels #
GET /v1/organizers/{organizerId}/events/{eventId}/discounts/{discountId} Get Codes promotionnels #
PATCH /v1/organizers/{organizerId}/events/{eventId}/discounts/{discountId} Update Codes promotionnels #
DELETE /v1/organizers/{organizerId}/events/{eventId}/discounts/{discountId} Delete Codes promotionnels #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/helloasso:helloasso-codes-promotionnels-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

helloasso-codes-promotionnels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Plusbilletterie Codes promotionnels API
  version: 1.0.0
  description: 'Authentication: send your API key in the Authorization header using the format `X-API-KEY YOUR_API_KEY`.


    Each API key is tied to a single organization. A key cannot manage multiple organizations.


    API keys can be generated from the organization dashboard (Developer tab).'
servers:
- url: https://api.plusbilletterie.helloasso.com
security:
- ApiKeyAuth: []
tags:
- name: Codes promotionnels
  description: Gestion des codes promotionnels des évènements. Un code promotionnel est un code qui permet d'appliquer une réduction sur le prix d'un billet pour un évènement.
  x-tag-schema:
    $ref: '#/components/schemas/discount'
  x-tag-schema-example:
    amount: 0
    name: x
    _id: 64b7f8b6f23a4a4f3d0a9b12
    _createdAt: '2024-01-01T00:00:00.000Z'
paths:
  /v1/organizers/{organizerId}/events/{eventId}/discounts:
    get:
      tags:
      - Codes promotionnels
      summary: List Codes promotionnels
      parameters:
      - name: organizerId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: eventId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: filters
        in: query
        required: false
        description: 'JSON array of filter objects. Example: [{"status":"active"}]'
        schema:
          type: string
        example: '[{"status":"active"}]'
      - name: filtersLogical
        in: query
        required: false
        description: Logical operator applied to filters.
        schema:
          type: string
          enum:
          - $and
          - $or
          - $nor
        example: $and
      - name: limit
        in: query
        required: false
        description: Maximum number of items to return.
        schema:
          type: integer
          minimum: 0
        example: 25
      - name: skip
        in: query
        required: false
        description: Number of items to skip.
        schema:
          type: integer
          minimum: 0
        example: 0
      - name: startId
        in: query
        required: false
        description: Start listing after this object id.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: sort
        in: query
        required: false
        description: 'Sort spec as JSON string. Example: {"_createdAt":"desc"}.'
        schema:
          type: string
        example: '{"_createdAt":"desc"}'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/discount'
                  metadata:
                    type: object
                  _type:
                    type: string
                    example: discount
      operationId: getV1OrganizersByOrganizerIdEventsByEventIdDiscounts
      x-operation-id-source: derived
    post:
      tags:
      - Codes promotionnels
      summary: Create Codes promotionnels
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/discount'
      parameters:
      - name: organizerId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: eventId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/discountCreate'
            example:
              amount: 0
              name: x
      operationId: postV1OrganizersByOrganizerIdEventsByEventIdDiscounts
      x-operation-id-source: derived
  /v1/organizers/{organizerId}/events/{eventId}/discounts/{discountId}:
    get:
      tags:
      - Codes promotionnels
      summary: Get Codes promotionnels
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/discount'
      parameters:
      - name: organizerId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: eventId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: discountId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      operationId: getV1OrganizersByOrganizerIdEventsByEventIdDiscountsByDiscountId
      x-operation-id-source: derived
    patch:
      tags:
      - Codes promotionnels
      summary: Update Codes promotionnels
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/discount'
      parameters:
      - name: organizerId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: eventId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: discountId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/discountUpdate'
            example:
              amount: 0
      operationId: patchV1OrganizersByOrganizerIdEventsByEventIdDiscountsByDiscountId
      x-operation-id-source: derived
    delete:
      tags:
      - Codes promotionnels
      summary: Delete Codes promotionnels
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      parameters:
      - name: organizerId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: eventId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      - name: discountId
        in: path
        required: true
        description: Resource identifier.
        schema:
          type: string
          format: objectId
        example: 64b7f8b6f23a4a4f3d0a9b12
      operationId: deleteV1OrganizersByOrganizerIdEventsByEventIdDiscountsByDiscountId
      x-operation-id-source: derived
components:
  schemas:
    discountCreate:
      type: object
      properties:
        amount:
          type: number
          minimum: 0
          description: Montant de la réduction, il s'agit d'un pourcentage entre 0 et 1 si le type est 'ratio' ou d'un montant fixe en centime si le type est 'fixed'.
          example: 0
        name:
          anyOf:
          - type: string
            minLength: 1
            example: x
          - type: number
            example: 0
          description: Nom de la réduction, doit être unique au sein de l'évènement
        status:
          nullable: true
          type: string
          enum:
          - enabled
          - disabled
          example: enabled
        type:
          nullable: true
          type: string
          enum:
          - ratio
          - fixed
          example: ratio
        rules:
          description: Règles d'application du discount. Si null, le discount peut s'appliquer à tous les produits
          nullable: true
          type: array
          items:
            type: object
            properties:
              scope:
                type: string
                enum:
                - optional
                - mandatory
                description: Règle d'application sur les steps obligatoires / optionnelles
                example: optional
              productIds:
                type: array
                items:
                  type: string
                  minLength: 24
                  maxLength: 24
                  format: objectId
                  example: 64b7f8b6f23a4a4f3d0a9b12
                description: Liste des produits sur lesquels le discount peut s'appliquer. Uniquement si sellingItemIds est null. Si null, le discount peut s'appliquer à tous les produits
            required:
            - scope
            - productIds
        sellingItemIds:
          description: Liste des sellingItems sur lesquels le discount s'applique. Null si s'applique sur tous
          nullable: true
          type: array
          items:
            type: string
            minLength: 24
            maxLength: 24
            format: objectId
            example: 64b7f8b6f23a4a4f3d0a9b12
        maxCount:
          description: Nombre maximal de fois où le discount peut être utilisé. Null si illimité
          nullable: true
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          example: -9007199254740991
        metadata:
          type: object
          additionalProperties: {}
      required:
      - amount
      - name
    discountUpdate:
      type: object
      properties:
        amount:
          type: number
          minimum: 0
          description: Montant de la réduction, il s'agit d'un pourcentage entre 0 et 1 si le type est 'ratio' ou d'un montant fixe en centime si le type est 'fixed'.
          example: 0
        name:
          anyOf:
          - type: string
            minLength: 1
            example: x
          - type: number
            example: 0
          description: Nom de la réduction, doit être unique au sein de l'évènement
        status:
          nullable: true
          type: string
          enum:
          - enabled
          - disabled
          example: enabled
        type:
          nullable: true
          type: string
          enum:
          - ratio
          - fixed
          example: ratio
        rules:
          description: Règles d'application du discount. Si null, le discount peut s'appliquer à tous les produits
          nullable: true
          type: array
          items:
            type: object
            properties:
              scope:
                type: string
                enum:
                - optional
                - mandatory
                description: Règle d'application sur les steps obligatoires / optionnelles
                example: optional
              productIds:
                type: array
                items:
                  type: string
                  minLength: 24
                  maxLength: 24
                  format: objectId
                  example: 64b7f8b6f23a4a4f3d0a9b12
                description: Liste des produits sur lesquels le discount peut s'appliquer. Uniquement si sellingItemIds est null. Si null, le discount peut s'appliquer à tous les produits
            required:
            - scope
            - productIds
        sellingItemIds:
          description: Liste des sellingItems sur lesquels le discount s'applique. Null si s'applique sur tous
          nullable: true
          type: array
          items:
            type: string
            minLength: 24
            maxLength: 24
            format: objectId
            example: 64b7f8b6f23a4a4f3d0a9b12
        maxCount:
          description: Nombre maximal de fois où le discount peut être utilisé. Null si illimité
          nullable: true
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          example: -9007199254740991
        metadata:
          type: object
          additionalProperties: {}
    OperationResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        referenceType:
          type: string
          example: string
        referenceId:
          type: string
          format: objectId
          example: 64b7f8b6f23a4a4f3d0a9b12
        operationType:
          type: string
          enum:
          - delete
          example: delete
      required:
      - success
      - referenceType
      - referenceId
      - operationType
    discount:
      type: object
      properties:
        amount:
          type: number
          minimum: 0
          description: Montant de la réduction, il s'agit d'un pourcentage entre 0 et 1 si le type est 'ratio' ou d'un montant fixe en centime si le type est 'fixed'.
          example: 0
        name:
          anyOf:
          - type: string
            minLength: 1
            example: x
          - type: number
            example: 0
          description: Nom de la réduction, doit être unique au sein de l'évènement
        status:
          nullable: true
          type: string
          enum:
          - enabled
          - disabled
          example: enabled
        type:
          nullable: true
          type: string
          enum:
          - ratio
          - fixed
          example: ratio
        rules:
          description: Règles d'application du discount. Si null, le discount peut s'appliquer à tous les produits
          nullable: true
          type: array
          items:
            type: object
            properties:
              scope:
                type: string
                enum:
                - optional
                - mandatory
                description: Règle d'application sur les steps obligatoires / optionnelles
                example: optional
              productIds:
                type: array
                items:
                  type: string
                  minLength: 24
                  maxLength: 24
                  format: objectId
                  example: 64b7f8b6f23a4a4f3d0a9b12
                description: Liste des produits sur lesquels le discount peut s'appliquer. Uniquement si sellingItemIds est null. Si null, le discount peut s'appliquer à tous les produits
            required:
            - scope
            - productIds
        sellingItemIds:
          description: Liste des sellingItems sur lesquels le discount s'applique. Null si s'applique sur tous
          nullable: true
          type: array
          items:
            type: string
            minLength: 24
            maxLength: 24
            format: objectId
            example: 64b7f8b6f23a4a4f3d0a9b12
        maxCount:
          description: Nombre maximal de fois où le discount peut être utilisé. Null si illimité
          nullable: true
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          example: -9007199254740991
        metadata:
          type: object
          additionalProperties: {}
        _id:
          type: string
          format: objectId
          example: 64b7f8b6f23a4a4f3d0a9b12
        _createdAt:
          type: string
          format: date-time
          example: '2024-01-01T00:00:00.000Z'
        _updatedAt:
          type: string
          format: date-time
          nullable: true
          example: '2024-01-01T00:00:00.000Z'
        _reference:
          type: string
          nullable: true
          example: string
      required:
      - amount
      - name
      - _id
      - _createdAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Use the format `X-API-KEY YOUR_API_KEY`. Each key is tied to a single organization.