Skip to content

SIWP Reseller - API & Advanced Usage

REST API

Endpoint Description
POST /wp-json/siwp-reseller/v1/sdi/callback FatturaPA SDI status callback

AJAX Endpoints

The plugin exposes 80+ AJAX endpoints for all operations:

Dashboard

  • siwp_get_dashboard_stats - Dashboard statistics
  • siwp_get_revenue_data - Revenue data
  • siwp_get_top_products - Best selling products
  • siwp_get_low_stock_products - Low stock products

Contacts

  • siwp_get_contacts - Contacts list
  • siwp_save_contact - Save contact
  • siwp_delete_contact - Delete contact

Invoices

  • siwp_get_invoices - Invoices list
  • siwp_save_invoice - Save invoice
  • siwp_download_invoice_xml - Download FatturaPA XML
  • siwp_send_invoice_sdi - Send invoice via SDI

Estimates

  • siwp_get_estimates - Estimates list
  • siwp_convert_estimate_to_order - Convert to WC order
  • siwp_convert_estimate_to_invoice - Convert to invoice
  • siwp_send_estimate_email - Send estimate via email

DDT

  • siwp_get_ddt - DDT list
  • siwp_save_ddt - Save DDT
  • siwp_download_ddt_pdf - Download DDT PDF

Warehouse

  • siwp_get_warehouse_products - Warehouse products
  • siwp_get_warehouse_stats - Warehouse statistics
  • siwp_create_product - Create product
  • siwp_quick_update_stock - Quick stock update

Back to overview | Installation | Configuration