I believe you do not need to generate it by yourself and get
ReturnToService App and configure API/Roles and client to do that work.
Hope below documentation helps Reference :
https://s3.us-west-2.amazonaws.com/jamfse.io/Jamf+Return+to+Service+-+Guid...