importCosts¶
Supported, no replacement yet
This endpoint remains fully supported. No replacement exists in the new API yet, and no action is needed. When a replacement ships you will get 12 months' notice, and this site will be updated.
Reference¶
/rest/costs/importCosts
POST
Adds the costs specified in the POST data to the systemacceptable request representations:
- application/jsonĀ (NOTE: expects request parameter named "costs" to contain this, i.e. costs=<data>)
{
"costs" :
{ "jobRef" : "J00GTH",
"contractRef" : "ABC23",
"supplierName" : "supp1",
"invoiceNumber" : "supp1",
"itemCode" : "supp1",
"supplierBranchNo" : "supp1",
"accountNumber" : "supp1",
"orderNumber" : "supp1",
"deliveryNote" : "supp1",
"itemDescription" : "supp1",
"addressLine1" : "supp1",
"addressLine2" : "supp1",
"addressLine3" : "supp1",
"addressLine4" : "supp1",
"postcode" : "supp1",
"vehicleRegistration" : "supp1",
"cardHolderName" : "supp1",
"quantity" : "supp1",
"totalNet" : "supp1",
"totalTax" : "supp1",
"totalAfterTax" : "supp1",
"transactioNDate" : "supp1"
}
}available response representations:
- 200 - application/json
{
"result" : "success or fail",
"result_msg" : "error message"
}See the Costs API matrix for the full list of endpoints in this category.