Both sides previous revisionPrevious revisionNext revision | Previous revision |
rest_api_sales_invoice [2016/12/08 08:46] – sweitmann | rest_api_sales_invoice [2024/09/25 06:21] (current) – external edit 127.0.0.1 |
---|
| ====REST API for SALES INVOICE data==== |
| |
^**__GET__** || | ^**__GET__** || |
|View all **SALES INVOICES** in XML format|[[:api:api_view_all_sales_invoices_xml| https://localhost:3000/{databasename}/sales_invoices.xml?token=123]]| | |View all sales invoices in XML format|[[:api:api_view_all_sales_invoices_xml| https://localhost:3000/{databasename}/sales_invoices.xml?token=123]]| |
|View all **SALES INVOICES** in JSON format|[[:api:api_view_all_sales_invoices_json| https://localhost:3000/{databasename}/sales_invoices.json?token=123]]| | |View all sales invoices in JSON format|[[:api:api_view_all_sales_invoices_json| https://localhost:3000/{databasename}/sales_invoices.json?token=123]]| |
|View single **SALES INVOICE** in XML format|[[:api:api_view_single_sales_invoice_xml| https://localhost:3000/{databasename}/{sales_invoice_id}.xml?token=123]]| | |View single sales invoice in XML format|[[:api:api_view_single_sales_invoice_xml| https://localhost:3000/{databasename}/{sales_invoice_id}.xml?token=123]]| |
|View single **SALES INVOICE** in JSON format|[[:api:api_view_single_sales_invoice_json| https://localhost:3000/{databasename}/{sales_invoice_id}.json?token=123]]| | |View single sales invoice in JSON format|[[:api:api_view_single_sales_invoice_json| https://localhost:3000/{databasename}/{sales_invoice_id}.json?token=123]]| |
|View single **SALES INVOICE** in PDF format|[[:api:api_view_single_sales_invoice_pdf| https://localhost:3000/{databasename}/{sales_invoice_id}.pdf?token=123]]| | |View single sales invoice in PDF format|[[:api:api_view_single_sales_invoice_pdf| https://localhost:3000/{databasename}/{sales_invoice_id}.pdf?token=123]]| |
^**__UPDATE__** || | ^**__UPDATE__** || |
|Add or update **SALES INVOICE** with XML from command line|[[:api:api_update_sales_invoice_xml| | |Add or update sales invoice with XML from command line|[[:api:api_update_sales_invoice_xml| |
curl -X POST -H "Content-Type: application/xml" -d @sales_invoice.xml https://localhost:3000/{databasename}/sales_invoice?token=123]]| | curl -X POST -H "Content-Type: application/xml" -d @sales_invoice.xml https://localhost:3000/{databasename}/sales_invoice?token=123]]| |
|Add or update **SALES INVOICE** with JSON from command line|[[:api:api_update_sales_invoice_json| | |Add or update sales invoice with JSON from command line|[[:api:api_update_sales_invoice_json| |
curl -X POST -H "Content-Type: application/xml" -d @sales_invoice.json https://localhost:3000/{databasename}/sales_invoice?token=123]]| | curl -X POST -H "Content-Type: application/xml" -d @sales_invoice.json https://localhost:3000/{databasename}/sales_invoice?token=123]]| |
^**__DELETE__** || | ^**__DELETE__** || |
|Delete **SALES INVOICE** from command line|[[:api:api_delete_sales_invoice]| | |Delete sales invoice from command line|[[:api:api_delete_sales_invoice]| |
curl -X DELETE -H "Content-Type: application/xml" -d @sales_invoice.xml https://localhost:3000/{databasename}/{sales_invoice_id}?token=123]]| | curl -X DELETE -H "Content-Type: application/xml" -d @sales_invoice.xml https://localhost:3000/{databasename}/{sales_invoice_id}?token=123]]| |