{ "opencollection": "1.0.0", "info": { "name": "SAP Sales and Distribution (SD) SAP Billing Document Sales Order Header API", "version": "1.0.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Sales Order Header", "type": "folder" }, "items": [ { "info": { "name": "Retrieve a list of sales orders", "type": "http" }, "http": { "method": "GET", "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SalesOrder", "params": [ { "name": "$top", "value": "", "type": "query", "description": "Maximum number of records to return" }, { "name": "$skip", "value": "", "type": "query", "description": "Number of records to skip" }, { "name": "$filter", "value": "", "type": "query", "description": "OData filter expression" }, { "name": "$orderby", "value": "", "type": "query", "description": "Sort order for the result set" }, { "name": "$select", "value": "", "type": "query", "description": "Comma-separated list of properties to include in the response" }, { "name": "$expand", "value": "", "type": "query", "description": "Comma-separated list of navigation properties to expand" }, { "name": "$inlinecount", "value": "", "type": "query", "description": "Include total count of matching resources" } ] }, "docs": "Returns a collection of sales order headers with support for OData query options including $filter, $select, $expand, $top, $skip, $orderby, and $inlinecount. Use $expand to include related items, partners, pricing elements, and other sub-entities." }, { "info": { "name": "Create a new sales order", "type": "http" }, "http": { "method": "POST", "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SalesOrder", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new sales order using a deep insert request. The request body can include header data along with related items, partners, pricing elements, schedule lines, billing plans, and text elements in a single POST operation." }, { "info": { "name": "Retrieve a single sales order", "type": "http" }, "http": { "method": "GET", "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SalesOrder(':SalesOrder')", "params": [ { "name": "SalesOrder", "value": "", "type": "path", "description": "Sales order number (10 characters)" }, { "name": "$select", "value": "", "type": "query", "description": "Comma-separated list of properties to include in the response" }, { "name": "$expand", "value": "", "type": "query", "description": "Comma-separated list of navigation properties to expand" } ] }, "docs": "Returns a single sales order header by its key. Use $expand to include related entities such as items, partners, pricing elements, schedule lines, billing plans, and text elements." }, { "info": { "name": "Update a sales order", "type": "http" }, "http": { "method": "PATCH", "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SalesOrder(':SalesOrder')", "headers": [ { "name": "If-Match", "value": "" } ], "params": [ { "name": "SalesOrder", "value": "", "type": "path", "description": "Sales order number (10 characters)" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing sales order header. Only the fields included in the request body are updated. Requires an If-Match header with the ETag value for optimistic concurrency control." }, { "info": { "name": "Delete a sales order", "type": "http" }, "http": { "method": "DELETE", "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SalesOrder(':SalesOrder')", "headers": [ { "name": "If-Match", "value": "" } ], "params": [ { "name": "SalesOrder", "value": "", "type": "path", "description": "Sales order number (10 characters)" } ] }, "docs": "Deletes an existing sales order. Requires an If-Match header with the ETag value for optimistic concurrency control." } ] } ], "bundled": true }