Discussions

Ask a Question
Back to All

Creation of Job Materials via API

Trying to create Job Materials via the API and am met with this error,

Provided displayed_amount is incorrect. Expected [13]

In the post, if I change the displayed amount to be Quantity * Price (which is the displayed amount anyway). I'm met with a different error being that my inc/ex GST prices aren't a match or something.

This is my current post:

{"active":1,"quantity":"3","job_uuid":"JOB UUID HERE","price":"13","name":"STD Bin","displayed_amount":"0"}

Please note the "JOB UUID HERE" actually contains the JOB UUID and isn't just plain text. Also tried adding 0 & 13 to the displayed amount, none of which worked.