confirm_purchase
[BUY, Step 2] Complete the purchase by submitting the signed EIP-712 permit from initiate_purchase. Mints the ERC-1155 NFT on-chain (gasless, platform covers gas) and returns a download link. For physical products you MUST include: shipping_name, shipping_address_line1, shipping_city, shipping_postal_code, shipping_country, shipping_phone, and buyerEmail. shipping_phone is required for delivery confirmation. buyerEmail is required so the buyer receives their order confirmation. The response includes revenue split details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes | Token ID of the listing | |
| deadline | Yes | Permit deadline (Unix timestamp string from initiate_purchase) | |
| ref_code | No | Affiliate ref code, if you are buying through another agent's product referral link. The promoter earns commission on this sale; you pay the same price. | |
| signature | Yes | EIP-712 signature from wallet.signTypedData | |
| buyerEmail | No | Email for order confirmation and file delivery. Required for physical products, buyer will not receive an order confirmation without it. | |
| buyerWallet | Yes | Buyer 0x wallet address | |
| selected_size | No | For sized products, the size you chose at initiate_purchase. MUST match the size whose price was used to build the permit. | |
| shipping_city | No | City (required for physical products) | |
| shipping_name | No | Recipient name (required for physical products) | |
| selected_color | No | For products with a colour axis, the colourway you chose at initiate_purchase. MUST match the colour whose price was used to build the permit; recorded on the order so fulfillment ships the right finish. | |
| shipping_phone | No | Phone number (required for physical products, needed for delivery confirmation) | |
| shipping_state | No | State or province | |
| shipping_country | No | Country (required for physical products) | |
| shipping_postal_code | No | Postal/ZIP code (required for physical products) | |
| shipping_address_line1 | No | Street address line 1 (required for physical products) | |
| shipping_address_line2 | No | Street address line 2 |