nail down
• fasten something securely with nails.
• identify something precisely.
• "something seems unexpected—I can't nail it down, but it makes me uneasy"
• secure an agreement.
• "the company has finally nailed down the agreement with its distributors"