← Zoho Books

Create Sales Order with Zoho Books API

Pipedream makes it easy to connect APIs for Zoho Books and 2,400+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Create Sales Order with the Zoho Books API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Create a workflow to Create Sales Order with the Zoho Books API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Create Sales Order action
    1. Connect your Zoho Books account
    2. Select a Customer Id
    3. Optional- Select one or more Contact Persons
    4. Optional- Configure date
    5. Optional- Configure Shipment Date
    6. Optional- Configure Custom Fields
    7. Optional- Select a Place Of Supply
    8. Optional- Configure Salesperson Id
    9. Optional- Configure Merchant Id
    10. Optional- Select a GST Treatment
    11. Optional- Configure GST No
    12. Optional- Configure Is Inclusive Tax
    13. Configure Line Items
    14. Optional- Configure Notes
    15. Optional- Configure Terms
    16. Optional- Configure Billing Address Id
    17. Optional- Configure Shipping Address Id
    18. Optional- Configure CRM Owner Id
    19. Optional- Configure CRM Custom Reference Id
    20. Optional- Configure VAT Treatment
    21. Optional- Select a Tax Treatment
    22. Optional- Configure Salesorder Number
    23. Optional- Configure Reference Number
    24. Optional- Configure Is Update Customer
    25. Optional- Configure Discount
    26. Optional- Configure Exchange Rate
    27. Optional- Configure Salesperson Name
    28. Optional- Configure Notes Default
    29. Optional- Configure Terms Default
    30. Optional- Select a Tax Id
    31. Optional- Select a Tax Authority Id
    32. Optional- Select a Tax Exemption Id
    33. Optional- Configure Tax Authority Name
    34. Optional- Configure Tax Exemption Code
    35. Optional- Select a Tax Exemption Id
    36. Optional- Configure Avatax Use Code
    37. Optional- Configure Shipping Charge
    38. Optional- Configure Adjustment
    39. Optional- Configure Adjustment Description
    40. Optional- Configure Delivery Method
    41. Optional- Configure Estimate Id
    42. Optional- Configure Is Discount Before Tax
    43. Optional- Select a Discount Type
    44. Optional- Configure Pricebook Id
    45. Optional- Configure Template Id
    46. Optional- Configure Documents
    47. Optional- Configure ZCRM Potential Id
    48. Optional- Configure ZCRM Potential Name
    49. Optional- Configure Ignore Auto Number Generation
    50. Optional- Configure Can Send In Mail
    51. Optional- Configure Total Files
    52. Optional- Configure doc
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Create Sales Order with Zoho Books API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Zoho Books
 
Try it
Create Sales Order with Zoho Books API on New Item in Feed from RSS API
RSS + Zoho Books
 
Try it
Create Sales Order with Zoho Books API on New Message from Discord API
Discord + Zoho Books
 
Try it
Create Sales Order with Zoho Books API on New Message In Channels from Slack API
Slack + Zoho Books
 
