Purchase Receives

Purchase Receives AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

A new purchase receive can be created. To create a purchase receive, the URL parameter purchaseorder_id is needed.

Download Purchase Receives OpenAPI Document
End Points
Create a purchase receive
List all purchase receives
Delete purchase receives in bulk
Update a purchase receive
Retrieve a purchase receive
Delete a purchase receive
Submit a purchase receive for approval
Approve a purchase receive
Reject a purchase receive
Mark a purchase receive as received
Mark a purchase receive as in transit
Mark purchase receives as received in bulk
Mark purchase receives as in transit in bulk
Add an attachment to a purchase receive
Get a purchase receive attachment
Delete a purchase receive attachment
Add a comment to a purchase receive
Delete a purchase receive comment

Attribute

purchaseorder_id
string
Unique ID generated by the server for the Purchase Order.
purchaseorder_number
string
Purchase Order number.
receive_id
string
Unique ID generated by the server for the Purchase Receive. This is used as identifier.
receive_number
string
Number of the Purchase Receive.
date
string
Date of the purchase receive. Format: yyyy-MM-dd.
status
string
Overall status of the purchase receive.
received_status
string
Received status of the purchase receive. Allowed values: draft, in_transit, received.
billed_status
string
Billing status of the purchase receive. Allowed values: billed, partially_billed, unbilled.
is_billed
boolean
Whether the purchase receive has been fully billed.
is_po_marked_as_received
boolean
Whether the associated purchase order has been marked as received.
branch_id
string
Unique identifier of the branch associated with the purchase receive.
branch_name
string
Name of the branch associated with the purchase receive.
location_id
string
Unique identifier of the warehouse location at the header level.
location_name
string
Name of the warehouse location at the header level.
vendor_id
string
Unique ID generated by the server for the vendor.
vendor_name
string
Name of the vendor.
total_quantity_received
double
Total quantity of items received.
notes
string
Purchase Receive notes.
custom_fields
array
Custom fields for a purchasereceive.
Show Sub-Attributes arrow
customfield_id
string
Unique identifier of the custom field
value
string
Value of the Custom Field
line_items
array
Line items of the purchase receive. Each line item contains line_item_id, item_id, name, description, item_order, quantity and unit.
Show Sub-Attributes arrow
line_item_id
string
Unique ID generated by the server for each line item. This is used as an identifier.
item_id
string
Unique ID generated by the server for the item. This is used as an identifier.
name
string
Name of the line item.
description
string
Description of the line item.
item_order
integer
The order of the line items, starts from 0 by default.
quantity
double
Quantity of the line item.
unit
string
Unit of line item.
rate
double
Rate of the line item.
item_total
double
Total amount for the line item.
warehouse_id
string
Unique identifier of the warehouse.
serial_numbers
array
Serial numbers for items tracked by serial number.
batches
array
Batch tracking details for items tracked by batch.
Show Sub-Attributes arrow
batch_number
string
Batch number.
quantity_in
double
Quantity received in this batch.
manufacturer_batch_number
string
Manufacturer-assigned batch number.
manufactured_date
string
Date the batch was manufactured. Format: yyyy-MM-dd.
expiry_date
string
Batch expiry date. Format: yyyy-MM-dd.
storages
array
Storage-location tracking details for items tracked by storage.
Show Sub-Attributes arrow
storage_id
string
Unique identifier of the storage location.
quantity
double
Quantity stored at this location.
documents
array
List of documents attached to the purchase receive.
Show Sub-Attributes arrow
document_id
string
Unique identifier of the document.
file_name
string
Name of the document file.
file_type
string
Type of the document file.
file_size
integer
Size of the document in bytes.
comments
array
List of comments on the purchase receive.
Show Sub-Attributes arrow
comment_id
string
Unique identifier of the comment.
purchasereceive_id
string
Unique identifier of the associated purchase receive.
description
string
Comment text.
commented_by_id
string
Unique identifier of the user who posted the comment.
commented_by
string
Name of the user who posted the comment.
comment_type
string
Type of the comment.
date
string
Date and time when the comment was posted.
bills
array
List of bills associated with the purchase receive.
Show Sub-Attributes arrow
bill_id
string
Unique identifier of the bill.
bill_number
string
Number of the bill.
status
string
Status of the bill.
date
string
Date of the bill.
due_date
string
Due date of the bill.
total
double
Total amount of the bill.
balance
double
Outstanding balance on the bill.
billing_address
object
Vendor's billing address. It contains - address, city, state, zip, country and fax.
Show Sub-Attributes arrow
address
string
Street address of the vendor.
street2
string
Second line of the street address.
city
string
City of the vendor's address.
state
string
State of the vendor's address.
zip
string
ZIP Code of the vendor's address.
country
string
Country of the vendor's address.
fax
string
Fax number of the vendor.
phone
string
Phone number.
attention
string
Attention to person.
shipping_address
object
Vendor's shipping address. It contains - address, city, state, zip, country and fax.
Show Sub-Attributes arrow
address
string
Street address of the vendor.
street2
string
Second line of the street address.
city
string
City of the vendor's address.
state
string
State of the vendor's address.
zip
string
ZIP Code of the vendor's address.
country
string
Country of the vendor's address.
fax
string
Fax number of the vendor.
phone
string
Phone number.
attention
string
Attention to person.
tracking_number
string
Tracking number for the shipment.
expected_delivery_date
string
Expected delivery date and time for the shipment.
shipment_delivered_date
string
Date and time when the shipment was delivered.
carrier
string
Name of the shipping carrier.
delivery_method
string
Delivery method used for the shipment.
delivery_method_id
string
Unique identifier of the delivery method.
created_time
string
Time at which the purchase receive was created.
last_modified_time
string
Time at which the purchase receive was last modified.
created_by_id
string
Unique identifier of the user who created the purchase receive.
last_modified_by_id
string
Unique identifier of the user who last modified the purchase receive.
owner_id
string
Unique identifier of the user who owns the purchase receive.
submitted_date
string
Date on which the purchase receive was submitted for approval. Format: yyyy-MM-dd.
submitted_by
string
Unique identifier of the user who submitted the purchase receive.
submitted_by_name
string
Name of the user who submitted the purchase receive.
submitted_by_email
string
Email of the user who submitted the purchase receive.
submitted_by_photo_url
string
URL to the photo of the user who submitted the purchase receive.
approver_id
string
Unique identifier of the approver assigned to the purchase receive.
approval_reason
string
Reason provided while approving or rejecting the purchase receive.
approvals
array
List of approval records for the purchase receive.
Show Sub-Attributes arrow
approver_id
string
Unique identifier of the approver.
approver_name
string
Name of the approver.
status
string
Approval status recorded for this approver.
approved_date
string
Date on which the approval was recorded.
is_tracking_supported
boolean
Whether shipment tracking is supported for this purchase receive.
is_tracking_enabled
boolean
Whether shipment tracking is enabled for this purchase receive.

