Guides on how to consume Rest API

Any documentation on how to consume Rest API using Dolibarr? I want to integrate into a Custom Payment gateway.

Hello,

Your question is pretty vague. Anyhow, you probably need to write your own module (see module builder for that). Have a look at how the paybox/paypal/stripe modules are designed.

Regards,
Marc