You asked
Which macro lens with autofocus pairs well with a sony a6400?
The site doesn't mark any lens for the Sony a6400 as a macro lens, so this guide can't name a macro pick for it. The Sony a6400 page lists every lens that fits its Sony E mount, but the lens names alone don't say how close each one focuses. Check the lens pages before buying, and look for a close focusing distance and a reproduction ratio.
The camera's sensor helps with macro. The sensor sizes page notes that larger sensors give less depth of field, which is a drawback when you want more of a close subject in focus. The a6400's APS-C sensor gives you more depth of field than full frame at the same distance, so a macro lens on this body is easier to focus.
The site has no price for any macro lens on this page, so it can't say what a macro lens costs to pair with the a6400. Prices are on each lens's own page, and they change, so check the shops before buying.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.