Example

{ "purchaseorder_id": "4815000000044972", "purchaseorder_number": "PO-00002", "receive_id": "4815000000045035", "receive_number": "PR-00002", "date": "2024-06-15", "status": "received", "received_status": "received", "billed_status": "partially_billed", "is_billed": true, "is_po_marked_as_received": false, "branch_id": "4815000000049050", "branch_name": "Head Office", "location_id": "4815000000049001", "location_name": "Head Office", "vendor_id": "4815000000044080", "vendor_name": "Molly", "total_quantity_received": 10, "notes": "Sample Note.", "custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "line_items": [ { "line_item_id": "4815000000044897", "item_id": "4815000000044100", "name": "Laptop-white/15inch/dell", "description": "Just a sample description.", "item_order": 0, "quantity": 2, "unit": "qty", "rate": 1000, "item_total": 2000, "warehouse_id": "4815000000049002", "serial_numbers": [ "SN-001" ], "batches": [ { "batch_number": "BATCH-001", "quantity_in": 5, "manufacturer_batch_number": "MFG-001", "manufactured_date": "2024-05-01", "expiry_date": "2025-05-01" } ], "storages": [ { "storage_id": "4815000000049020", "quantity": 5 } ] } ], "documents": [ { "document_id": "4815000000045060", "file_name": "receipt.pdf", "file_type": "pdf", "file_size": 12345 } ], "comments": [ { "comment_id": "4815000000045070", "purchasereceive_id": "4815000000045035", "description": "Items received and verified.", "commented_by_id": "4815000000000001", "commented_by": "John Smith", "comment_type": "system", "date": "2024-06-15T10:45:00.000Z" } ], "bills": [ { "bill_id": "4815000000046001", "bill_number": "BILL-00001", "status": "open", "date": "2024-06-20", "due_date": "2024-07-20", "total": 2100, "balance": 2100 } ], "billing_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "shipping_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "tracking_number": "TRK123456789", "tracking_link": "https://www.fedex.com/track?trknbr=TRK123456789", "expected_delivery_date": "2024-06-20T10:00:00.000+0530", "shipment_delivered_date": "2024-06-18T14:30:00.000+0530", "carrier": "FedEx", "delivery_method": "FedEx", "delivery_method_id": "4815000000049010", "created_time": "2024-06-15T10:30:00.000+0530", "last_modified_time": "2024-06-15T10:30:00.000+0530", "created_by_id": "4815000000000001", "last_modified_by_id": "4815000000000001", "owner_id": "4815000000000001", "submitted_date": "2024-06-15", "submitted_by": "4815000000000001", "submitted_by_name": "John Smith", "submitted_by_email": "john.smith@example.com", "submitted_by_photo_url": "https://contacts.zoho.com/file?ID=12345&fs=thumb", "approver_id": "4815000000000002", "approval_reason": "Items verified successfully.", "approvals": [ { "approver_id": "4815000000000002", "approver_name": "Jane Approver", "status": "approved", "approved_date": "2024-06-15" } ], "is_tracking_supported": true, "is_tracking_enabled": true }

Create a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

A new purchase receive can be created. To create a purchase receive, the URL parameter purchaseorder_id is needed.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Arguments

receive_number
string
Number of the Purchase Receive.
date
string
Date of the purchase receive. Format: yyyy-MM-dd.
status
string
Status of the purchase receive. Allowed values: in_transit, received.
notes
string
Purchase Receive notes.
terms
string
Terms and conditions of the purchase receive. Max-length [10000].
reference_number
string
Reference number for the purchase receive. Max-length [50].
custom_fields
array
Custom fields for a purchasereceive.
Show Sub-Attributes arrow
customfield_id
string
Unique identifier of the custom field
value
string
Value of the Custom Field
line_items
array
(Required)
Line items of the purchase receive.
Show Sub-Attributes arrow
line_item_id
string
Purchase order line item ID to map this receive line item.
quantity
double
Quantity of the item being received.
item_custom_fields
array
Custom fields defined at the line-item level.
Show Sub-Attributes arrow
customfield_id
string
Unique identifier of the custom field
value
string
Value of the Custom Field
serial_numbers
array
Serial numbers for items tracked by serial number.
batches
array
Batch tracking details for items tracked by batch.
Show Sub-Attributes arrow
batch_number
string
Batch number.
quantity_in
double
Quantity received in this batch.
manufacturer_batch_number
string
Manufacturer-assigned batch number.
manufactured_date
string
Date the batch was manufactured. Format: yyyy-MM-dd.
expiry_date
string
Batch expiry date. Format: yyyy-MM-dd.
storages
array
Storage-location tracking details for items tracked by storage.
Show Sub-Attributes arrow
storage_id
string
Unique identifier of the storage location.
quantity
double
Quantity stored at this location.

Query Parameters

organization_id
string
(Required)
ID of the organization
purchaseorder_id
string
(Required)
Unique identifier of the purchase order for which the purchase receive is created.
ignore_auto_number_generation
boolean
Ignore auto purchase receive number generation for this purchase receive. This mandates the purchase receive number. Allowed values are true and false.

Request Example

Click to copy
parameters_data='{"field1":"value1","field2":"value2"}'; headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&purchaseorder_id=4815000000044972" type: POST headers: headers_data content-type: application/json parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}"); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&purchaseorder_id=4815000000044972") .post(body) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .addHeader("content-type", "application/json") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f', 'content-type': 'application/json' }, body: '{"field1":"value1","field2":"value2"}' }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&purchaseorder_id=4815000000044972', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}" headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", 'content-type': "application/json" } conn.request("POST", "/inventory/v1/purchasereceives?organization_id=10234695&purchaseorder_id=4815000000044972", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives?organization_id=10234695&purchaseorder_id=4815000000044972", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", "content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({field1: 'value1', field2: 'value2'})); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&purchaseorder_id=4815000000044972' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \ --header 'content-type: application/json' \ --data '{"field1":"value1","field2":"value2"}'

