{
"opencollection": "1.0.0",
"info": {
"name": "batches vendor-credits API",
"version": "1.0.0"
},
"items": [
{
"info": {
"name": "vendor-credits",
"type": "folder"
},
"items": [
{
"info": {
"name": "List vendor credits",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits",
"params": [
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "vendor_credit_number",
"value": "DN-00002",
"type": "query",
"description": "Search vendor credits by vendor credit number. Variants: vendor_credit_number_startswith and vendor_credit_number_contains"
},
{
"name": "date",
"value": "2014-08-28",
"type": "query",
"description": "General Format: yyyy-mm-dd. Search vendor credits by date. Variants: date.start, date.end, date.before and date.after"
},
{
"name": "status",
"value": "open",
"type": "query",
"description": "Search vendor credits by vendor credit status. Allowed statuses are open, closed and void. Allowed Values: open, closed and void"
},
{
"name": "total",
"value": "30",
"type": "query",
"description": "Search vendor credits by total amount. Variants: total_start, total_end, total_less_than, total_less_equals, total_greater_than and total_greater_equals"
},
{
"name": "reference_number",
"value": "",
"type": "query",
"description": "Search vendor credits by vendor credit reference number. Variants: reference_number_startswith and reference_number_contains"
},
{
"name": "customer_name",
"value": "Bowman and Co",
"type": "query",
"description": "Search vendor credits by vendor name. Variants: customer_name_startswith and customer_name_contains"
},
{
"name": "item_name",
"value": "",
"type": "query",
"description": "Search vendor credits by item name. Variants: item_name_startswith and item_name_contains"
},
{
"name": "item_description",
"value": "",
"type": "query",
"description": "Search vendor credits by vendor credit item description. Variants: item_description_startswith and item_description_contains"
},
{
"name": "notes",
"value": "",
"type": "query",
"description": "Search vendor credits by vendor credit notes. Variants: notes_startswith and notes_contains"
},
{
"name": "custom_field",
"value": "",
"type": "query",
"description": "Search vendor credits by custom field. Variants : custom_field_startswith and custom_field_contains"
},
{
"name": "last_modified_time",
"value": "2014-08-28T22:53:31-0700",
"type": "query",
"description": "Search vendor credits by vendor credit last modfified time"
},
{
"name": "customer_id",
"value": "",
"type": "query",
"description": "Search vendor credits by vendor credit customer ID"
},
{
"name": "line_item_id",
"value": "460000000020077",
"type": "query",
"description": "Search vendor credits by vendor credit line item ID"
},
{
"name": "item_id",
"value": "460000000020071",
"type": "query",
"description": "Search vendor credits by vendor credit item ID"
},
{
"name": "tax_id",
"value": "",
"type": "query",
"description": "Search vendor credits by vendor credit tax ID"
},
{
"name": "filter_by",
"value": "",
"type": "query",
"description": "Filter vendor credits by statuses. Allowed Values: Status.All, Status.Open, Status.Draft, Status.Closed and Status.Void."
},
{
"name": "search_text",
"value": "",
"type": "query",
"description": "Search vendor credits by vendor credit number or vendor name or vendor credit reference number."
},
{
"name": "sort_column",
"value": "created_time",
"type": "query",
"description": "Sort vendor credits by following columns vendor_name, vendorcredit_number, balance, total, date and created_time. Allowed Values: vendor_name, vendor_credit_number, balance, total, date, created_time, last_modified_time and reference_number."
},
{
"name": "page",
"value": "1",
"type": "query",
"description": "Page number to be fetched. Default value is 1."
},
{
"name": "per_page",
"value": "200",
"type": "query",
"description": "Number of records to be fetched per page. Default value is 200."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "List vendor credits with pagination."
},
{
"info": {
"name": "Create a vendor credit",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits",
"params": [
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "ignore_auto_number_generation",
"value": "",
"type": "query",
"description": "Ignore auto number generation for this vendor credit only. On enabling this option vendor credit number is mandatory."
},
{
"name": "bill_id",
"value": "460000000057075",
"type": "query",
"description": "Bill Associated with the Vendor Credit"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Create a vendor credit for a vendor."
},
{
"info": {
"name": "Get vendor credit",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "print",
"value": "",
"type": "query",
"description": "Export vendor credit pdf with default print option. Allowed Values: true, false, on and off."
},
{
"name": "accept",
"value": "",
"type": "query",
"description": "You can get vendor credit details as json/pdf/html. Default format is html. Allowed Values: json, xml, csv, xls, pdf, html and jhtml."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Get details of a vendor credit."
},
{
"info": {
"name": "Update vendor credit",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Update an existing vendor credit."
},
{
"info": {
"name": "Delete vendor credit",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Delete a vendor credit."
},
{
"info": {
"name": "Convert to open",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/status/open",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Change an existing vendor credit status to open."
},
{
"info": {
"name": "Void vendor credit",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/status/void",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Mark an existing vendor credit as void."
},
{
"info": {
"name": "Submit a Vendor credit for approval",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/submit",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Submit a Vendor credit for approval."
},
{
"info": {
"name": "Approve a Vendor credit",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/approve",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Approve a Vendor credit."
},
{
"info": {
"name": "List bills credited",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/bills",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "List bills to which the vendor credit is applied."
},
{
"info": {
"name": "Apply credits to a bill",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/bills",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Apply vendor credit to existing bills."
},
{
"info": {
"name": "Delete bills credited",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/bills/:vendor_credit_bill_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "vendor_credit_bill_id",
"value": "460000000057075",
"type": "path",
"description": "Unique identifier of the vendor credit bill."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Delete the credits applied to a bill."
},
{
"info": {
"name": "List refunds of a vendor credit",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/refunds",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "page",
"value": "1",
"type": "query",
"description": "Page number to be fetched. Default value is 1."
},
{
"name": "per_page",
"value": "200",
"type": "query",
"description": "Number of records to be fetched per page. Default value is 200."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "List all refunds of an existing vendor credit."
},
{
"info": {
"name": "Refund a vendor credit",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/refunds",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Refund vendor credit amount."
},
{
"info": {
"name": "Get vendor credit refund",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/refunds/:vendor_credit_refund_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "vendor_credit_refund_id",
"value": "3000000003151",
"type": "path",
"description": "Unique identifier of the vendor credit refund."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Get refund of a particular vendor credit."
},
{
"info": {
"name": "Update vendor credit refund",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/refunds/:vendor_credit_refund_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "vendor_credit_refund_id",
"value": "3000000003151",
"type": "path",
"description": "Unique identifier of the vendor credit refund."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Update the refunded transaction."
},
{
"info": {
"name": "Delete vendor credit refund",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/refunds/:vendor_credit_refund_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "vendor_credit_refund_id",
"value": "3000000003151",
"type": "path",
"description": "Unique identifier of the vendor credit refund."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Delete a vendor credit refund."
},
{
"info": {
"name": "List vendor credit refunds",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/refunds",
"params": [
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "customer_id",
"value": "",
"type": "query",
"description": "Search vendor credits by vendor credit customer ID"
},
{
"name": "last_modified_time",
"value": "2014-08-28T22:53:31-0700",
"type": "query",
"description": "Search vendor credits by vendor credit last modfified time"
},
{
"name": "sort_column",
"value": "created_time",
"type": "query",
"description": "Sort vendor credits by following columns vendor_name, vendorcredit_number, balance, total, date and created_time. Allowed Values: vendor_name, vendor_credit_number, balance, total, date, created_time, last_modified_time and reference_number."
},
{
"name": "page",
"value": "1",
"type": "query",
"description": "Page number to be fetched. Default value is 1."
},
{
"name": "per_page",
"value": "200",
"type": "query",
"description": "Number of records to be fetched per page. Default value is 200."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "List all refunds with pagination."
},
{
"info": {
"name": "List vendor credit comments & history",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/comments",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Get history and comments of a vendor credit."
},
{
"info": {
"name": "Add a comment",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/comments",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Add a comment to an existing vendor credit."
},
{
"info": {
"name": "Delete a comment",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://www.zohoapis.com/inventory/v1/vendorcredits/:vendor_credit_id/comments/:comment_id",
"params": [
{
"name": "vendor_credit_id",
"value": "3000000002075",
"type": "path",
"description": "Unique identifier of the vendor credit."
},
{
"name": "organization_id",
"value": "10234695",
"type": "query",
"description": "ID of the organization"
},
{
"name": "comment_id",
"value": "3000000002089",
"type": "path",
"description": "Unique identifier of the comment."
}
],
"auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://accounts.zoho.com/oauth/v2/auth",
"credentials": {
"clientId": "{{clientId}}"
}
}
},
"docs": "Delete a vendor credit comment."
}
]
}
],
"bundled": true
}