Update carrier after package is created with API

Update carrier after package is created with API

Hello,

We use carriers not compatible with Aftership and other integrations Zoho Inventory has, so we are developing a way to select the carries automatically according carrier's rates. We uploaded a CSV to Zoho Analytics with the rates combined and we get it from Zoho Inventory in a workflow

The main problem comes when we want to update the shipping order and the carrier, it always gives us this error: ""JSONString parameter is mandatory"

This is the code that is failing: "Dascher" is the carrier name. It will be in a variable but this is ifor testing.

Anyone know how to do it?

  1. response = invokeUrl
    [
    url: "https://www.zohoapis.eu/inventory/v1/packages?organization_id=" + organizationID + "&salesorder_number_contains=" + salesNumber
    type: GET
    connection: "inventoryshipments"
    ];
    listPackages = response.get("packages");
    for each pkg in listPackages {
    pkgID = pkg.get("package_id");
    update = Map();
    update.put("delivery_method", "Dascher");
    actualiza = zoho.inventory.updateRecord("packages", organizationID, pkgID, update);
    info actualiza;
    }

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方