Fixed create and update shopscript

Out of the box, creating and updating shopscripts triggers an error 400 'Invalid data input'. These changes fixes both calls.