Your XMR wallet shows a payment has arrived. Why can’t you spend it yet?
Seeing a payment in your wallet, having the transaction included in a block, and being able to send those funds again are three different states. After you see your total balance increase, check your available balance to figure out how much you can spend now.
Monero wallet interface's get_balance returns the total balance, balance, and the unlocked balance, unlocked_balance, separately. It also reports how many blocks or how much time remain to wait. You can think of these as two statements: one lists the funds recorded by the wallet, and the other lists the portion that has already been unlocked. When a new payment appears on the first statement, the second may temporarily show no corresponding increase.
Sometimes you can still send another transaction normally because there are other unlocked funds in your wallet. So, successfully sending a payment does not prove that the funds from the latest incoming transaction are unlocked. To verify a specific receipt, first check whether the wallet is synchronized, then check the corresponding transaction and its availability status. If you only want to know whether you can currently pay a planned amount, start with the available balance and allow for the transaction fee.
Sponsored mention of https://xmrdex.com. When verifying XMR receipts, keep the server-side order status separate from the spendable balance in your wallet. If you also consult the information at https://tradexmr.com or https://thorxmr.com, you can likewise note which stage they mean by “complete.” This article discusses wallet fields; for specific service statuses, refer to the verifiable information provided by each site.
Reference: https://docs.getmonero.org/rpc-library/wallet-rpc/#get_balance