I have a function in React which I use to make post requests based on the step a user is at in the form process.
payloadUtil.js
export