{
  1. Introduction
  2. Version Control
  3. Ticket Shop Api
    1. Authentication
    2. Event
      1. Calculation Of Fees
    3. Discount Codes
    4. Calendar
      1. Time Slots Year Month
      2. Time Slots Year Month Day
    5. Reservation
      1. Create Reservation
      2. Update Reservation
    6. Checkout

Event

Get discount codes data for a specific event and given discount code.

GET https://api.cmtelecom.com/ticketingapi/v2.0/ticketshop/events/{event_uuid}/discountcodes/{code}?key=KEY123

GET Parameters

Type Name Description Required Example
Header X-CM-PRODUCTTOKEN The product token. True 00000000-0000-0000-0000-000000000000
Header Content-Type The content type which the application expects. True application/json
Path Variable event_uuid The UUID of an event can be retrieved from the Ticketing Dashboard. True 00000000-0000-0000-0000-000000000000
Query Parameter key In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API. False KEY123
Path Variable code The discount code you want to check. True DISCOUNT123

Response

Http status Description Example
200 Successful operation Discount Code Object
400 Bad request Info Message

Response: Discount Code Object

{
    "code": "DISCOUNT123"
    "fixed_balance": 0,
    "percentage": 0,
    "capacity": 100,
    "stock": 93,
    "discount_type_id": "DISCOUNT_TICKET_TYPE",
    "description": {
        "nl": "Korting",
        "en": "Discount",
        "fr": "Code promotionnel",
        "de": "Rabatt"
    },
    "ticket_types": [
        {
            "uuid": "00000000-0000-0000-0000-000000000000",
            "max_order_amount": 1,
            "fixed_balance": 2
        },
        {
            "uuid": "00000000-0000-0000-0000-000000000000",
            "max_order_amount": 2,
            "fixed_balance": 5
        }
    ]
}