How to retrieve transaction information?

Is there way to extract message, amount of NEM/LYL and user’s wallet address (where it comes from) from NEM wallet (LYL wallet) to store data into my own DB?
The reason why I am asking this to map user’s transaction to my wallet’s transaction to confirm the payment.
That way if user can pay their NEM/LYL coins with pre-assigned message by us, the we can easily map that transaction to my wallet to release.
Is there API that provides this?

Hi,
Yes there is api to communicate with node https://nemproject.github.io

You can use for example get all (incomming and outgoing) tx related with specific address using /account/transfers/all

There is also couple wrappers depends on which language are you using: nem.io/developers