I wish did fix the issue. You if condition is wrong. !(req.body.job || req.body.code || req.body.hours) should be !(req.body.job && req.body.code && req.body.hours). And are you sure you have really post anything? Check the Content-Type of your requests, which should be application/x-www-form-urlencoded;.
I think the issue was by ths following , That HTTP 400 error is returned from the server, which means the server-side app isn't happy with something about your request. If you have access to the server logs, investigate them and see if they give more detail about what is missing/malformed. Just from looking, though, I see you set a bunch of values on your manager.requestSerializer, but then overwrite the manager.requestSerializer with a default manager.requestSerializer = [AFHTTPRequestSerializer serializer];, which means all your customized configuration values would be overwritten. Try setting your config values after the serializer assignment:
it fixes the issue Can you check your Cart class and make sure you've imported the correct Request (just make sure the package name matches where you have your Request class at the top of the file) The reason I say this is because your current Request class should be taking in String, String, String, String, List to create the object however it's throwing an error saying its expecting Uri,int,String,List,int,int,boolean,boolean,boolean,float,float,float,boolean,Config,Priority which makes me think you are using the wrong import for Request