Discussions

Ask a Question
Back to All

Bundles API - Create a Bundle

Hi there,
Any idea on how to create a bundle via the API
This reference https://developer.servicem8.com/reference/post-materialbundle-create doesn't clearly tell you what material_list should look like.
If you give it a string it throws an error: https://developer.servicem8.com/reference/post-materialbundle-create?shareId=Sw6s9HaVRgKcXpCJrQMv
that it was expecting an array.

So I ran it in Postman with an array, and I am closer, now I need to also set the quantity, but not having any luck with various alterations I make
https://share.getlucid.solutions/SRq7fTh4rNVkThp7nQMvQ39QicXVKQwTmZleKqDNbHKpsjjosWgZA0BpRIJe69TiBthVO7uXaUJERQ4MHeRVpRSj8RpcgeFoWxES

Any assistance would be greatly appreciated.