Jump to content

Posting test data, Invoice transaction fails - 422 Unprocessable Entity


 Share

Recommended Posts

Following this guide https://developer.sage.com/accounting/quick-start/preparing-to-create-test-data/

 

Each failing request has a line in the Postman console TypeError: Cannot read property 'id' of undefined , which is happening on the lines in the test, so maybe that is not related to the 422 error. 

var setresp = pm.environment.get("invoice_metadata")
var indexCount = parseInt(pm.collectionVariables.get("indexcount")-1)
var invData = setresp[indexCount]
invData[2] = bodyData.contact.id
invData[3] = bodyData.id
 
Link to comment
Share on other sites

  • Administrators

Hi,

Thanks for your post, currently we do require the business to be a UK VAT registered in order to work correctly (as referred to in the pre-requisites), I'll make some changes to that based on your issue, to call out where to do it if you already have an existing business you want to work with. 

I appreciate the feedback thank you!

 

Ben

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...