{
  "opencollection": "1.0.0",
  "info": {
    "name": "SAP Sales and Distribution (SD) SAP Customer Master Data (Business Partner) API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Business Partner",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve a list of business partners",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner",
            "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"
              },
              {
                "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 business partner records. Use OData query options to filter by category, name, or other attributes. Supports $expand for including addresses, roles, tax numbers, and bank accounts."
        },
        {
          "info": {
            "name": "Create a new business partner",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new business partner record. Supports deep insert with addresses, roles, tax numbers, and bank accounts in a single request."
        },
        {
          "info": {
            "name": "Retrieve a single business partner",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(':BusinessPartner')",
            "params": [
              {
                "name": "BusinessPartner",
                "value": "",
                "type": "path",
                "description": "Business partner number (10 characters)"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of navigation properties to expand"
              }
            ]
          },
          "docs": "Returns a single business partner record by its key. Use $expand to include related addresses, roles, tax numbers, and bank accounts."
        },
        {
          "info": {
            "name": "Update a business partner",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(':BusinessPartner')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "BusinessPartner",
                "value": "",
                "type": "path",
                "description": "Business partner number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing business partner record. Only fields included in the request body are modified."
        }
      ]
    },
    {
      "info": {
        "name": "Business Partner Address",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve addresses for a business partner",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(':BusinessPartner')/to_BusinessPartnerAddress",
            "params": [
              {
                "name": "BusinessPartner",
                "value": "",
                "type": "path",
                "description": "Business partner number"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include"
              }
            ]
          },
          "docs": "Returns a collection of address records associated with the specified business partner."
        },
        {
          "info": {
            "name": "Create an address for a business partner",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(':BusinessPartner')/to_BusinessPartnerAddress",
            "params": [
              {
                "name": "BusinessPartner",
                "value": "",
                "type": "path",
                "description": "Business partner number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new address record for the specified business partner."
        }
      ]
    },
    {
      "info": {
        "name": "Customer",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve customer-specific data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Customer(':Customer')",
            "params": [
              {
                "name": "Customer",
                "value": "",
                "type": "path",
                "description": "Customer number"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of navigation properties to expand"
              }
            ]
          },
          "docs": "Returns customer-specific data for the specified customer number, including payment terms, delivery priority, and account group."
        }
      ]
    },
    {
      "info": {
        "name": "Customer Sales Area",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve customer sales area data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustomerSalesArea(Customer=':Customer',SalesOrganization=':SalesOrganization',DistributionChannel=':DistributionChannel',Division=':Division')",
            "params": [
              {
                "name": "Customer",
                "value": "",
                "type": "path",
                "description": "Customer number"
              },
              {
                "name": "SalesOrganization",
                "value": "",
                "type": "path",
                "description": "Sales organization"
              },
              {
                "name": "DistributionChannel",
                "value": "",
                "type": "path",
                "description": "Distribution channel"
              },
              {
                "name": "Division",
                "value": "",
                "type": "path",
                "description": "Division"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include"
              }
            ]
          },
          "docs": "Returns sales area-specific data for a customer, including pricing, shipping, and billing information specific to the sales organization, distribution channel, and division."
        }
      ]
    }
  ],
  "bundled": true
}