get
/2.0/user/history
Retrieve customer purchase or license history
A user may wish to have their purchases or license details confirmed. When they’ve changed machine, for example.
The order history and license recovery email can be triggered to a user via the checkout API or using a Paddle.js snippet as outlined below.
// Set the 2nd parameter to a product_id to additionally filter the response by product.
Paddle.User.History(email, null, function(response) {
if(response.success) {
// Let the user know they'll receive an email with their
// order history and license codes if their email was matched.
} else {
// Likely a formatting error in the email, vendorID, or ProductID.
}
});
Usage Notes
- 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).
Request Parameters
3 Query Parameters
Responses
Schema
object
or
object
An unsuccessful call to the Dashboard API will return a 200 response containing a field success
set to false
and an error object.
Send a Test Request
GET
Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.