> ## 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.

# endOfDayManifestCreate

> Close shipments into end-of-day manifests for a carrier, as the app's Close shipments does, and return the manifests made. Large closes are split into several manifests. Listed groups must each be an open shipment for the carrier, as `endOfDayManifestOpenShipments` lists them; otherwise nothing is closed and the error is BAD_USER_INPUT naming some of them. Groups that are voided or already on a manifest are skipped, so a retry doesn't manifest a group twice. One close runs at a time per store, from the app or the API; another started meanwhile fails with CONFLICT, so retry once it finishes. If a close fails partway, some manifests may already exist: find them with `endOfDayManifests`, then retry. Carriers make some manifest documents in the background: read each manifest again until it's CREATED or FAILED. An empty list means none of the groups could be closed for that carrier. Returns null if any listed group doesn't exist or isn't visible to the caller.

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

**Store must have one of:** `OMS`, `WMS`

## Arguments

**input** `[EndOfDayManifestCreateInput!](/docs/api-reference/v3/reference/shipping/end-of-day-manifest-create-input)` *required*

What to close.

**fields**

**carrier** `String!` *required*

The carrier to close for, as `CarrierServiceSetting.carrier` names carriers, such as USPS.

**fulfillmentGroupIds** `[ID!]`

The groups to close, at most 1000. Omit to close every open shipment for the carrier, as the app's Close all does.

**originName** `String`

With `fulfillmentGroupIds` omitted, only close groups shipping from the ship-from address with this name.

## Returns

**endOfDayManifestCreate** `[\[EndOfDayManifest!\]](/docs/api-reference/v3/reference/shipping/end-of-day-manifest)`

Shipments closed out together for one carrier at the end of the day, with the manifest document the driver scans at pickup.

**fields**

**carrier** `String!` *required*

The carrier the shipments were closed for, as `CarrierServiceSetting.carrier` names carriers.

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

When the shipments were closed.

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

The manifest PDF to print. Null until CREATED. Read the manifest again while PENDING.

**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.

**failureMessage** `String`

What the carrier said when it couldn't make the manifest. Null unless FAILED, or when it gave no reason.

**id** `ID!` *required*

The id of this manifest.

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

The same manifest sized 4x6 for a label printer. Null until CREATED, or when the carrier's document couldn't be resized.

**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.

**originName** `String`

The name of the ship-from address the shipments were closed at. Null when they were closed by id.

**shipmentCount** `Int!` *required*

How many fulfillment groups the manifest closed.

**status** `[EndOfDayManifestStatus!](/docs/api-reference/v3/reference/shipping/end-of-day-manifest-status)` *required*

Where the manifest stands.

## Example

```graphql theme={null}
mutation {
  endOfDayManifestCreate(input: { ... }) {
    carrier
    createdAt
    failureMessage
    id
    originName
    shipmentCount
    status
  }
}
```


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