{
  "opencollection": "1.0.0",
  "info": {
    "name": "SAP Sales and Distribution (SD) SAP Billing Document Scheduling Agreement API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Scheduling Agreement",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve a list of scheduling agreements",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SchAgrmtHeader",
            "params": [
              {
                "name": "$top",
                "value": "",
                "type": "query"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query"
              },
              {
                "name": "$inlinecount",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a collection of scheduling agreement headers. Supports filtering by agreement type, validity dates, customer, and status."
        },
        {
          "info": {
            "name": "Create a new scheduling agreement",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SchAgrmtHeader",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new scheduling agreement with deep insert support for items and schedule lines."
        },
        {
          "info": {
            "name": "Retrieve a single scheduling agreement",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SchAgrmtHeader(':SchedulingAgreement')",
            "params": [
              {
                "name": "SchedulingAgreement",
                "value": "",
                "type": "path",
                "description": "Scheduling agreement number (10 characters)"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a single scheduling agreement by its document number."
        },
        {
          "info": {
            "name": "Update a scheduling agreement",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_SchAgrmtHeader(':SchedulingAgreement')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "SchedulingAgreement",
                "value": "",
                "type": "path",
                "description": "Scheduling agreement number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing scheduling agreement header."
        }
      ]
    }
  ],
  "bundled": true
}