Body Parameters

Click to copy
{ "receive_number": "PR-00002", "date": "2024-06-15", "status": "received", "notes": "Sample Note.", "terms": "Standard terms and conditions apply.", "reference_number": "REF-00123", "custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "line_items": [ { "line_item_id": "4815000000044897", "quantity": 10, "item_custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "serial_numbers": [ "SN-001" ], "batches": [ { "batch_number": "BATCH-001", "quantity_in": 5, "manufacturer_batch_number": "MFG-001", "manufactured_date": "2024-05-01", "expiry_date": "2025-05-01" } ], "storages": [ { "storage_id": "4815000000049020", "quantity": 5 } ] } ] }

Response Example

{ "code": 0, "message": "success", "purchase_receive": { "purchaseorder_id": "4815000000044972", "purchaseorder_number": "PO-00002", "receive_id": "4815000000045035", "receive_number": "PR-00002", "date": "2024-06-15", "status": "received", "received_status": "received", "billed_status": "partially_billed", "is_billed": true, "is_po_marked_as_received": false, "branch_id": "4815000000049050", "branch_name": "Head Office", "location_id": "4815000000049001", "location_name": "Head Office", "vendor_id": "4815000000044080", "vendor_name": "Molly", "total_quantity_received": 10, "notes": "Sample Note.", "custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "line_items": [ { "line_item_id": "4815000000044897", "item_id": "4815000000044100", "name": "Laptop-white/15inch/dell", "description": "Just a sample description.", "item_order": 0, "quantity": 2, "unit": "qty", "rate": 1000, "item_total": 2000, "warehouse_id": "4815000000049002", "serial_numbers": [ "SN-001" ], "batches": [ { "batch_number": "BATCH-001", "quantity_in": 5, "manufacturer_batch_number": "MFG-001", "manufactured_date": "2024-05-01", "expiry_date": "2025-05-01" } ], "storages": [ { "storage_id": "4815000000049020", "quantity": 5 } ] } ], "documents": [ { "document_id": "4815000000045060", "file_name": "receipt.pdf", "file_type": "pdf", "file_size": 12345 } ], "comments": [ { "comment_id": "4815000000045070", "purchasereceive_id": "4815000000045035", "description": "Items received and verified.", "commented_by_id": "4815000000000001", "commented_by": "John Smith", "comment_type": "system", "date": "2024-06-15T10:45:00.000Z" } ], "bills": [ { "bill_id": "4815000000046001", "bill_number": "BILL-00001", "status": "open", "date": "2024-06-20", "due_date": "2024-07-20", "total": 2100, "balance": 2100 } ], "billing_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "shipping_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "tracking_number": "TRK123456789", "tracking_link": "https://www.fedex.com/track?trknbr=TRK123456789", "expected_delivery_date": "2024-06-20T10:00:00.000+0530", "shipment_delivered_date": "2024-06-18T14:30:00.000+0530", "carrier": "FedEx", "delivery_method": "FedEx", "delivery_method_id": "4815000000049010", "created_time": "2024-06-15T10:30:00.000+0530", "last_modified_time": "2024-06-15T10:30:00.000+0530", "created_by_id": "4815000000000001", "last_modified_by_id": "4815000000000001", "owner_id": "4815000000000001", "submitted_date": "2024-06-15", "submitted_by": "4815000000000001", "submitted_by_name": "John Smith", "submitted_by_email": "john.smith@example.com", "submitted_by_photo_url": "https://contacts.zoho.com/file?ID=12345&fs=thumb", "approver_id": "4815000000000002", "approval_reason": "Items verified successfully.", "approvals": [ { "approver_id": "4815000000000002", "approver_name": "Jane Approver", "status": "approved", "approved_date": "2024-06-15" } ], "is_tracking_supported": true, "is_tracking_enabled": true } }

List all purchase receives AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

List all purchase receives, with options to filter by status, vendor, date range, and other criteria.
OAuth Scope : ZohoInventory.purchasereceives.READ

Query Parameters

organization_id
string
(Required)
ID of the organization
filter_by
string
Filter purchase receives by date range or status. Allowed values: ReceiveDate.Today, ReceiveDate.ThisWeek, ReceiveDate.ThisMonth, ReceiveDate.ThisQuarter, ReceiveDate.ThisYear, ReceiveDate.PreviousDay, ReceiveDate.PreviousWeek, ReceiveDate.PreviousMonth, ReceiveDate.PreviousQuarter, ReceiveDate.PreviousYear, ReceiveDate.CustomDate, Status.All, Status.InTransit, Status.Received, Status.Billed, Status.PartiallyBilled.
status
string
Filter by status. Allowed values: in_transit, received, billed, partially_billed.
vendor_id
string
Filter purchase receives by vendor ID.
from_date
string
Start date for filtering purchase receives. Format: yyyy-MM-dd.
to_date
string
End date for filtering purchase receives. Format: yyyy-MM-dd.
search_text
string
Search purchase receives by purchase receive number, vendor name, or purchase order number.
sort_column
string
Sort purchase receives by a specific column. Allowed values: receive_date, created_time, last_modified_time, purchaseorder_number, purchasereceive_number.
warehouse_id
string
Filter purchase receives by warehouse ID.
location_id
string
Filter purchase receives by location ID.
receive_date
string
Filter purchase receives by receive date. Supports modifiers such as receive_date_start, receive_date_end, receive_date_before, and receive_date_after. Format: yyyy-MM-dd.
vendor_name
string
Filter purchase receives by vendor name. Supports modifiers such as vendor_name_startswith and vendor_name_contains.
purchasereceive_number
string
Filter purchase receives by purchase receive number. Supports modifiers such as purchasereceive_number_startswith and purchasereceive_number_contains.
purchaseorder_number
string
Filter purchase receives by the associated purchase order number. Supports modifiers such as purchaseorder_number_startswith and purchaseorder_number_contains.
tracking_number
string
Filter purchase receives by tracking number. Supports modifiers such as tracking_number_startswith and tracking_number_contains.
page
integer
Page number to be listed. Default value is 1.
per_page
integer
Number of records to be listed per page. Default value is 200.

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695" type: GET headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695") .get() .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'GET', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("GET", "/inventory/v1/purchasereceives?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "GET", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request GET \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "success", "purchasereceives": [ { "purchasereceive_id": "4815000000045035", "purchasereceive_number": "PR-00002", "receive_date": "2024-06-15", "status": "received", "received_status": "received", "billed_status": "partially_billed", "vendor_id": "4815000000044080", "vendor_name": "Molly", "purchaseorder_id": "4815000000044972", "purchaseorder_number": "PO-00002", "is_salesreturn": false, "quantity_received": 10, "has_attachment": false, "branch_id": "4815000000049050", "branch_name": "Head Office", "location_id": "4815000000049001", "location_name": "Head Office", "created_time": "2024-06-15T10:30:00.000+0530", "last_modified_time": "2024-06-15T10:30:00.000+0530" }, {...}, {...} ], "page_context": { "page": 1, "per_page": 200, "has_more_page": false, "sort_column": "created_time", "sort_order": "A", "applied_filter": "Status.All", "report_name": "Purchase Receives" } }

Delete purchase receives in bulk AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Delete multiple purchase receives at once. A maximum of 25 purchase receives can be deleted in a single request.
OAuth Scope : ZohoInventory.purchasereceives.DELETE

Query Parameters

organization_id
string
(Required)
ID of the organization
receive_ids
string
(Required)
Comma-separated list of purchase receive IDs to be deleted. Maximum 25.

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&receive_ids=4815000000045035,4815000000045036" type: DELETE headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&receive_ids=4815000000045035%2C4815000000045036") .delete(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'DELETE', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&receive_ids=4815000000045035%2C4815000000045036', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("DELETE", "/inventory/v1/purchasereceives?organization_id=10234695&receive_ids=4815000000045035%2C4815000000045036", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "DELETE", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives?organization_id=10234695&receive_ids=4815000000045035%2C4815000000045036", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request DELETE \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives?organization_id=10234695&receive_ids=4815000000045035%2C4815000000045036' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "Purchase Receive Deleted Successfully." }

Update a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Update an existing purchase receive in Zoho Inventory.
OAuth Scope : ZohoInventory.purchasereceives.UPDATE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization
ignore_auto_number_generation
boolean
Ignore auto purchase receive number generation for this purchase receive. This mandates the purchase receive number. Allowed values are true and false.

Request Example

Click to copy
parameters_data='{"field1":"value1","field2":"value2"}'; headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695" type: PUT headers: headers_data content-type: application/json parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}"); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695") .put(body) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .addHeader("content-type", "application/json") .build(); Response response = client.newCall(request).execute();
const options = { method: 'PUT', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f', 'content-type': 'application/json' }, body: '{"field1":"value1","field2":"value2"}' }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}" headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", 'content-type': "application/json" } conn.request("PUT", "/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "PUT", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", "content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({field1: 'value1', field2: 'value2'})); req.end();
curl --request PUT \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \ --header 'content-type: application/json' \ --data '{"field1":"value1","field2":"value2"}'

Body Parameters

Click to copy
{ "receive_number": "PR-00002", "date": "2024-06-15", "status": "received", "notes": "Sample Note.", "terms": "Standard terms and conditions apply.", "reference_number": "REF-00123", "custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "line_items": [ { "line_item_id": "4815000000044897", "quantity": 10, "item_custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "serial_numbers": [ "SN-001" ], "batches": [ { "batch_number": "BATCH-001", "quantity_in": 5, "manufacturer_batch_number": "MFG-001", "manufactured_date": "2024-05-01", "expiry_date": "2025-05-01" } ], "storages": [ { "storage_id": "4815000000049020", "quantity": 5 } ], "receive_item_id": "4815000000045040" } ] }

