---
updatedAt: 2026-09-17T08:29:48.000Z
agentTools:
  projectIndex: https://nexp.readme.io/llms.txt
---

# Gerar versão impressa do pedido

Use esta API para solicitar que um novo PDF contendo os detalhes de 1 ou N pedidos seja gerado. Limitado a 20 pedidos por arquivo.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "logstore",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://{environment}.app",
      "variables": {
        "environment": {
          "default": "environment"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/picking-lists": {
      "post": {
        "summary": "Gerar versão impressa do pedido",
        "description": "Use esta API para solicitar que um novo PDF contendo os detalhes de 1 ou N pedidos seja gerado. Limitado a 20 pedidos por arquivo.",
        "operationId": "gerar-pdf-picking",
        "parameters": [
          {
            "name": "x-customer-key",
            "in": "header",
            "description": "Um hash que identifica a conta.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "description": "Chave de acesso",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "orderIds",
                  "compact"
                ],
                "properties": {
                  "orderIds": {
                    "type": "array",
                    "description": "Identificador único do pedido (limitado a 20 ids)",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  },
                  "compact": {
                    "type": "boolean",
                    "description": "Flag que indica se o arquivo gerado será a versão compact (impressão em bobina) ou não (impressão em A4)",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n   \"statusCode\":201,\n   \"content\":{\n      \"trackingCode\": \"015bf2dc-b58f-4f96-88e7-1239efbfb059\",\n      \"pdfUrl\":\"https://folder/files/92cf726e80f444cea490503df8c6c57d.pdf\",\n      \"createdAt\":\"2024-06-05T02:57:26.7171977Z\"\n   },\n   \"hasError\":false\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 201,
                      "default": 0
                    },
                    "content": {
                      "type": "object",
                      "properties": {
                        "trackingCode": {
                          "type": "string",
                          "example": "015bf2dc-b58f-4f96-88e7-1239efbfb059"
                        },
                        "pdfUrl": {
                          "type": "string",
                          "example": "https://folder/files/92cf726e80f444cea490503df8c6c57d.pdf"
                        },
                        "createdAt": {
                          "type": "string",
                          "example": "2024-06-05T02:57:26.7171977Z"
                        }
                      }
                    },
                    "hasError": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"statusCode\": 401,\n\t\"content\": {\n\t\t\"code\": \"unauthorized\",\n\t\t\"number\": 401,\n\t\t\"details\": \"Acesso restrito.\",\n\t\t\"type\": \"https://httpstatuses.com/401\"\n\t},\n\t\"hasError\": true,\n\t\"data\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "content": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "unauthorized"
                        },
                        "number": {
                          "type": "integer",
                          "example": 401,
                          "default": 0
                        },
                        "details": {
                          "type": "string",
                          "example": "Acesso restrito."
                        },
                        "type": {
                          "type": "string",
                          "example": "https://httpstatuses.com/401"
                        }
                      }
                    },
                    "hasError": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"statusCode\": 404,\n\t\"content\": {\n\t\t\"code\": \"not_found\",\n\t\t\"number\": 404,\n\t\t\"details\": \"O recurso solicitado não foi encontrado.\"\n\t},\n\t\"hasError\": true,\n\t\"data\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 404,
                      "default": 0
                    },
                    "content": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "not_found"
                        },
                        "number": {
                          "type": "integer",
                          "example": 404,
                          "default": 0
                        },
                        "details": {
                          "type": "string",
                          "example": "O recurso solicitado não foi encontrado."
                        }
                      }
                    },
                    "hasError": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Mínimo de identificadores do pedido": {
                    "value": "{\n\t\"statusCode\": 422,\n\t\"content\": {\n\t\t\"code\": \"unprocessable_entity\",\n\t\t\"number\": 422,\n\t\t\"details\": {\n\t\t\t\"errors\": [\n\t\t\t\t{\n\t\t\t\t\t\"key\": \"Volumes\",\n\t\t\t\t\t\"errors\": [\n\t\t\t\t\t\t\"'OrderIds' deve conter ao menos 1 id.\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"type\": \"https://httpstatuses.com/422\"\n\t},\n\t\"hasError\": true,\n\t\"data\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 422,
                      "default": 0
                    },
                    "content": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "unprocessable_entity"
                        },
                        "number": {
                          "type": "integer",
                          "example": 422,
                          "default": 0
                        },
                        "details": {
                          "type": "object",
                          "properties": {
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "example": "Volumes"
                                  },
                                  "errors": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "example": "'OrderIds' deve conter ao menos 1 id."
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "type": {
                          "type": "string",
                          "example": "https://httpstatuses.com/422"
                        }
                      }
                    },
                    "hasError": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"statusCode\": 500,\n\t\"content\": {\n\t\t\"code\": \"internal_server_error\",\n\t\t\"number\": 500,\n\t\t\"details\": \"Ocorreu um problema e sua solicitação não foi processada.\",\n\t\t\"type\": \"https://httpstatuses.com/500\"\n\t},\n\t\"hasError\": true,\n\t\"data\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 500,
                      "default": 0
                    },
                    "content": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "internal_server_error"
                        },
                        "number": {
                          "type": "integer",
                          "example": 500,
                          "default": 0
                        },
                        "details": {
                          "type": "string",
                          "example": "Ocorreu um problema e sua solicitação não foi processada."
                        },
                        "type": {
                          "type": "string",
                          "example": "https://httpstatuses.com/500"
                        }
                      }
                    },
                    "hasError": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {}
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```