Light Mode
Send invoice
This endpoint is used to send the order's invoice to the customer's email. The invoice is to confirm the customer's order by showing the products he has ordered, their quantities, and their prices.
Payload authenticated
Response
Usage
To perform the action of sending the order's invoice to the customer's email, the developer may call the method send()
along with the order_id
.
salla.order.sendInvoice({ id: 98789 }).then((response) => {
/* add your code here */
});
// TIP: short version
salla.order.sendInvoice(12345).then((response) => {
/* add your code here */
});
Events
This endpoins may trigger two events, the onSent and onNotSent events.
onSent
This event is triggered when sending the order's invoice to the customer's email is done without having any errors coming back from the backend.
salla.event.order.onSent((response) => {
console.log(response)
});
onNotSent
This event is triggered when sending the order's invoice to the customer's email is not completed and an error has occurred.
salla.event.order.onNotSent((errorMessage) => {
console.log(errorMessage)
});
Last modified: 10 months ago
Payload `authenticated`
Response
Usage
Events
onSent
onNotSent