---
title: "Print Document"
method: POST
path: "/v4/shipments/printDocument/{carrierCode}/{shipmentId}"
tags: ["Shipments"]
---

# Print Document

`POST /v4/shipments/printDocument/{carrierCode}/{shipmentId}`

Request the associated Customs Documents for the printed label.

## Path parameters

- `carrierCode` string, required
- `shipmentId` string, required

## Request body

- PrintDocumentRequest — Print Document Request
  - `DocumentType` 'CN23' | 'PI' | 'CI' — Document Type <br />Defaults to CN23 <br /> <br />**CN23** CN23 <br />**PI** Proforma Invoice <br />**CI** Commercial Invoice
  - `NumberOfCopies` integer — Number of Copies
  - `EoriNumber` string, nullable — EORI Number <br />Shipper/Receiver's EORI number starts with the ISO Alpha-2 Country Code followed by a maximum 15 alphanumeric characters. For Northern Ireland starts with XI <br />Overrides the shipper's EORI number on the shipment if provided. <br />If both an EORI and VAT number exist, then only the EORI Number is printed on the CN23.
  - `VatNumber` string, nullable — VAT Number <br />Overrides the shipper's VAT number on the shipment if provided.
  - `ReasonForExport` string, nullable — Identifies the purpose of the export, such as sale, gift, or return. This information is useful for customs processing to determine the appropriate tariffs and requirements. If the carrier is associated with the Universal Postal Union (UPU), then the allowed reasons for export are the following:<br /><br />• Gift<br />• Commercial Sample<br />• Documents<br />• Sale of Goods<br />• Ecommerce Sale of Goods<br />• Commercial Sale of Goods<br />• Return of Goods<br />• Mixed Content<br />• Other<br /><br />_**Note**_: _Before populating this field, keep in mind the following:_<br /><br />_If the **Sale of Goods** value is selected, the system automatically determines whether the shipment is **Ecommerce (B2C or D2C)** or **Commercial (B2B)** based on the value provided in the **BusinessTransactionType** field in the create shipment request._<br /><br />_If this information is provided, it overrides the shipment's reason for export._
  - `Name` string, nullable — Shipper's Name <br />Override the shipment's shipper's company/contact name if provided.
  - `Position` string, nullable — Position <br />The shipper's job title in the sender's company. <br />*Note: The field can only be used with the proforma and commercial invoice. It will be ignored for CN23s.*
  - `SignatureImage` string, nullable — Signature Image <br />Base 64 encoded PNG or JPEG. Maximum image size supported is 240 x 34 pixels. <br />*Note: The field can only be used with the proforma and commercial invoice. It will be ignored for CN23s.*
  - `CompanyStampImage` string, nullable — Company Stamp Image <br />Base 64 encoded PNG or JPEG. Maximum image size supported is 600 x 66 pixels. <br />*Note: The field can only be used with the proforma and commercial invoice. It will be ignored for CN23s.*

## Response `200`

Returns the specified document for the given shipment.

- PrintDocumentResponse — Print Document Response
  - `Document` string, required — Document <br />Base 64 encoded PDF
  - `DocumentType` 'CN23' | 'PI' | 'CI', required — Document Type <br />Defaults to CN23 <br /> <br />**CN23** CN23 <br />**PI** Proforma Invoice <br />**CI** Commercial Invoice

## Other responses

- `400` — Invalid request response.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The shipment was not found.
- `500` — Internal Server Error

---

[API](https://skmtc.dev/intersoftsapient/apis/sapient-core-api.md) · [All operations](https://skmtc.dev/intersoftsapient/apis/sapient-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/intersoftsapient/sapient-core-api/revisions/3315ad0b5875/schema)
