Email Sale Order Invoice
Once a sale order is generated an invoice gets created.
Request
You can email the invoice PDF by making a POST request to sale-orders resource with the sale order id, the api key and a list of emails as request body.
curl -X POST -d '{ "emails": ["john@example.com"] }' https://services.rxrise.com/api/v1/sale-orders/1/invoice/email?apiKey=YOUR_API_KEY
Response
When success the endpoint will only return a 201 status code without response body.
Error list
These are the errors returned by this endpoint:
| Code | Message | Reason |
|---|---|---|
| 400 | Bad Request | Email list contains invalid values |
| 403 | Forbidden | You Don't Have Permission |
| 404 | Not Found | Sale Order Not Found |
| 500 | Internal Server Error | Service Not Available |