Get purchase history
GET
https://api.lws.net/v1/
operationIdgetPurchaseHistory
Retrieve all transactions made by the user using the API. This includes all purchases, renewals and other transactions. Transactions are kept for one year.
Responses
200
Purchase history retrieved successfully
{
"code": 200,
"info": "Purchase history fetched",
"data": [
[
{
"id": 0,
"id_revendeur": 547645,
"price": 35.880000000000003,
"timestamp": "2023-01-01 12:00:00",
"request": {
"action": "POST /hosting",
"type": "buy",
"package": "LWS Starter",
"domain": "mydomain.fr"
},
"product": "mydomain.fr"
}
]
]
}
Response fields 3
-
codeinteger -
infostring -
dataobject[][]
400
Could not retrieve purchase history
{
"code": 400,
"info": "Could not find the seller's purchase history"
}
Response fields 2
-
codeinteger -
infostring
401
Unauthorized - Missing authentication headers
{
"code": 401,
"info": "Unauthorized access to the API. Please specify X-Auth-Pass and X-Auth-Login to proceed."
}
Response fields 2
-
codeinteger -
infostring
429
Rate limit exceeded
{
"code": 429,
"info": "Rate limit exceeded. Please try again later."
}
Response fields 2
-
codeinteger -
infostring