Try it
Create Sales Order with Zoho Books API on New Message in Channel from Discord Bot API
Discord Bot + Zoho Books
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Create Sales Order on Zoho Books
Description:Creates a sales order. [See the documentation](https://www.zoho.com/books/api/v3/sales-order/#create-a-sales-order)
Version:0.3.0
Key:zoho_books-create-salesorder

Code

// legacy_hash_id: a_WYi46K
import {
  clearObj, parseObject,
} from "../../common/utils.mjs";
import zohoBooks from "../../zoho_books.app.mjs";

export default {
  key: "zoho_books-create-salesorder",
  name: "Create Sales Order",
  description: "Creates a sales order. [See the documentation](https://www.zoho.com/books/api/v3/sales-order/#create-a-sales-order)",
  version: "0.3.0",
  type: "action",
  props: {
    zohoBooks,
    customerId: {
      propDefinition: [
        zohoBooks,
        "customerId",
      ],
      description: "ID of the customer to whom the sales order has to be created.",
    },
    contactPersons: {
      propDefinition: [
        zohoBooks,
        "contactPersons",
        ({ customerId }) => ({
          customerId,
        }),
      ],
      description: "A list of contact person(s) for whom sales order has to be sent.",
      optional: true,
    },
    date: {
      propDefinition: [
        zohoBooks,
        "date",
      ],
      optional: true,
    },
    shipmentDate: {
      propDefinition: [
        zohoBooks,
        "shipmentDate",
      ],
      optional: true,
    },
    customFields: {
      propDefinition: [
        zohoBooks,
        "customFields",
      ],
      optional: true,
    },
    placeOfSupply: {
      propDefinition: [
        zohoBooks,
        "placeOfSupply",
      ],
      optional: true,
    },
    salespersonId: {
      propDefinition: [
        zohoBooks,
        "salespersonId",
      ],
      optional: true,
    },
    merchantId: {
      propDefinition: [
        zohoBooks,
        "merchantId",
      ],
      optional: true,
    },
    gstTreatment: {
      propDefinition: [
        zohoBooks,
        "gstTreatment",
      ],
      optional: true,
    },
    gstNo: {
      propDefinition: [
        zohoBooks,
        "gstNo",
      ],
      optional: true,
    },
    isInclusiveTax: {
      propDefinition: [
        zohoBooks,
        "isInclusiveTax",
      ],
      optional: true,
    },
    lineItems: {
      propDefinition: [
        zohoBooks,
        "lineItems",
      ],
    },
    notes: {
      propDefinition: [
        zohoBooks,
        "notes",
      ],
      optional: true,
    },
    terms: {
      propDefinition: [
        zohoBooks,
        "terms",
      ],
      optional: true,
    },
    billingAddressId: {
      propDefinition: [
        zohoBooks,
        "billingAddressId",
      ],
      optional: true,
    },
    shippingAddressId: {
      propDefinition: [
        zohoBooks,
        "shippingAddressId",
      ],
      optional: true,
    },
    crmOwnerId: {
      propDefinition: [
        zohoBooks,
        "crmOwnerId",
      ],
      optional: true,
    },
    crmCustomReferenceId: {
      propDefinition: [
        zohoBooks,
        "crmCustomReferenceId",
      ],
      optional: true,
    },
    vatTreatment: {
      propDefinition: [
        zohoBooks,
        "vatTreatment",
      ],
      optional: true,
    },
    taxTreatment: {
      propDefinition: [
        zohoBooks,
        "taxTreatment",
      ],
      optional: true,
    },
    salesorderNumber: {
      propDefinition: [
        zohoBooks,
        "salesorderNumber",
      ],
      optional: true,
    },
    referenceNumber: {
      propDefinition: [
        zohoBooks,
        "referenceNumber",
      ],
      optional: true,
    },
    isUpdateCustomer: {
      propDefinition: [
        zohoBooks,
        "isUpdateCustomer",
      ],
      optional: true,
    },
    discount: {
      propDefinition: [
        zohoBooks,
        "discount",
      ],
      optional: true,
    },
    exchangeRate: {
      propDefinition: [
        zohoBooks,
        "exchangeRate",
      ],
      optional: true,
    },
    salespersonName: {
      propDefinition: [
        zohoBooks,
        "salespersonName",
      ],
      optional: true,
    },
    notesDefault: {
      propDefinition: [
        zohoBooks,
        "notesDefault",
      ],
      optional: true,
    },
    termsDefault: {
      propDefinition: [
        zohoBooks,
        "termsDefault",
      ],
      optional: true,
    },
    taxId: {
      propDefinition: [
        zohoBooks,
        "taxId",
      ],
      optional: true,
    },
    taxAuthorityId: {
      propDefinition: [
        zohoBooks,
        "taxAuthorityId",
      ],
      optional: true,
    },
    taxExemptionId: {
      propDefinition: [
        zohoBooks,
        "taxExemptionId",
      ],
      optional: true,
    },
    taxAuthorityName: {
      propDefinition: [
        zohoBooks,
        "taxAuthorityName",
      ],
      optional: true,
    },
    taxExemptionCode: {
      propDefinition: [
        zohoBooks,
        "taxExemptionCode",
      ],
      optional: true,
    },
    avataxExemptNo: {
      propDefinition: [
        zohoBooks,
        "taxExemptionId",
      ],
      optional: true,
    },
    avataxUseCode: {
      propDefinition: [
        zohoBooks,
        "avataxUseCode",
      ],
      optional: true,
    },
    shippingCharge: {
      propDefinition: [
        zohoBooks,
        "shippingCharge",
      ],
      optional: true,
    },
    adjustment: {
      propDefinition: [
        zohoBooks,
        "adjustment",
      ],
      optional: true,
    },
    adjustmentDescription: {
      propDefinition: [
        zohoBooks,
        "adjustmentDescription",
      ],
      optional: true,
    },
    deliveryMethod: {
      propDefinition: [
        zohoBooks,
        "deliveryMethod",
      ],
      optional: true,
    },
    estimateId: {
      type: "string",
      label: "Estimate Id",
      description: "ID of the estimate associated with the Sales Order.",
      optional: true,
    },
    isDiscountBeforeTax: {
      propDefinition: [
        zohoBooks,
        "isDiscountBeforeTax",
      ],
      optional: true,
    },
    discountType: {
      propDefinition: [
        zohoBooks,
        "discountType",
      ],
      optional: true,
    },
    pricebookId: {
      propDefinition: [
        zohoBooks,
        "pricebookId",
      ],
      optional: true,
    },
    templateId: {
      propDefinition: [
        zohoBooks,
        "pdfTemplateId",
      ],
      optional: true,
    },
    documents: {
      propDefinition: [
        zohoBooks,
        "documents",
      ],
      optional: true,
    },
    zcrmPotentialId: {
      propDefinition: [
        zohoBooks,
        "zcrmPotentialId",
      ],
      optional: true,
    },
    zcrmPotentialName: {
      propDefinition: [
        zohoBooks,
        "zcrmPotentialName",
      ],
      optional: true,
    },
    ignoreAutoNumberGeneration: {
      propDefinition: [
        zohoBooks,
        "ignoreAutoNumberGeneration",
      ],
      optional: true,
    },
    canSendInMail: {
      propDefinition: [
        zohoBooks,
        "canSendInMail",
      ],
      optional: true,
    },
    totalFiles: {
      propDefinition: [
        zohoBooks,
        "totalFiles",
      ],
      optional: true,
    },
    doc: {
      propDefinition: [
        zohoBooks,
        "doc",
      ],
      optional: true,
    },
  },
  async run({ $ }) {
    const response = await this.zohoBooks.createSalesorder({
      $,
      params: clearObj({
        ignore_auto_number_generation: this.ignoreAutoNumberGeneration,
        can_send_in_mail: this.canSendInMail,
        totalFiles: this.totalFiles,
        doc: this.doc,
      }),
      data: clearObj({
        customer_id: this.customerId,
        contact_persons: this.contactPersons,
        date: this.date,
        shipment_date: this.shipmentDate,
        custom_fields: parseObject(this.customFields),
        place_of_supply: this.placeOfSupply,
        salesperson_id: this.salespersonId,
        merchant_id: this.merchantId,
        gst_treatment: this.gstTreatment,
        gst_no: this.gstNo,
        is_inclusive_tax: this.isInclusiveTax,
        line_items: parseObject(this.lineItems),
        notes: this.notes,
        terms: this.terms,
        billing_address_id: this.billingAddressId,
        shipping_address_id: this.shippingAddressId,
        crm_owner_id: this.crmOwnerId,
        crm_custom_reference_id: this.crmCustomReferenceId,
        vat_treatment: this.vatTreatment,
        tax_treatment: this.taxTreatment,
        salesorder_number: this.salesorderNumber,
        reference_number: this.referenceNumber,
        is_update_customer: this.isUpdateCustomer,
        discount: this.discount,
        exchange_rate: this.exchangeRate && parseFloat(this.exchangeRate),
        salesperson_name: this.salespersonName,
        notes_default: this.notesDefault,
        terms_default: this.termsDefault,
        tax_id: this.taxId,
        tax_authority_id: this.taxAuthorityId,
        tax_exemption_id: this.taxExemptionId,
        tax_authority_name: this.taxAuthorityName,
        tax_exemption_code: this.taxExemptionCode,
        avatax_exempt_no: this.avataxExemptNo,
        avatax_use_code: this.avataxUseCode,
        shipping_charge: this.shippingCharge && parseFloat(this.shippingCharge),
        adjustment: this.adjustment && parseFloat(this.adjustment),
        delivery_method: this.deliveryMethod,
        estimate_id: this.estimateId,
        is_discount_before_tax: this.isDiscountBeforeTax,
        discount_type: this.discountType,
        adjustment_description: this.adjustmentDescription,
        pricebook_id: this.pricebookId,
        template_id: this.templateId,
        documents: parseObject(this.documents),
        zcrm_potential_id: this.zcrmPotentialId,
        zcrm_potential_name: this.zcrmPotentialName,
      }),
    });

    $.export("$summary", `Salesorder successfully created with Id: ${response.salesorder.salesorder_id}`);
    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Zoho BookszohoBooksappThis component uses the Zoho Books app.
Customer IdcustomerIdstringSelect a value from the drop down menu.
Contact PersonscontactPersonsstring[]Select a value from the drop down menu.
datedatestring

The date, the sales order is created.

Shipment DateshipmentDatestring

Shipping date of sales order.

Custom FieldscustomFieldsstring[]

A list of custom field objects for a sales order. Example: {"customfield_id": "1352827000000156060", "value": "value" } See the documentation for further details.

Place Of SupplyplaceOfSupplystringSelect a value from the drop down menu:{ "label": "Abu Dhabi (UAE Supported)", "value": "AB" }{ "label": "Ajman (UAE Supported)", "value": "AJ" }{ "label": "Dubai (UAE Supported)", "value": "DU" }{ "label": "Fujairah (UAE Supported)", "value": "FU" }{ "label": "Ras al-Khaimah (UAE Supported)", "value": "RA" }{ "label": "Sharjah (UAE Supported)", "value": "SH" }{ "label": "Umm al-Quwain (UAE Supported)", "value": "UM" }{ "label": "United Arab Emirates (GCC Supported)", "value": "AE" }{ "label": "Saudi Arabia (GCC Supported)", "value": "SA" }{ "label": "Bahrain (GCC Supported)", "value": "BH" }{ "label": "Kuwait (GCC Supported)", "value": "KW" }{ "label": "Oman (GCC Supported)", "value": "OM" }{ "label": "Qatar (GCC Supported)", "value": "QA" }
Salesperson IdsalespersonIdstring

ID of the salesperson.

Merchant IdmerchantIdstring

ID of the merchant.

GST TreatmentgstTreatmentstringSelect a value from the drop down menu:business_gstbusiness_noneoverseasconsumer
GST NogstNostring

15 digit GST identification number of the customer.

Is Inclusive TaxisInclusiveTaxboolean

Used to specify whether the line item rates are inclusive or exclusive of tax.

Line ItemslineItemsstring[]

A list of line items objects of a sales order. Example: {"item_order": "1352827000000156060", "name": "name", "description": "description", "quantity": "1" } See the documentation for further details.

Notesnotesstring

Notes for this Sales Order.

Termstermsstring

The terms added below expressing gratitude or for conveying some information.

Billing Address IdbillingAddressIdstring

ID of the Billing Address

Shipping Address IdshippingAddressIdstring

ID of the Shipping Address.

CRM Owner IdcrmOwnerIdstring
CRM Custom Reference IdcrmCustomReferenceIdstring
VAT TreatmentvatTreatmentstring

Enter vat treatment.

Tax TreatmenttaxTreatmentstringSelect a value from the drop down menu:vat_registeredvat_not_registeredgcc_vat_not_registeredgcc_vat_registerednon_gccdz_vat_registereddz_vat_not_registeredhome_country_mexicoborder_region_mexiconon_mexicovat_registered vat_not_registered non_kenyavat_registeredvat_not_registeredoverseas
Salesorder NumbersalesorderNumberstring

Mandatory if auto number generation is disabled.

Reference NumberreferenceNumberstring

For Customer Only : If a contact is assigned to any particular user, that user can manage transactions for the contact

Is Update CustomerisUpdateCustomerboolean

Boolean to update billing address of customer.

Discountdiscountstring

Discount applied to the sales order. It can be either in % or in amount. e.g. 12.5% or 190.

Exchange RateexchangeRatestring

Exchange rate of the currency.

Salesperson NamesalespersonNamestring

Name of the sales person.

Notes DefaultnotesDefaultstring

Default Notes for the Sales Order

Terms DefaulttermsDefaultstring

Default Terms of the Sales Order.

Tax IdtaxIdstringSelect a value from the drop down menu.
Tax Authority IdtaxAuthorityIdstringSelect a value from the drop down menu.
Tax Exemption IdtaxExemptionIdstringSelect a value from the drop down menu.
Tax Authority NametaxAuthorityNamestring

Tax Authority's name.

Tax Exemption CodetaxExemptionCodestring

Code of Tax Exemption that is applied.

Tax Exemption IdavataxExemptNostringSelect a value from the drop down menu.
Avatax Use CodeavataxUseCodestring

Used to group like customers for exemption purposes. It is a custom value that links customers to a tax rule.

Shipping ChargeshippingChargestring

Shipping charges applied to the invoice.

Adjustmentadjustmentstring
Adjustment DescriptionadjustmentDescriptionstring
Delivery MethoddeliveryMethodstring
Estimate IdestimateIdstring

ID of the estimate associated with the Sales Order.

Is Discount Before TaxisDiscountBeforeTaxboolean

Used to specify how the discount has to applied. Either before or after the calculation of tax.

Discount TypediscountTypestringSelect a value from the drop down menu:entity_levelitem_level
Pricebook IdpricebookIdstring
Template IdtemplateIdstring

ID of the PDF template.

Documentsdocumentsstring[]

A list of documents.

ZCRM Potential IdzcrmPotentialIdstring
ZCRM Potential NamezcrmPotentialNamestring
Ignore Auto Number GenerationignoreAutoNumberGenerationboolean

Ignore auto sales order number generation for this sales order. This mandates the sales order number.

Can Send In MailcanSendInMailstring

Can the file be sent in mail.

Total FilestotalFilesstring

Total number of files.

docdocstring

Document that is to be attached

Authentication

Zoho Books uses OAuth authentication. When you connect your Zoho Books account, Pipedream will open a popup window where you can sign into Zoho Books and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho Books API.

Pipedream requests the following authorization scopes when you connect your account:

ZohoBooks.fullaccess.all

About Zoho Books

Online accounting software

More Ways to Use Zoho Books

Triggers

New Customer from the Zoho Books API

Emit new event when a new customer is created.

 
Try it
New Expense from the Zoho Books API

Emit new event when a new expense is created.

 
Try it
New Sales Order from the Zoho Books API

Emit new event when a new sales order is created.

 
Try it

Actions

Create Customer with the Zoho Books API

Creates a new customer. See the documentation

 
Try it
Create Customer Payment with the Zoho Books API

Creates a new payment. See the documentation

 
Try it
Create Employee with the Zoho Books API

Creates an employee for an expense. See the documentation

 
Try it
Create Estimate with the Zoho Books API

Creates a new estimate. See the documentation

 
Try it
Create Invoice with the Zoho Books API

Creates an invoice for your customer. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,400+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Premium
Salesforce
Salesforce
Web services API for interacting with Salesforce
Premium
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Premium
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Premium
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Premium
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Premium
Snowflake
Snowflake
A data warehouse built for the cloud
Premium
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.