Document Line Create, Delete & Update
Create Document Line
The “www.” subdomain prefix can included and excluded from the URL used for the API Request. Examples below:
https://www.aqilla.net/InstanceName/wsapi/2.5/Documents/Miscellaneous/Miscellaneous - Details/MISC000004/sub
https://aqilla.net/InstanceName/wsapi/2.5/Documents/Miscellaneous/Miscellaneous - Details/MISC000004/sub
Try excluding “www.” from the URL if your API request fails to pull data.
The following endpoint URL styles are used:
https://{server}/{instance name}/wsapi/2.5/Documents/{summary view}/{details view}/{UBK}/sub
e.g. https://www.aqilla.net/ InstanceName/wsapi/2.5/Documents/Miscellaneous/Miscellaneous - Details/MISC000004/sub
https://{server}/{instance name}/wsapi/2.5/{GUID}/sub
e.g. https://www.aqilla.net/ InstanceName/wsapi/2.5/8sggg986s6787g786sts33ds/sub
In API requests, the forward slash (/) primarily functions as a path separator to delineate the resource hierarchy. However, when a forward slash appears within a parameter's value, it can cause issues. To address this, the slash must be specially encoded.
For paths like "Purchase Invoice M/C," where the forward slash "/" is part of the name or text, it must be encoded to prevent the REST API from misinterpreting it as a path separator.
Instead of using "/", use "%252F".
Thus, "Purchase Invoice M/C" should be written as "Purchase Invoice M%252FC" in the API path.
Create document line - example
Header |
XML
|
Header (Alternative using “%252F” instead of “/”) |
XML
|
Body |
XML
|
Response |
XML
|
Document lines are created with the Aqilla state Entered. See Promote Document Line to learn how to promote documents.
Attach file to document line
See: Attachments
Delete Document Line
The following endpoint URL styles are used:
https://{server}/{instance name}/wsapi/2.5/Documents/{summary view}/{details view}/{doc ref}/sub/{line number}
e.g. https://www.aqilla.net/ InstanceName /wsapi/2.5/Documents/Miscellaneous/Miscellaneous - Details/MISC000004/sub/1
https://{server}/{instance name}/wsapi/2.5/{GUID}/sub
e.g. https://www.aqilla.net/ InstanceName /wsapi/2.5/8sggg986s6787g786sts33ds
The line number may not be obvious to you. If you enter two lines and delete them both the next line will be line 3. It's always safest to use GUID's.
Delete document line - example
API Request |
XML
|
Response |
XML
|
Document lines are created with the Aqilla state Entered. See Promote Document Line to learn how to promote documents.
Update Document line
The following endpoint URL styles are used:
https://{server}/{instance name}/wsapi/2.5/Documents/{summary view}/{details view}/{UBK}/sub/{line number}
e.g. https://www.aqilla.net/ InstanceName /wsapi/2.5/Documents/Miscellaneous/Miscellaneous - Details/MISC000004/sub/1
https://{server}/{instance name}/wsapi/2.5/{GUID}
e.g. https://www.aqilla.net/ InstanceName /wsapi/2.5/8sggg986s6787g786sts33ds
The line number may not be obvious to you. If you enter two lines and delete them both the next line will be line 3. It's always safest to use GUID's.
Update document line - example
API Request |
XML
|
Body |
XML
|
Response |
XML
|