{
  "opencollection": "1.0.0",
  "info": {
    "name": "batches salesreturns API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "salesreturns",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all Sales Returns",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.zohoapis.com/inventory/v1/salesreturns",
            "params": [
              {
                "name": "organization_id",
                "value": "10234695",
                "type": "query",
                "description": "ID of the organization"
              },
              {
                "name": "page",
                "value": "1",
                "type": "query",
                "description": "Page number to be fetched. Default value is 1."
              },
              {
                "name": "per_page",
                "value": "200",
                "type": "query",
                "description": "Number of records to be fetched per page. Default value is 200."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "implicit",
              "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
              "credentials": {
                "clientId": "{{clientId}}"
              }
            }
          },
          "docs": "Lists all the Sales Returns present in Zoho Inventory."
        },
        {
          "info": {
            "name": "Create a Sales Return",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.zohoapis.com/inventory/v1/salesreturns",
            "params": [
              {
                "name": "organization_id",
                "value": "10234695",
                "type": "query",
                "description": "ID of the organization"
              },
              {
                "name": "salesorder_id",
                "value": "4815000000044936",
                "type": "query",
                "description": "Unique ID generated by the server for the Sales Order from which the Sales Return is created."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "implicit",
              "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
              "credentials": {
                "clientId": "{{clientId}}"
              }
            }
          },
          "docs": "Creation of Sales Return. Sales return can be created for all the shipped units of the items in a sales order."
        },
        {
          "info": {
            "name": "Retrieve a Sales Return",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.zohoapis.com/inventory/v1/salesreturns/:salesreturn_id",
            "params": [
              {
                "name": "salesreturn_id",
                "value": "4815000000044972",
                "type": "path",
                "description": "Unique identifier of the sales return."
              },
              {
                "name": "organization_id",
                "value": "10234695",
                "type": "query",
                "description": "ID of the organization"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "implicit",
              "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
              "credentials": {
                "clientId": "{{clientId}}"
              }
            }
          },
          "docs": "Retrieves the details for an existing Sales Return."
        },
        {
          "info": {
            "name": "Update a Sales Return",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.zohoapis.com/inventory/v1/salesreturns/:salesreturn_id",
            "params": [
              {
                "name": "salesreturn_id",
                "value": "4815000000044972",
                "type": "path",
                "description": "Unique identifier of the sales return."
              },
              {
                "name": "organization_id",
                "value": "10234695",
                "type": "query",
                "description": "ID of the organization"
              },
              {
                "name": "salesorder_id",
                "value": "4815000000044936",
                "type": "query",
                "description": "Unique ID generated by the server for the Sales Order from which the Sales Return is created."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "implicit",
              "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
              "credentials": {
                "clientId": "{{clientId}}"
              }
            }
          },
          "docs": "Updation of Sales Return."
        },
        {
          "info": {
            "name": "Delete a Sales Return",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.zohoapis.com/inventory/v1/salesreturns/:salesreturn_id",
            "params": [
              {
                "name": "salesreturn_id",
                "value": "4815000000044972",
                "type": "path",
                "description": "Unique identifier of the sales return."
              },
              {
                "name": "organization_id",
                "value": "10234695",
                "type": "query",
                "description": "ID of the organization"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "implicit",
              "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
              "credentials": {
                "clientId": "{{clientId}}"
              }
            }
          },
          "docs": "Deletes a Sales Return from Zoho Inventory."
        },
        {
          "info": {
            "name": "Create a Sales Return Receive",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.zohoapis.com/inventory/v1/salesreturnreceives",
            "params": [
              {
                "name": "organization_id",
                "value": "10234695",
                "type": "query",
                "description": "ID of the organization"
              },
              {
                "name": "salesreturn_id",
                "value": "4815000000044972",
                "type": "query",
                "description": "Unique ID generated by the server for the Sales Return."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "implicit",
              "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
              "credentials": {
                "clientId": "{{clientId}}"
              }
            }
          },
          "docs": "Creating a sales return receive to mark the receivable goods as received."
        },
        {
          "info": {
            "name": "Delete a Sales Return Receive",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.zohoapis.com/inventory/v1/salesreturnreceives/:salesreturnreceive_id",
            "params": [
              {
                "name": "salesreturnreceive_id",
                "value": "4815000000044972",
                "type": "path",
                "description": "Unique identifier of the sales return receive."
              },
              {
                "name": "organization_id",
                "value": "10234695",
                "type": "query",
                "description": "ID of the organization"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "implicit",
              "authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
              "credentials": {
                "clientId": "{{clientId}}"
              }
            }
          },
          "docs": "Deletes the sales return receive of a sales return."
        }
      ]
    }
  ],
  "bundled": true
}