# Sales API (Beta)

**Sales API Endpoint:**

`https://api.explodely.com/v1/sale`

​**Parameters:**

You can use this API endpoint to search/fetch sales data through your Explodely seller account.

username - Your Explodely account username

apikey - Your Explodely account API key

apiaction - This should always be set as "getsale" (for POST requests) and "getsalebyget" (for GET requests)

startdate - in DD-mmm-YYYY format (example: 11-jan-2026)

enddate - in DD-mmm-YYYY format (example: 11-jan-2026)

customeremail - Email of the customer for which you wish to search sales

**Responses:**

The API endpoint returns a JSON object.

`{"error":"invalidapikey"}` - This is returned when the API key and username is not authenticated.

`{"error":"invalid_sellerid"}` - This is returned when the username is not a valid seller account.

For successful fetch, the JSON object would return sales data. This API is in BETA, please report any issues to Explodely support.
