> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# returnItemBarcodeLabelExport

> Generate the PDF barcode label for one returned item, as the return page's See barcode does: the item's UPC with the store's label size and text. Fails with `ACTION_REJECTED` if the store hasn't set up barcode labels or the item has no barcode on the store's platform, and with `NOT_FOUND` if the item isn't on the return. Returns null if no return with that id is owned by the caller.

**Required scopes:** [`returns_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-returns_read)

**Store must have one of:** `RETURNS`, `PACKAGE_PROTECTION`, `OMS`, `WARRANTIES`, `RECYCLING`, `WITHDRAWALS`

## Arguments

**itemId** `ID!` *required*

The id of the return item: a branded Redo id or a 24-char Mongo ObjectId hex.

**returnId** `ID!` *required*

The id of the return: a branded Redo id or a 24-char Mongo ObjectId hex.

## Returns

**returnItemBarcodeLabelExport** `[File](/docs/api-reference/v3/reference/common/file)`

A file Redo stores or generates. A private file's `url` is signed and short-lived: read its parent again for a fresh link.

**fields**

**contentType** `String!` *required*

The file's media type, such as text/csv.

**fileName** `String`

The name the file downloads as. Null when the file has none.

**height** `Int`

An image's height in pixels. Null for other files.

**sizeBytes** `Int`

The file's size in bytes. Null when it wasn't recorded.

**url** `String!` *required*

Where to download the file. Signed and short-lived for a private file (see `urlExpiresAt`); stable for a public one.

**urlExpiresAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When `url` stops working. Null for a public file, whose `url` doesn't expire.

**width** `Int`

An image's width in pixels. Null for other files.

## Example

```graphql theme={null}
mutation {
  returnItemBarcodeLabelExport(itemId: "...", returnId: "...") {
    contentType
    fileName
    height
    sizeBytes
    url
    urlExpiresAt
    width
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.