I am using axios.request for the APIs, and I'm uploading the categories and items from our database to Clover. I can get the categories and items into Clover just fine, but I cannot seem to get the items associated with the categories they need to be associated with. I'm sending the correct data for category_items:
- el: {
category: {…}, item: {…}}
const options = {
method: 'POST',
url: `${cloverURL}/merchants/${props.mId}/category_items?expand=${el}`,
headers: {
Accept: 'application/json',
Authorization: `Bearer ${authToken}`,
},
};
But nothing is happening, the items are not getting associated with the category. I need some help getting this figured out.