Response Example

{ "code": 0, "message": "success", "purchase_receive": { "purchaseorder_id": "4815000000044972", "purchaseorder_number": "PO-00002", "receive_id": "4815000000045035", "receive_number": "PR-00002", "date": "2024-06-15", "status": "received", "received_status": "received", "billed_status": "partially_billed", "is_billed": true, "is_po_marked_as_received": false, "branch_id": "4815000000049050", "branch_name": "Head Office", "location_id": "4815000000049001", "location_name": "Head Office", "vendor_id": "4815000000044080", "vendor_name": "Molly", "total_quantity_received": 10, "notes": "Sample Note.", "custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "line_items": [ { "line_item_id": "4815000000044897", "item_id": "4815000000044100", "name": "Laptop-white/15inch/dell", "description": "Just a sample description.", "item_order": 0, "quantity": 2, "unit": "qty", "rate": 1000, "item_total": 2000, "warehouse_id": "4815000000049002", "serial_numbers": [ "SN-001" ], "batches": [ { "batch_number": "BATCH-001", "quantity_in": 5, "manufacturer_batch_number": "MFG-001", "manufactured_date": "2024-05-01", "expiry_date": "2025-05-01" } ], "storages": [ { "storage_id": "4815000000049020", "quantity": 5 } ] } ], "documents": [ { "document_id": "4815000000045060", "file_name": "receipt.pdf", "file_type": "pdf", "file_size": 12345 } ], "comments": [ { "comment_id": "4815000000045070", "purchasereceive_id": "4815000000045035", "description": "Items received and verified.", "commented_by_id": "4815000000000001", "commented_by": "John Smith", "comment_type": "system", "date": "2024-06-15T10:45:00.000Z" } ], "bills": [ { "bill_id": "4815000000046001", "bill_number": "BILL-00001", "status": "open", "date": "2024-06-20", "due_date": "2024-07-20", "total": 2100, "balance": 2100 } ], "billing_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "shipping_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "tracking_number": "TRK123456789", "tracking_link": "https://www.fedex.com/track?trknbr=TRK123456789", "expected_delivery_date": "2024-06-20T10:00:00.000+0530", "shipment_delivered_date": "2024-06-18T14:30:00.000+0530", "carrier": "FedEx", "delivery_method": "FedEx", "delivery_method_id": "4815000000049010", "created_time": "2024-06-15T10:30:00.000+0530", "last_modified_time": "2024-06-15T10:30:00.000+0530", "created_by_id": "4815000000000001", "last_modified_by_id": "4815000000000001", "owner_id": "4815000000000001", "submitted_date": "2024-06-15", "submitted_by": "4815000000000001", "submitted_by_name": "John Smith", "submitted_by_email": "john.smith@example.com", "submitted_by_photo_url": "https://contacts.zoho.com/file?ID=12345&fs=thumb", "approver_id": "4815000000000002", "approval_reason": "Items verified successfully.", "approvals": [ { "approver_id": "4815000000000002", "approver_name": "Jane Approver", "status": "approved", "approved_date": "2024-06-15" } ], "is_tracking_supported": true, "is_tracking_enabled": true } }

Retrieve a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Retrieve a purchase receive from Zoho Inventory.
OAuth Scope : ZohoInventory.purchasereceives.READ

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization
print
boolean
Set to true to retrieve the printable format of the purchase receive.

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695" type: GET headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695") .get() .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'GET', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("GET", "/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "GET", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request GET \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "success", "purchase_receive": { "purchaseorder_id": "4815000000044972", "purchaseorder_number": "PO-00002", "receive_id": "4815000000045035", "receive_number": "PR-00002", "date": "2024-06-15", "status": "received", "received_status": "received", "billed_status": "partially_billed", "is_billed": true, "is_po_marked_as_received": false, "branch_id": "4815000000049050", "branch_name": "Head Office", "location_id": "4815000000049001", "location_name": "Head Office", "vendor_id": "4815000000044080", "vendor_name": "Molly", "total_quantity_received": 10, "notes": "Sample Note.", "custom_fields": [ { "customfield_id": "46000000012845", "value": "Normal" } ], "line_items": [ { "line_item_id": "4815000000044897", "item_id": "4815000000044100", "name": "Laptop-white/15inch/dell", "description": "Just a sample description.", "item_order": 0, "quantity": 2, "unit": "qty", "rate": 1000, "item_total": 2000, "warehouse_id": "4815000000049002", "serial_numbers": [ "SN-001" ], "batches": [ { "batch_number": "BATCH-001", "quantity_in": 5, "manufacturer_batch_number": "MFG-001", "manufactured_date": "2024-05-01", "expiry_date": "2025-05-01" } ], "storages": [ { "storage_id": "4815000000049020", "quantity": 5 } ] } ], "documents": [ { "document_id": "4815000000045060", "file_name": "receipt.pdf", "file_type": "pdf", "file_size": 12345 } ], "comments": [ { "comment_id": "4815000000045070", "purchasereceive_id": "4815000000045035", "description": "Items received and verified.", "commented_by_id": "4815000000000001", "commented_by": "John Smith", "comment_type": "system", "date": "2024-06-15T10:45:00.000Z" } ], "bills": [ { "bill_id": "4815000000046001", "bill_number": "BILL-00001", "status": "open", "date": "2024-06-20", "due_date": "2024-07-20", "total": 2100, "balance": 2100 } ], "billing_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "shipping_address": { "address": "No:234,90 Church Street", "street2": "Suite 100", "city": "New York City", "state": "New York", "zip": "10048", "country": "U.S.A", "fax": "324-524242", "phone": "212-5550123", "attention": "John Smith" }, "tracking_number": "TRK123456789", "tracking_link": "https://www.fedex.com/track?trknbr=TRK123456789", "expected_delivery_date": "2024-06-20T10:00:00.000+0530", "shipment_delivered_date": "2024-06-18T14:30:00.000+0530", "carrier": "FedEx", "delivery_method": "FedEx", "delivery_method_id": "4815000000049010", "created_time": "2024-06-15T10:30:00.000+0530", "last_modified_time": "2024-06-15T10:30:00.000+0530", "created_by_id": "4815000000000001", "last_modified_by_id": "4815000000000001", "owner_id": "4815000000000001", "submitted_date": "2024-06-15", "submitted_by": "4815000000000001", "submitted_by_name": "John Smith", "submitted_by_email": "john.smith@example.com", "submitted_by_photo_url": "https://contacts.zoho.com/file?ID=12345&fs=thumb", "approver_id": "4815000000000002", "approval_reason": "Items verified successfully.", "approvals": [ { "approver_id": "4815000000000002", "approver_name": "Jane Approver", "status": "approved", "approved_date": "2024-06-15" } ], "is_tracking_supported": true, "is_tracking_enabled": true } }

