OData APIs in Billing
![APIs can be used from an external system to read or cancel billing documents in SAP S/4HANA. APIs can be used from an external system to read or cancel billing documents in SAP S/4HANA.](/service/media/topic/fed0ebcb-4389-4333-a53d-7b4b15c02bb8/S4SD1_26_en-US_media/S4SD1_26_en-US_images/Unit_4_Slide_14.png)
Open Data Protocol (OData) is a resource-based web protocol for querying and updating data in a system. OData defines operations on resources using HTTP commands. It allows for the creation and consumption of queryable and interoperable REST application programming interfaces (APIs) in a simple and standard way. Data is transferred over HTTP using the Atom or JSON format.
OData makes it easier for SAP, for partners, and for customers to build standards-based applications for many different devices and on various platforms.
For SAP S/4HANA Billing, several OData application programming interfaces (APIs) are available which external systems can use to read/cancel etc. billing documents.
External systems and other consumers of an OData API for a billing document can:
- Retrieve detailed information about a billing document in the system
- Cancel a billing document in the SAP S/4HANA system
- Download a copy of a billing document in PDF format (for example, for archiving purposes)
Benefits of being able to use these OData APIs in SAP S/4HANA Billing are:
- They enable full integration of external systems and application into the SAP S/4HANA billing process
- They can remotely trigger and control key aspects of the billing process