openapi: 3.1.0 info: title: SAP Sales and Distribution (SD) SAP Billing Document Sales Order Pricing Element API description: Read, cancel, and retrieve billing documents in PDF format from SAP S/4HANA. This OData service (API_BILLING_DOCUMENT_SRV) provides access to billing document headers, items, partners, and pricing elements. Supports invoices, credit memos, debit memos, and other billing document types as part of the order-to-cash cycle. version: 1.0.0 contact: name: SAP Support url: https://support.sap.com license: name: SAP Developer License url: https://www.sap.com/about/agreements/product-use-and-support-terms.html servers: - url: https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV description: SAP S/4HANA Cloud Sandbox - url: https://{host}:{port}/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV description: SAP S/4HANA On-Premise variables: host: default: localhost port: default: '443' security: - basicAuth: [] - oauth2: [] tags: - name: Sales Order Pricing Element description: Operations on sales order pricing elements (A_SalesOrderHeaderPrElement) paths: /A_SalesOrder('{SalesOrder}')/to_PricingElement: get: operationId: listSalesOrderPricingElements summary: Retrieve pricing elements for a sales order description: Returns a collection of header-level pricing elements (condition records) for the specified sales order. tags: - Sales Order Pricing Element parameters: - name: SalesOrder in: path required: true description: Sales order number schema: type: string maxLength: 10 - $ref: '#/components/parameters/top' - $ref: '#/components/parameters/skip' - $ref: '#/components/parameters/select' responses: '200': description: Successfully retrieved pricing elements content: application/json: schema: type: object properties: d: type: object properties: results: type: array items: $ref: '#/components/schemas/SalesOrderPricingElement' '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' '500': $ref: '#/components/responses/InternalServerError' components: parameters: skip: name: $skip in: query description: Number of records to skip schema: type: integer minimum: 0 select: name: $select in: query description: Comma-separated list of properties to include in the response schema: type: string top: name: $top in: query description: Maximum number of records to return schema: type: integer minimum: 0 responses: InternalServerError: description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' Unauthorized: description: Authentication required or credentials invalid content: application/json: schema: $ref: '#/components/schemas/Error' NotFound: description: Requested resource not found content: application/json: schema: $ref: '#/components/schemas/Error' schemas: SalesOrderPricingElement: type: object description: Sales order header pricing element (A_SalesOrderHeaderPrElement) properties: SalesOrder: type: string maxLength: 10 description: Sales order number PricingProcedureStep: type: string maxLength: 3 description: Step number in pricing procedure PricingProcedureCounter: type: string maxLength: 3 description: Condition counter ConditionType: type: string maxLength: 4 description: Condition type (e.g., PR00 for price, K004 for discount) ConditionRateValue: type: string description: Condition rate or amount ConditionCurrency: type: string maxLength: 5 description: Condition currency ConditionQuantity: type: string description: Condition pricing unit ConditionQuantityUnit: type: string maxLength: 3 description: Condition unit ConditionValue: type: string description: Condition value Error: type: object description: OData error response properties: error: type: object properties: code: type: string description: Error code message: type: object properties: lang: type: string value: type: string description: Error message text securitySchemes: basicAuth: type: http scheme: basic oauth2: type: oauth2 flows: clientCredentials: tokenUrl: https://{tenant}.authentication.{landscape}.hana.ondemand.com/oauth/token scopes: API_BILLING_DOCUMENT_SRV: Access to Billing Document API