{
  "opencollection": "1.0.0",
  "info": {
    "name": "SAP Sales and Distribution (SD) SAP Customer Return API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Customer Return",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve a list of customer returns",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_CUSTOMER_RETURN_SRV/A_CustomerReturn",
            "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 customer return headers. Supports filtering by return type, date, customer, and processing status."
        },
        {
          "info": {
            "name": "Create a new customer return",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_CUSTOMER_RETURN_SRV/A_CustomerReturn",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new customer return using deep insert with items, partners, and pricing elements. Can reference an original sales order."
        },
        {
          "info": {
            "name": "Retrieve a single customer return",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_CUSTOMER_RETURN_SRV/A_CustomerReturn(':CustomerReturn')",
            "params": [
              {
                "name": "CustomerReturn",
                "value": "",
                "type": "path",
                "description": "Customer return number (10 characters)"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a single customer return by its document number."
        },
        {
          "info": {
            "name": "Update a customer return",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_CUSTOMER_RETURN_SRV/A_CustomerReturn(':CustomerReturn')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "CustomerReturn",
                "value": "",
                "type": "path",
                "description": "Customer return number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing customer return header."
        },
        {
          "info": {
            "name": "Delete a customer return",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_CUSTOMER_RETURN_SRV/A_CustomerReturn(':CustomerReturn')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "CustomerReturn",
                "value": "",
                "type": "path",
                "description": "Customer return number"
              }
            ]
          },
          "docs": "Deletes an existing customer return."
        }
      ]
    },
    {
      "info": {
        "name": "Customer Return Item",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve items for a customer return",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_CUSTOMER_RETURN_SRV/A_CustomerReturn(':CustomerReturn')/to_Item",
            "params": [
              {
                "name": "CustomerReturn",
                "value": "",
                "type": "path",
                "description": "Customer return number"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a collection of line items for the specified customer return."
        }
      ]
    }
  ],
  "bundled": true
}