Don't have the API documentation, but this is a fork of Pancake Swap, so it should be straight forward to implement in the same way.