Paddle.UserHistory (paddlex v0.1.0) View Source

UserHistory

Link to this section Summary

Functions

Send the customer an order history and license recovery email

Link to this section Functions

Specs

get(String.t(), vendor_id: integer(), product_id: integer()) ::
  {:ok, String.t()} | {:error, Paddle.Error.t()}

Send the customer an order history and license recovery email

A customer may wish to have their past purchases or license details confirmed. For example, when they have changed computers. This API will send an email to the customer detailing this.

The API will always return a success response for all valid email addresses, even if they have not had any orders previously (buyers will receive an email stating that no orders were found).

Examples

Paddle.UserHistory.get("user@example.com", vendor_id: 1234)
{:ok, "We've sent details of your past transactions, licenses and downloads to you via email."}