Delete a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Delete a purchase receive from Zoho Inventory.
OAuth Scope : ZohoInventory.purchasereceives.DELETE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695" type: DELETE headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695") .delete(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'DELETE', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("DELETE", "/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "DELETE", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request DELETE \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "Purchase Receive Deleted Successfully." }

Submit a purchase receive for approval AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Submit a purchase receive for approval.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/submit?organization_id=10234695" type: POST headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/submit?organization_id=10234695") .post(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/submit?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("POST", "/inventory/v1/purchasereceives/4815000000045035/submit?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/submit?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/submit?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "The purchase receive has been submitted for approval." }

Approve a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Approve a purchase receive that has been submitted for approval.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/approve?organization_id=10234695" type: POST headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/approve?organization_id=10234695") .post(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/approve?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("POST", "/inventory/v1/purchasereceives/4815000000045035/approve?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/approve?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/approve?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "The purchase receive has been approved." }

Reject a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Reject a purchase receive that has been submitted for approval.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization
reason
string
Reason for rejecting the purchase receive. Max length [500].

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/reject?organization_id=10234695" type: POST headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/reject?organization_id=10234695") .post(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/reject?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("POST", "/inventory/v1/purchasereceives/4815000000045035/reject?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/reject?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/reject?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "The purchase receive has been rejected." }

Mark a purchase receive as received AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Mark a purchase receive as received.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization
date
string
Date on which the items were received. Format: yyyy-MM-dd.

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasreceived?organization_id=10234695" type: POST headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasreceived?organization_id=10234695") .post(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasreceived?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("POST", "/inventory/v1/purchasereceives/4815000000045035/setstatusasreceived?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/setstatusasreceived?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasreceived?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "The purchase receive has been marked as received." }

Mark a purchase receive as in transit AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Mark a purchase receive as in transit.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasintransit?organization_id=10234695" type: POST headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasintransit?organization_id=10234695") .post(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasintransit?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("POST", "/inventory/v1/purchasereceives/4815000000045035/setstatusasintransit?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/setstatusasintransit?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/setstatusasintransit?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "The purchase receive has been marked as in transit." }

Mark purchase receives as received in bulk AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Mark multiple purchase receives as received.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Arguments

purchasereceives
array
(Required)
List of purchase receives to update.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
parameters_data='{"field1":"value1","field2":"value2"}'; headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasreceived?organization_id=10234695" type: POST headers: headers_data content-type: application/json parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}"); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasreceived?organization_id=10234695") .post(body) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .addHeader("content-type", "application/json") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f', 'content-type': 'application/json' }, body: '{"field1":"value1","field2":"value2"}' }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasreceived?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}" headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", 'content-type': "application/json" } conn.request("POST", "/inventory/v1/purchasereceives/setstatusasreceived?organization_id=10234695", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/setstatusasreceived?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", "content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({field1: 'value1', field2: 'value2'})); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasreceived?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \ --header 'content-type: application/json' \ --data '{"field1":"value1","field2":"value2"}'

Body Parameters

Click to copy
{ "purchasereceives": [ { "receive_id": "5000000023151" }, { "receive_id": "5000000076261" } ] }

Response Example

{ "code": 0, "message": "The purchase receive has been marked as received." }

Mark purchase receives as in transit in bulk AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Mark multiple purchase receives as in transit.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Arguments

purchasereceives
array
(Required)
List of purchase receives to update.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
parameters_data='{"field1":"value1","field2":"value2"}'; headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasintransit?organization_id=10234695" type: POST headers: headers_data content-type: application/json parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}"); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasintransit?organization_id=10234695") .post(body) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .addHeader("content-type", "application/json") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f', 'content-type': 'application/json' }, body: '{"field1":"value1","field2":"value2"}' }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasintransit?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}" headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", 'content-type': "application/json" } conn.request("POST", "/inventory/v1/purchasereceives/setstatusasintransit?organization_id=10234695", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/setstatusasintransit?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", "content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({field1: 'value1', field2: 'value2'})); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/setstatusasintransit?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \ --header 'content-type: application/json' \ --data '{"field1":"value1","field2":"value2"}'

Body Parameters

Click to copy
{ "purchasereceives": [ { "receive_id": "5000000023151" }, { "receive_id": "5000000076261" } ] }

Response Example

{ "code": 0, "message": "The purchase receive has been marked as in transit." }

Add an attachment to a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Attach a file to an existing purchase receive. Maximum file size is 10 MB. Up to 20 files can be attached.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Arguments

attachment
binary
File to attach to the purchase receive. A maximum of 20 files can be associated with a purchase receive, each up to 10 MB. Allowed extensions: gif, png, jpeg, jpg, bmp, webp, pdf, xls, xlsx, doc, docx, xml, csv, txt, tif, tiff, msg, eml, dwg, ai, eps, ppt, pptx, odt, ods, odf, rtf, json, zip, rar, 7z, key, numbers, pages, dst, asice.

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
parameters_data = Map(); parameters_data.put("field1", "value1") parameters_data.put("field2", "value2") headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/attachment?organization_id=10234695" type: POST headers: headers_data parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001"); RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n"); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/attachment?organization_id=10234695") .post(body) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001") .build(); Response response = client.newCall(request).execute();
const form = new FormData(); form.append("field1", "value1"); form.append("field2", "value2"); const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f', 'content-type': 'multipart/form-data; boundary=---011000010111000001101001' } }; options.body = form; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/attachment?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n" headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", 'content-type': "multipart/form-data; boundary=---011000010111000001101001" } conn.request("POST", "/inventory/v1/purchasereceives/4815000000045035/attachment?organization_id=10234695", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/attachment?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", "content-type": "multipart/form-data; boundary=---011000010111000001101001" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n"); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/attachment?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \ --header 'content-type: multipart/form-data' \ --form field1=value1 \ --form field2=value2

Body Parameters

Click to copy
{ "attachment": "string" }

Response Example

{ "code": 0, "message": "The document has been attached.", "documents": [ { "document_id": "4815000000045060", "file_name": "receipt.pdf" }, {...}, {...} ] }

Get a purchase receive attachment AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Retrieve or download an attachment from a purchase receive.
OAuth Scope : ZohoInventory.purchasereceives.READ

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.
document_id
string
(Required)
Unique identifier of the document (attachment).

Query Parameters

organization_id
string
(Required)
ID of the organization
image_size
string
Size of the image to retrieve if the attachment is an image. Allowed values: xlarge, large, small, tiny.
inline
boolean
Set to true to display the attachment inline rather than as a download.

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695" type: GET headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695") .get() .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'GET', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("GET", "/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "GET", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request GET \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

Delete a purchase receive attachment AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Delete an attachment from a purchase receive.
OAuth Scope : ZohoInventory.purchasereceives.DELETE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.
document_id
string
(Required)
Unique identifier of the document (attachment).

Query Parameters

organization_id
string
(Required)
ID of the organization
un_associate
boolean
Set to true to only un-associate the document from the purchase receive without deleting it.

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695" type: DELETE headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695") .delete(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'DELETE', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("DELETE", "/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "DELETE", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request DELETE \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/documents/4815000000045060?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "The attachment has been deleted." }

Add a comment to a purchase receive AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Add a comment to an existing purchase receive.
OAuth Scope : ZohoInventory.purchasereceives.CREATE

Arguments

description
string
(Required)
Comment text to add to the purchase receive.

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
parameters_data='{"field1":"value1","field2":"value2"}'; headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments?organization_id=10234695" type: POST headers: headers_data content-type: application/json parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}"); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments?organization_id=10234695") .post(body) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .addHeader("content-type", "application/json") .build(); Response response = client.newCall(request).execute();
const options = { method: 'POST', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f', 'content-type': 'application/json' }, body: '{"field1":"value1","field2":"value2"}' }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}" headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", 'content-type': "application/json" } conn.request("POST", "/inventory/v1/purchasereceives/4815000000045035/comments?organization_id=10234695", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/comments?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f", "content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({field1: 'value1', field2: 'value2'})); req.end();
curl --request POST \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \ --header 'content-type: application/json' \ --data '{"field1":"value1","field2":"value2"}'

Body Parameters

Click to copy
{ "description": "Items received and verified." }

Response Example

{ "code": 0, "message": "Comments added.", "comment": { "comment_id": "4815000000045070", "purchasereceive_id": "4815000000045035", "description": "Items received and verified.", "commented_by_id": "4815000000000001", "commented_by": "John Smith", "comment_type": "system", "date": "2024-06-15T10:45:00.000Z" } }

Delete a purchase receive comment AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Delete a comment from a purchase receive.
OAuth Scope : ZohoInventory.purchasereceives.DELETE

Path Parameters

purchasereceive_id
string
(Required)
Unique identifier of the purchase receive.
comment_id
string
(Required)
Unique identifier of the comment.

Query Parameters

organization_id
string
(Required)
ID of the organization

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"); response = invokeUrl [ url: "https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments/4815000000045070?organization_id=10234695" type: DELETE headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments/4815000000045070?organization_id=10234695") .delete(null) .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f") .build(); Response response = client.newCall(request).execute();
const options = { method: 'DELETE', headers: { Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' } }; fetch('https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments/4815000000045070?organization_id=10234695', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("www.zohoapis.com") headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } conn.request("DELETE", "/inventory/v1/purchasereceives/4815000000045035/comments/4815000000045070?organization_id=10234695", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "DELETE", "hostname": "www.zohoapis.com", "port": null, "path": "/inventory/v1/purchasereceives/4815000000045035/comments/4815000000045070?organization_id=10234695", "headers": { "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
curl --request DELETE \ --url 'https://www.zohoapis.com/inventory/v1/purchasereceives/4815000000045035/comments/4815000000045070?organization_id=10234695' \ --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'

Response Example

{ "code": 0, "message": "The comment has been deleted." }