Skip to main content

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:

CodeMessageReason
400Bad RequestEmail list contains invalid values
403ForbiddenYou Don't Have Permission
404Not FoundSale Order Not Found
500Internal Server ErrorService Not Available