About Zoho Inventory API and Creating a Shipment

About Zoho Inventory API and Creating a Shipment

Hello,

I’m currently trying to create a Shipment for a Sales Order using Zoho Inventory API and I’m having an issue with the API docs and the actual API.

In Zoho Inventory API docs, while creating a shipment, there are no arguments such as package_ids but when I POST the exact same request shown in the docs (with my own organization_id etc.) I’m getting the response: 

{
"code": 4,
"message": "Invalid value passed for package_ids"
}

There aren’t any clarifications about this package_ids argument and I’ve tried to create a package, put its package_id on the request body with the
key=package_ids but still getting the same response.

example of request body I've used:
{
"shipment_number": "SH-00004",
"date": "2022-10-17",
"reference_number": "TKG424242",
"contact_persons": 3522659000000086042,
"delivery_method": "FedEx",
"tracking_number": "TRK214124124",
"shipping_charge": 15,
"exchange_rate": 1,
"notes": "shipped",
"package_ids": [3522659000000094005]
}
and without the square bracket, changing the int to string and combinations of it etc. Still getting the same response with code: 4.

If anyone please look into this issue and respond back to me. Any new docs with a working body as an example would be fine.

Thank you in advance.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now