Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/zoho-inventory-salesreturns-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: batches Salesreturns API
description: Batches help you track inventory items by batch numbers, manufacturing dates, and expiration dates.
contact: {}
version: 1.0.0
servers:
- url: https://www.zohoapis.com/inventory/v1
description: API Endpoint
tags:
- name: salesreturns
description: SalesReturns Module
paths:
/salesreturns:
x-mcp-group:
- Sales Returns
parameters:
- $ref: '#/components/parameters/organization_id'
post:
tags:
- salesreturns
operationId: create_sales_return
summary: Create a Sales Return
description: Creation of Sales Return. Sales return can be created for all the shipped units of the items in a sales order.
parameters:
- name: salesorder_id
in: query
description: Unique ID generated by the server for the Sales Order from which the Sales Return is created.
required: false
schema:
type: string
example: 4815000000044936
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/create-a-sales-return-request'
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/create-a-sales-return-response'
deprecated: false
security:
- Zoho_Auth:
- ZohoInventory.salesreturns.CREATE
get:
tags:
- salesreturns
operationId: list_sales_returns
summary: List all Sales Returns
description: Lists all the Sales Returns present in Zoho Inventory.
parameters:
- name: page
in: query
description: Page number to be fetched. Default value is 1.
required: false
schema:
type: integer
default: 1
example: 1
- name: per_page
in: query
description: Number of records to be fetched per page. Default value is 200.
required: false
schema:
type: integer
default: 200
example: 200
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/list-all-sales-returns-response'
deprecated: false
security:
- Zoho_Auth:
- ZohoInventory.salesreturns.READ
/salesreturns/{salesreturn_id}:
x-mcp-group:
- Sales Returns
parameters:
- name: salesreturn_id
in: path
required: true
description: Unique identifier of the sales return.
schema:
type: string
example: 4815000000044972
- $ref: '#/components/parameters/organization_id'
put:
tags:
- salesreturns
operationId: update_sales_return
summary: Update a Sales Return
description: Updation of Sales Return.
parameters:
- name: salesorder_id
in: query
description: Unique ID generated by the server for the Sales Order from which the Sales Return is created.
required: false
schema:
type: string
example: 4815000000044936
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/update-a-sales-return-request'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/update-a-sales-return-response'
deprecated: false
security:
- Zoho_Auth:
- ZohoInventory.salesreturns.UPDATE
get:
tags:
- salesreturns
operationId: get_sales_return
summary: Retrieve a Sales Return
description: Retrieves the details for an existing Sales Return.
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/retrieve-a-sales-return-response'
deprecated: false
security:
- Zoho_Auth:
- ZohoInventory.salesreturns.READ
delete:
tags:
- salesreturns
operationId: delete_sales_return
summary: Delete a Sales Return
description: Deletes a Sales Return from Zoho Inventory.
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/delete-a-sales-return-response'
deprecated: false
security:
- Zoho_Auth:
- ZohoInventory.salesreturns.DELETE
/salesreturnreceives:
x-mcp-group:
- Sales Returns
parameters:
- $ref: '#/components/parameters/organization_id'
post:
tags:
- salesreturns
operationId: create_sales_return_receive
summary: Create a Sales Return Receive
description: Creating a sales return receive to mark the receivable goods as received.
parameters:
- name: salesreturn_id
in: query
description: Unique ID generated by the server for the Sales Return.
required: false
schema:
type: string
example: 4815000000044972
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/create-a-sales-return-receive-request'
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/create-a-sales-return-receive-response'
deprecated: false
security:
- Zoho_Auth:
- ZohoInventory.salesreturnreceives.CREATE
/salesreturnreceives/{salesreturnreceive_id}:
x-mcp-group:
- Sales Returns
parameters:
- name: salesreturnreceive_id
in: path
required: true
description: Unique identifier of the sales return receive.
schema:
type: string
example: '4815000000044972'
- $ref: '#/components/parameters/organization_id'
delete:
tags:
- salesreturns
operationId: delete_sales_return_receive
summary: Delete a Sales Return Receive
description: Deletes the sales return receive of a sales return.
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/delete-a-sales-return-receive-response'
deprecated: false
security:
- Zoho_Auth:
- ZohoInventory.salesreturnreceives.DELETE
components:
schemas:
create-a-sales-return-receive-request:
required:
- line_items
type: object
properties:
date:
$ref: '#/components/schemas/date'
line_items:
description: The underlying items in a Sales Return
type: array
items:
type: object
properties:
line_item_id:
description: Unique ID generated by the server for each line item. This is used as an identifier.
type: string
example: 4815000000044897
quantity:
$ref: '#/components/schemas/quantity'
mapped_items:
description: Items that are associated with the composite item (kit) in the line item. Applicable only when the line item is a kit type composite item.
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
quantity:
$ref: '#/components/schemas/quantity'
mapped_items:
description: Nested mapped items for kit within kit scenarios.
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
quantity:
$ref: '#/components/schemas/quantity'
serial_numbers:
$ref: '#/components/schemas/serial_numbers'
batches:
$ref: '#/components/schemas/batches'
storages:
$ref: '#/components/schemas/storages'
notes:
$ref: '#/components/schemas/notes'
salesreturn_status:
description: Status of the Sales Return.
type: string
example: approved
serial_numbers:
description: Serial numbers for the line item. Applicable only for items with serial tracking enabled.
type: array
items:
type: string
example: TC-IO-09
refund_status:
description: Refund status of the Sales Return
type: string
example: refunded
mapped_items_receive:
description: Items that are associated with the composite item (kit) in the line item. Applicable only when the line item is a kit type composite item.
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
item_id:
$ref: '#/components/schemas/item_id'
name:
$ref: '#/components/schemas/name'
description:
$ref: '#/components/schemas/description'
unit:
$ref: '#/components/schemas/unit'
quantity:
$ref: '#/components/schemas/quantity'
combo_type:
$ref: '#/components/schemas/combo_type'
mapped_items:
description: Nested mapped items for kit within kit scenarios.
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
item_id:
$ref: '#/components/schemas/item_id'
name:
$ref: '#/components/schemas/name'
description:
$ref: '#/components/schemas/description'
unit:
$ref: '#/components/schemas/unit'
quantity:
$ref: '#/components/schemas/quantity'
combo_type:
$ref: '#/components/schemas/combo_type'
salesorder_id:
description: Unique ID generated by the server for the Sales Order from which the Sales Return is created.
type: string
example: 4815000000044936
update-a-sales-return-response:
type: object
properties:
code:
type: integer
example: 0
readOnly: true
message:
type: string
example: Return updated successfully
readOnly: true
salesreturn:
type: object
properties:
salesreturn_id:
$ref: '#/components/schemas/salesreturn_id'
salesreturn_number:
$ref: '#/components/schemas/salesreturn_number'
date:
$ref: '#/components/schemas/date'
reason:
$ref: '#/components/schemas/reason'
custom_fields:
$ref: '#/components/schemas/custom_fields'
location_id:
$ref: '#/components/schemas/location_id'
location_name:
$ref: '#/components/schemas/location_name'
line_items:
$ref: '#/components/schemas/line_items'
comments:
$ref: '#/components/schemas/comments'
salesreturn_status:
$ref: '#/components/schemas/salesreturn_status'
receive_status:
$ref: '#/components/schemas/receive_status'
refund_status:
$ref: '#/components/schemas/refund_status'
salesorder_id:
$ref: '#/components/schemas/salesorder_id'
salesorder_number:
$ref: '#/components/schemas/salesorder_number'
salesreturnreceives:
description: List of sales return receives for the sales return
type: array
items:
type: object
properties:
receive_id:
$ref: '#/components/schemas/receive_id'
receive_number:
$ref: '#/components/schemas/receive_number'
date:
$ref: '#/components/schemas/date'
notes:
$ref: '#/components/schemas/notes'
line_items:
description: The underlying items in the sales return receive
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
item_id:
$ref: '#/components/schemas/item_id'
name:
$ref: '#/components/schemas/name'
description:
$ref: '#/components/schemas/description'
unit:
$ref: '#/components/schemas/unit'
quantity:
$ref: '#/components/schemas/quantity'
is_combo_product:
$ref: '#/components/schemas/is_combo_product'
combo_type:
$ref: '#/components/schemas/combo_type'
mapped_items:
$ref: '#/components/schemas/mapped_items_receive'
creditnotes:
$ref: '#/components/schemas/creditnotes'
batches-response:
description: Batches tracked for the line item. Returned for items with batch tracking enabled.
type: array
items:
type: object
properties:
batch_id:
description: Unique identifier of the batch.
type: string
example: '6780203000001066789'
batch_number:
description: Batch number.
type: string
example: BTC-TL-890
external_batch_number:
description: External batch number from the manufacturer.
type: string
example: MFR-TL-890
manufacturer_date:
description: Manufacturing date of the batch.
type: string
example: '2026-05-12'
expiry_date:
description: Expiration date of the batch.
type: string
example: '2026-12-24'
in_quantity:
description: Inward quantity recorded for the batch.
type: number
format: float
example: 2
batch_in_id:
description: Unique identifier of the batch entry on the line item.
type: string
example: '6780203000001066797'
storages:
description: Bin/storage locations from which stock was received for this batch.
type: array
x-node_available_in:
- Batch with Bin tracked items
items:
type: object
properties:
storage_id:
description: Unique identifier of the bin/storage location.
type: string
example: '6780203000001066003'
storage_name:
description: Display name of the bin/storage location.
type: string
example: Bin A1
in_quantity:
description: Inward quantity recorded against the bin.
type: number
format: float
example: 2
storage_in_id:
description: Unique identifier of the storage entry on the line item.
type: string
example: '6780203000001066792'
creditnote_id:
description: Unique ID of the credit note generated by the server.
type: string
example: 90300000072369
comment_id:
description: Unique ID generated by the server for the comment(history). This is used as an identifier.
type: string
example: 16115000000097016
commented_by:
description: Indicates the user who performed the action on the purchase order.
type: string
example: John
receive_id:
description: Unique ID generated by the server for the Sales Return Receive. This is used as an identifier.
type: string
example: 4815000000045035
combo_type:
description: Type of the composite item. Allowed values are <code>assembly</code> and <code>kit</code>.
type: string
example: kit
non_receive_quantity:
description: The quantity that cannot be received for the line item.
type: number
format: double
example: 2
creditnotes:
description: List of credit notes associated with a sales return.
type: array
items:
type: object
properties:
creditnote_id:
$ref: '#/components/schemas/creditnote_id'
creditnote_number:
$ref: '#/components/schemas/creditnote_number'
status:
$ref: '#/components/schemas/status'
date:
$ref: '#/components/schemas/date'
total:
$ref: '#/components/schemas/total'
description:
description: Description of the line item.
type: string
example: Just a sample description.
transaction_id:
description: Unique ID generated by the server for the transaction. This is used as an identifier.
type: string
example: 1232423434
storages-response:
description: Bin/storage locations tracked for the line item. Returned for items with bin tracking enabled.
type: array
items:
type: object
properties:
storage_id:
description: Unique identifier of the bin/storage location.
type: string
example: '6780203000000093226'
storage_name:
description: Display name of the bin/storage location.
type: string
example: Bin A2
in_quantity:
description: Inward quantity recorded against the bin.
type: number
format: float
example: 2
storage_in_id:
description: Unique identifier of the storage entry on the line item.
type: string
example: '6780203000001066795'
serial_numbers:
description: Serial numbers allocated to this bin.
type: array
x-node_available_in:
- Serial with Bin tracked items
items:
type: string
example: TC-IO-09
location_id:
description: Location ID
type: string
example: '460000000038080'
line_item_id:
description: Unique ID generated by the server for each line item. This is used as an identifier.
type: string
example: 4815000000044897
name:
description: Name of the line item.
type: string
example: Laptop-white/15inch/dell
mapped_items_update:
description: Items that are associated with the composite item (kit) in the line item. Applicable only when the line item is a kit type composite item.
type: array
items:
type: object
properties:
item_id:
$ref: '#/components/schemas/item_id'
line_item_id:
$ref: '#/components/schemas/line_item_id'
salesorder_item_id:
$ref: '#/components/schemas/salesorder_item_id'
quantity:
$ref: '#/components/schemas/quantity'
non_receive_quantity:
$ref: '#/components/schemas/non_receive_quantity'
location_id:
$ref: '#/components/schemas/location_id'
mapped_items:
description: Nested mapped items for kit within kit scenarios.
type: array
items:
type: object
properties:
item_id:
$ref: '#/components/schemas/item_id'
line_item_id:
$ref: '#/components/schemas/line_item_id'
salesorder_item_id:
$ref: '#/components/schemas/salesorder_item_id'
quantity:
$ref: '#/components/schemas/quantity'
non_receive_quantity:
$ref: '#/components/schemas/non_receive_quantity'
location_id:
$ref: '#/components/schemas/location_id'
status:
description: Status of the credit note.
type: string
example: closed
label:
description: Label of the Custom Field
type: string
customer_id:
description: Unique ID generated by the server for the customer.
type: string
example: 4815000000044080
item_id:
description: Unique ID generated by the server for the item. This is used as an identifier.
type: string
example: 4815000000044100
customer_name:
description: Name of the customer.
type: string
example: Molly
total:
description: Total amount on the credit note.
type: number
format: double
example: 2670
comment_type:
description: Indicates the type of the action
type: string
receive_status:
description: Receive status of the Sales Return
type: string
example: received
delete-a-sales-return-response:
type: object
properties:
code:
type: integer
example: 0
readOnly: true
message:
type: string
example: The Sales Return has been deleted.
readOnly: true
quantity:
description: The quantity that can be received for the line item.
type: number
format: double
example: 3
location_name:
description: Name of the location
type: string
example: Head Office
batches:
description: Batches for the line item. Create a new batch using <code>batch_number</code> or reference an existing batch using <code>batch_id</code>. Applicable only for items with batch tracking enabled.
type: array
items:
type: object
required:
- in_quantity
properties:
batch_id:
description: Unique identifier of a batch. Use when adding inward quantity to an existing batch or updating a batch.
type: string
example: '6780203000001066789'
batch_number:
description: Batch number. Required when creating a new batch.
type: string
example: BTC-TL-890
external_batch_number:
description: External batch number from the manufacturer. Applicable when creating a new batch.
type: string
example: MFR-TL-890
manufacturer_date:
description: Manufacturing date of the batch. Applicable when creating a new batch.
type: string
example: '2026-05-12'
expiry_date:
description: Expiration date of the batch. Applicable when creating a new batch.
type: string
example: '2026-12-24'
in_quantity:
description: Inward quantity for the batch.
type: number
format: float
example: 2
storages:
description: Bin/storage locations allocated for stock received against this batch.
type: array
x-node_available_in:
- Batch with Bin tracked items
items:
type: object
required:
- storage_id
- in_quantity
properties:
storage_id:
description: Unique identifier of the bin/storage location.
type: string
example: '6780203000001066003'
in_quantity:
description: Inward quantity into the bin.
type: number
format: float
example: 2
reason:
description: The reason for raising a Sales Return.
type: string
example: Sample Note
line_items:
description: The underlying items in a Sales Return
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
item_id:
$ref: '#/components/schemas/item_id'
name:
$ref: '#/components/schemas/name'
description:
$ref: '#/components/schemas/description'
unit:
$ref: '#/components/schemas/unit'
rate:
$ref: '#/components/schemas/rate'
salesorder_item_id:
$ref: '#/components/schemas/salesorder_item_id'
quantity:
$ref: '#/components/schemas/quantity'
non_receive_quantity:
$ref: '#/components/schemas/non_receive_quantity'
location_id:
$ref: '#/components/schemas/location_id'
location_name:
$ref: '#/components/schemas/location_name'
is_combo_product:
$ref: '#/components/schemas/is_combo_product'
combo_type:
$ref: '#/components/schemas/combo_type'
mapped_items:
$ref: '#/components/schemas/mapped_items'
date:
description: Date on which the entity was created.
type: string
example: '2015-05-28'
notes:
description: Notes for the current entity.
type: string
example: Sample Note
create-a-sales-return-request:
required:
- line_items
type: object
properties:
salesreturn_number:
$ref: '#/components/schemas/salesreturn_number'
date:
$ref: '#/components/schemas/date'
reason:
$ref: '#/components/schemas/reason'
custom_fields:
$ref: '#/components/schemas/custom_fields'
location_id:
$ref: '#/components/schemas/location_id'
line_items:
description: The underlying items in a Sales Return
type: array
items:
type: object
properties:
item_id:
$ref: '#/components/schemas/item_id'
salesorder_item_id:
$ref: '#/components/schemas/salesorder_item_id'
quantity:
$ref: '#/components/schemas/quantity'
non_receive_quantity:
$ref: '#/components/schemas/non_receive_quantity'
location_id:
$ref: '#/components/schemas/location_id'
mapped_items:
$ref: '#/components/schemas/mapped_items_create'
salesreturn_number:
description: Return Merchandise Authorisation (RMA) number of the Sales Return.
type: string
example: RMA-00001
delete-a-sales-return-receive-response:
type: object
properties:
code:
type: integer
example: 0
readOnly: true
message:
type: string
example: Sales Return Receive Deleted Successfully.
readOnly: true
creditnote_number:
description: Unique number generated (starts with CN) which will be displayed in the interface and credit notes. Max-Length [100]
type: string
example: CN-0029
value:
description: Value of the Custom Field
type: string
example: Normal
customfield_id:
type: string
description: Unique ID of the custom field.
unit:
description: Measurement unit of the line item.
type: string
example: qty
rate:
description: Price of the line item in an entity.
type: number
format: double
example: 122
salesreturn-response:
type: object
properties:
salesreturn_id:
$ref: '#/components/schemas/salesreturn_id'
salesreturn_number:
$ref: '#/components/schemas/salesreturn_number'
date:
$ref: '#/components/schemas/date'
reason:
$ref: '#/components/schemas/reason'
custom_fields:
$ref: '#/components/schemas/custom_fields'
line_items:
$ref: '#/components/schemas/line_items'
location_id:
$ref: '#/components/schemas/location_id'
location_name:
$ref: '#/components/schemas/location_name'
comments:
$ref: '#/components/schemas/comments'
salesreturn_status:
$ref: '#/components/schemas/salesreturn_status'
salesorder_id:
$ref: '#/components/schemas/salesorder_id'
salesorder_number:
$ref: '#/components/schemas/salesorder_number'
salesorder_number:
description: Unique sales order number for each sales order.
type: string
example: SO-00032
create-a-sales-return-receive-response:
type: object
properties:
code:
type: integer
example: 0
readOnly: true
message:
type: string
example: Sales Return Receive Created Successfully
readOnly: true
salesreturn:
type: object
properties:
receive_id:
$ref: '#/components/schemas/receive_id'
receive_number:
$ref: '#/components/schemas/receive_number'
salesreturn_id:
$ref: '#/components/schemas/salesreturn_id'
salesreturn_number:
$ref: '#/components/schemas/salesreturn_number'
date:
$ref: '#/components/schemas/date'
line_items:
description: The underlying items in a Sales Return
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
item_id:
$ref: '#/components/schemas/item_id'
name:
$ref: '#/components/schemas/name'
description:
$ref: '#/components/schemas/description'
unit:
$ref: '#/components/schemas/unit'
quantity:
$ref: '#/components/schemas/quantity'
is_combo_product:
$ref: '#/components/schemas/is_combo_product'
combo_type:
$ref: '#/components/schemas/combo_type'
mapped_items:
$ref: '#/components/schemas/mapped_items_receive'
serial_numbers:
$ref: '#/components/schemas/serial_numbers'
batches:
$ref: '#/components/schemas/batches-response'
storages:
$ref: '#/components/schemas/storages-response'
notes:
$ref: '#/components/schemas/notes'
receive_number:
description: Unique Sales Return Receive Number
type: string
example: PR-00002
update-a-sales-return-request:
required:
- line_items
type: object
properties:
salesreturn_number:
$ref: '#/components/schemas/salesreturn_number'
date:
$ref: '#/components/schemas/date'
reason:
$ref: '#/components/schemas/reason'
custom_fields:
$ref: '#/components/schemas/custom_fields'
location_id:
$ref: '#/components/schemas/location_id'
line_items:
description: The underlying items in a Sales Return
type: array
items:
type: object
properties:
line_item_id:
$ref: '#/components/schemas/line_item_id'
item_id:
$ref: '#/components/schemas/item_id'
salesorder_item_id:
$ref: '#/components/schemas/salesorder_item_id'
quantity:
$ref: '#/components/schemas/quantity'
non_receive_quantity:
$ref: '#/components/schemas/non_receive_quantity'
locati
# --- truncated at 32 KB (44 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/zoho-inventory/refs/heads/main/openapi/zoho-inventory-salesreturns-api-openapi.yml