Delete a QR code

Overview

Remove a QR code. Scans of the printed image stop working.

Use this when a code is retired.

You'll need the qr_code_id (id in List QR codes).

The code is removed.

Prerequisites

Base URL

EnvironmentURL
Productionhttps://production-api.shoutaboutus.com
Developmenthttps://development-api.shoutaboutus.com

Endpoint

DELETE /api/v1/qr-codes/{qrCodeId}

Authentication

Account token

  • The QR code must have been created under your token's account; otherwise 404.
🚧

QR codes belong to the account that created them, and every QR endpoint matches on that account exactly; it doesn't walk the partner tree. A Partner token sees nothing, even for a location inside the partner's own tree: list endpoints return an empty result, and single-record endpoints return 404 QR code not found. The 404 means "not visible to this token", not "this QR code doesn't exist". Use an Account token for every endpoint in this section.

Rate limit

This endpoint has no rate limit.

Request parameters

ParameterInTypeRequiredDescription
qrCodeIdpathintegerYesThe QR code's id (id in List QR codes). Digits only.

Request body

None.

Request payload

None.

Response body

The payload is inside data.

FieldTypeDescription
statusstringsuccess.
messagestringQR code deleted successfully

Response payload

{
  "data": {
    "status": "success",
    "message": "QR code deleted successfully"
  }
}

Examples

Success payload

See Response payload.

Error payload

404 Not found

{
  "message": "QR code not found",
  "status": "error",
  "errors": []
}

422 QR code doesn't exist

{
  "message": "The selected id is invalid.",
  "errors": {
    "id": [
      "The selected id is invalid."
    ]
  }
}
StatusMeaning
200The QR code was deleted.
401The token is missing, expired or invalid.
404QR code not found: the code wasn't created under your token's account, or has already been deleted.
422No QR code has this id.
500Unexpected server error.

Example request

curl --request DELETE \
  --url "https://production-api.shoutaboutus.com/api/v1/qr-codes/2963" \
  --header 'Authorization: Bearer <bearer-token>' \
  --header 'Accept: application/json'

Did this page help you?