# Get Account Barcodes

Use this endpoint to get list of the barcodes based on your account configuration.

> 📘 Response Header
>
> * x-tf-pagination-take: int, 100
> * x-tf-pagination-total: int (The total number of barcodes associated with the event)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "General Admission Partner API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.ticketing.cm.com/partnerapi/v1.0"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/barcodes": {
      "get": {
        "summary": "Get Account Barcodes",
        "description": "Use this endpoint to get list of the barcodes based on your account configuration.",
        "operationId": "get-account-barcodes",
        "parameters": [
          {
            "name": "product_sub_type",
            "in": "query",
            "description": "ACCOMODATION,ENTRANCE_TICKET,FOOD_AND_BEVERAGE,LOCKERS,MERCHANDISE,OTHER,PARKING,TOKENS,TRANSPORTATION",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-TF-PAGINATION-SKIP",
            "in": "header",
            "description": "Once you've called the endpoint, you'll get the first 20 items. In this header you can define the amount of items to skip for the next page.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "event_uuid",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "status",
            "in": "query",
            "description": "COMPLETED, CANCELLED, REFUNDED, RESELL_SOLD",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ticket_type_uuid",
            "in": "query",
            "description": "The result can be filtered based on the ticket type UUID, and you can also send multiple ticket types separated by \",\".",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "issued_at_range",
            "in": "query",
            "description": "Example: 2021-03-22T14:30:00,2021-03-30T17:45:00 (time is represented in UTC)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "[\n\t{\n\t\t\"uuid\": \"00000000-0000-0000-0000-000000000000\",\n\t\t\"barcode_id\": \"XXXXXXXXX\",\n\t\t\"external_barcode_id\": null,\n\t\t\"expire_at\": null,\n\t\t\"created_at\": \"2023-01-17T10:32:04+00:00\",\n\t\t\"order_id\": \"YXCYYYYY\",\n\t\t\"personalized_at\": null,\n\t\t\"canceled_at\": null,\n    \"used_discount_code_id\": \"CMDISCOUNTCODEID\",\n    \"used_discount_code_external_id\" : \"EXTERNAL_CMDISCOUNTCODEID\",\n    \"used_access_key_id\": \"CMACCESSKEYID\",\n    \"scan_count\": 1,\n    \"last_scanned_at\": \"2023-01-17T10:32:04+00:00\",\n\t\t\"status\": \"COMPLETED\",\n\t\t\"ticket_type_price_incl_vat\": 0,\n\t\t\"ticket_type_price_with_discount_incl_vat\": 0,\n    \"currency_id\": \"EUR\",\n\t\t\"customer_data\": {\n\t\t\t\"uuid\": \"00000000-0000-0000-0000-000000000000\",\n\t\t\t\"first_name\": \"John\",\n\t\t\t\"last_name\": \"Doeh\",\n\t\t\t\"email\": \"john.doeh@cm.com\",\n\t\t\t\"mobile\": null\n\t\t},\n\t\t\"ticket_type\": {\n\t\t\t\"uuid\": \"00000000-0000-0000-0000-000000000000\",\n\t\t\t\"name\": {\n\t\t\t\t\"nl\": \"Beer \\/ Soft Drinks\",\n\t\t\t\t\"en\": \"Beer \\/ Soft Drinks\",\n\t\t\t\t\"fr\": \"Beer \\/ Soft Drinks\",\n\t\t\t\t\"de\": \"Beer \\/ Soft Drinks\",\n\t\t\t\t\"ar\": \"Beer \\/ Soft Drinks\",\n\t\t\t\t\"es\": \"Beer \\/ Soft Drinks\"\n\t\t\t},\n\t\t\t\"ticket_product_sub_type\": \"FOOD_AND_BEVERAGE\",\n\t\t\t\"is_checkin_allowed\": true,\n\t\t\t\"validation_max_checkins\": 1,\n\t\t\t\"sales_from\": null,\n\t\t\t\"sales_until\": null,\n\t\t\t\"valid_from\": null,\n\t\t\t\"valid_until\": null,\n\t\t\t\"ticket_type_price_incl_vat\": 12,\n      \"external_id_1\": null,\n      \"external_id_2\": null,\n      \"external_id_3\": null\n\t\t},\n\t\t\"event\": {\n\t\t\t\"uuid\": \"00000000-0000-0000-0000-000000000000\",\n\t\t\t\"name\": \"Pyramid Warm Up 2023\"\n\t\t},\n\t\t\"venue\": {\n\t\t\t\"uuid\": \"00000000-0000-0000-0000-000000000000\",\n\t\t\t\"name\": \"Venue Name\"\n\t\t},\n    \"tracking_parameters\": [\n    \t{\n\t\t\t\t\"name\": \"UTM_REFERRER\",\n\t\t\t\t\"value: \"Maxcorp\",\n      }\n    ]\n\t}\n]"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-TF-PREFERREDLANGUAGEID",
        "value": "Language ID"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "63aafdb047058c0010db405f:645e02ee501cec0361333a01"
}
```