If you run You build against What to check first
S/4HANA Cloud, public edition Released OData (V2 and V4) and SOAP APIs from the Business Accelerator Hub, switched on through communication arrangements. Only released APIs are allowed. If the one you need isn't released for your edition, there's no back door to a BAPI.
S/4HANA on-premise or private cloud The same OData services, activated in SAP Gateway, plus BAPIs and IDocs, which still work. Whether the service is activated on your system and your release is the version the Hub page describes.
ECC 6.0 BAPIs and RFC function modules, called with SAP's Java or .NET connectors, and IDocs over ALE for orders, deliveries and invoices. Whether Gateway is installed. If not, there's no OData at all, and an outside system needs a layer in front.
SuccessFactors, Ariba, Concur and other SAP cloud products Their own APIs, also listed on the Business Accelerator Hub. These aren't S/4HANA APIs and have separate auth. Treat each product as its own integration.