Fixed create and update shopscript

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