# /setBarcodeStatus

[block:api-header]
{
  "title": "Description:"
}
[/block]

This function allows you to set the barcode (ticket) status to “checked in”.

**HMAC calculation:**
Base64 encode - SHA256(apiKey + barcodeNumber)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Scan API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://globalticket.com/webservices/scanapi"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/setBarcodeStatus": {
      "post": {
        "summary": "/setBarcodeStatus",
        "description": "",
        "operationId": "setbarcodestatus",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "apiKey",
                  "HMACKey",
                  "barcodeNumber"
                ],
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "description": "Your public apiKey needs to be included in every request"
                  },
                  "HMACKey": {
                    "type": "string",
                    "description": "The HMACKey is calculated based on the input fields"
                  },
                  "barcodeNumber": {
                    "type": "string",
                    "description": "The barcode number of the ticket for which the status is to be set"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"success\":true\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"success\":true,\n  \"errorCode\":1,\n\t\"errorMessage\":\"contactInfo add was successfully.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "errorCode": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "errorMessage": {
                      "type": "string",
                      "example": "contactInfo add was successfully."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "62b1d31f161f1601e7ec3d31:62b1d9b522da70001ee4ed52"
}
```