--- title: "Configuring documents to be generated and printed for orders" slug: "configuring-documents-to-be-generated-and-printed-for-orders" tags: ["api", "config api", "config", "tutorial", "documents", "printers", "Associate App", "store fulfillment", "receipts ", "template", "order fulfillment"] updated: 2024-12-27T11:50:59Z published: 2024-12-27T11:50:59Z canonical: "docs.newstore.com/configuring-documents-to-be-generated-and-printed-for-orders" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.newstore.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring documents to be generated and printed for orders With the [new store fulfillment flow](/v1/docs/using-newstore-associate-app-to-fulfill-orders#assoapp-store-fulfillment) , you can configure documents to be generated and printed for each customer order. These documents include packing slips, invoices, shipping labels, and return labels. You can set a global documents configuration across all stores in your business or a store-specific configuration that will override the global configuration. ## Setting up a global documents configuration To set a global documents configuration, use the [Update global documents config](https://docs.newstore.net/api/integration/store-fulfillment/documents_config#operation/set_documents_configuration_config_documents_config_put) method. We support the following documents to be generated and printed: | `invoice` | Include this in your configuration if you want to generate an invoice. | | --- | --- | | `packing_slip` | Include this in your configuration if you want to generate a packing slip. | | `shipping_label` | Include this in your configuration if you want to generate a shipping label. | | `return_label` | Include this in your configuration if you want to generate a return label. | | `commercial_invoice` | Include this in your configuration if you want to generate a commercial invoice. > [!TIP] > Note > > The shipping adapter provides the commercial invoice when [booking the shipment](/v1/docs/about-shipping). This can only be generated for some orders, and can only be added as a default *optional* document. | | `in_store_pickup_label` | Include this in your configuration if you want to generate an in-store pickup label. (Only for `in_store_pick_up `document type.) | A sample configuration: ```plaintext {    "default": ["invoice", "packing_slip", "shipping_label", "return_label"],    "default_optional": ["commercial_invoice"],    "in_store_pick_up": ["invoice", "in_store_pickup_label"], } ``` To check your documents configuration, use the [Get global documents config](https://docs.newstore.net/api/integration/store-fulfillment/documents_config#operation/get_documents_configuration_config_documents_config_get) method. ## Setting up a store-specific documents configuration If you have a store for which you need different documents to be generated and printed, use the [Update store-specific documents config](https://docs.newstore.net/api/integration/store-fulfillment/documents_config#operation/set_store_documents_configuration_config_documents_config_store__store_id__put) method. Scenario: Consider you have stores in different countries but in Japan you don't need to print a return label. In this scenario, you can use the [Update store-specific documents config](https://docs.newstore.net/api/integration/store-fulfillment/documents_config#operation/set_store_documents_configuration_config_documents_config_store__store_id__put) method to set the documents configuration for each store in Japan. The store-specific documents config can be removed using the [Delete store-specific documents config](https://docs.newstore.net/api/integration/store-fulfillment/documents_config#operation/delete_store_documents_configuration_config_documents_config_store__store_id__delete) method. Use the [Get store-specific documents config](https://docs.newstore.net/api/integration/store-fulfillment/documents_config#operation/get_store_documents_configuration_config_documents_config_store__store_id__get) method to check if you have an existing store-specific documents configuration.