partsInvoiceDocuments¶
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/stockMgmt/partsInvoiceDocuments
POST
Adds document linked to partsInvoice.Parameters
partsInvoiceId - PartsInvoice.id
file - location of the file under "[Provider].provider_document_path/PI/documents/"
description - document description
e.g. rest/stockMgmt/partsInvoiceDocuments
{ "document": { "partsInvoice": 23,
"description": "Auto uploaded invoice document", "filename": "invoices/invoice-129.pdf" //relative to [Provider.provider_document_path]/PI/documents/ }}response:
- 200 - JSON
{ "document": { "id": 38, "partsInvoice": 23,
"description": "Auto uploaded invoice document", "filename": "invoices/invoice-129.pdf" //relative to [Provider.provider_document_path]/PI/documents/ }}See the Stock Management API matrix for the full list of endpoints in this category.