Skip to content

Latest commit

 

History

History
82 lines (60 loc) · 2.22 KB

sales_order_invoice.md

File metadata and controls

82 lines (60 loc) · 2.22 KB

Sales Order Invoice

Allows you to add a new comment to the order invoice.

magento.salesOrderInvoice.addComment({
  invoiceIncrementId: val,
  comment:            val,  /* optional */
  email:              val,  /* optional */
  includeComment:     val   /* optional */
}, callback);

Allows you to cancel the required invoice. Note that not all order invoices can be canceled. Only some payment methods support canceling the order invoice (e.g., Google Checkout, PayPal Pro, PayPal Express Checkout).

magento.salesOrderInvoice.cancel({
  invoiceIncrementId: val
}, callback);

Allows you to capture the required invoice. Note that not all order invoices can be captured. Only some payment methods support capturing the order invoice (e.g., PayPal Pro).

magento.salesOrderInvoice.capture({
  invoiceIncrementId: val
}, callback);

Allows you to create a new invoice for an order.

magento.salesOrderInvoice.create({
  orderIncrementId: val,
  itemsQty:         val,
  comment:          val,  /* optional */
  email:            val,  /* optional */
  includeComment:   val   /* optional */
}, callback);

Allows you to retrieve information about the required invoice.

magento.salesOrderInvoice.info({
  invoiceIncrementId: val
}, callback);

Allows you to retrieve the list of order invoices. Additional filters can also be applied.

magento.salesOrderInvoice.list(callback);

// or 

magento.salesOrderInvoice.list({
  filters: [ val, val, val ]
}, callback);

// or a single filter

magento.salesOrderInvoice.list({
  filters: val
}, callback);