---
title: "Get Wallet Barcode"
method: GET
path: "/api/v1/simulation/barcodes/{lookUpId}"
tags: ["Simulations"]
---

# Get Wallet Barcode

`GET /api/v1/simulation/barcodes/{lookUpId}`

## Request

- Base URL: `https://merchant-api.accruesavings.com`
- URL: `https://merchant-api.accruesavings.com/api/v1/simulation/barcodes/{lookUpId}`
- Auth: none declared. Required headers: `Client-ID`, `Authorization`
- TypeScript: <https://skmtc.dev/byaccrue/apis/accrue-merchant-api/docs/api/v1/simulation/barcodes/:lookUpId/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch a barcode by its `lookUpId` in testing environments.

  The `id` in the response is the wallet ID. Validation is scoped to the merchant derived from the request.

  **This endpoint is only available in development, sandbox, and local testing environments.**

## Path parameters

- `lookUpId` string, required: Lookup identifier for the barcode

## Headers

- `Client-ID` string, uuid, required: The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
- `Authorization` string, uuid, required: Secure secret to access privileged endpoints.

## Response `200`

OK

- GetWalletBarcodeResponse
  - `data` WalletBarcode, required: WalletBarcode
    - `id` string, uuid, required: Unique identifier for the object.
    - `type` 'WalletBarcode', required
    - `attributes` object, required
      - `lookUpId` string, required: Lookup identifier for the barcode. Used when creating payment intents or fetching the barcode.
      - `expiresAt` string, date-time, nullable, required: When the barcode expires. Null if no expiry.
      - `usageLimit` integer, nullable: Maximum number of times the barcode can be used. Null if unlimited.
      - `usageCount` integer: Number of times the barcode has been used. Present in list/generate responses.
      - `referenceId` string, nullable: External reference ID. Present when fetching barcode by lookUpId.
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required

## Other responses

- `400`: Barcode expired or invalid
- `404`: Barcode not found

---

[API](https://skmtc.dev/byaccrue/apis/accrue-merchant-api.md) - [All operations](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/revisions/3e2d97ef2e6e?raw)
