Overview
When minting NFTs from a collection with multiple templates, you can specify which template to mint to using your Crossmint integration. This feature must be explicitly enabled in the Crossmint Console. This gives you control over exactly which template gets minted when processing a purchase, rather than relying on random template selection.Supported Collection Types
Selecting a specific token template for purchase is supported on:- EVM ERC-721 and ERC-1155 collections
- Solana collections
- Aptos collections
Enabling Template Minting
Follow these steps in the Crossmint Console to enable template-specific minting:- Go to your collection in the Crossmint Console
- Navigate to the “Checkout” section
- Under “NFT Template Settings”, enable “Mint to specific NFT Template”

Using Template IDs
If template-specific minting is disabled for your collection and you pass a template ID in the collection locator,
the request will select a template randomly. Make sure to enable this feature in the Console before using template IDs.
To see all your available templates, navigate to the “NFTs” section in the Console for your managed collection.You can also get all your available templates for a collection using the NFT Template API.
templateId
portion is optional with mint to specific template enabled. If omitted, the system will use your collection’s default minting behavior.
Here’s how to implement template minting in your integration:
- Embedded Checkout v3
- Headless Checkout
Add the template ID to your collection locator string:
Error Handling
When implementing template minting, handle these potential error cases:-
Invalid Template ID
- Error message: Transaction fails with template validation error
- Occurs when: The specified template ID doesn’t exist in the collection
- Resolution: Verify the template ID exists in your collection
-
No Code Storefront
- Mint to specific template is not currently supported on No Code Storefront. If you’d like this feature, please reach out to your CSE rep
- Embedded Checkout v3
- Headless Checkout