Returns Lightspeed Payments fee and surcharge data for a business location for a specified date range. Results are queried and sorted based on the specified dateType.
Warning: This endpoint may not return all Lightspeed Payments transactions. Standalone (non-integrated) payments completed through Adyen terminals and prepaid Order Anywhere transactions may be omitted when no payment reference or POS metadata is generated. We are aware of this limitation and are working on an improvement.
Note: Will only return sales created after migration from iKentoo 2.0 to Lightspeed K-Series. See this article for more details.
Query parameters
-
Start of requested results, in ISO 8601 format.
The date range between 'from' and 'to' cannot exceed 365 days (1 year).
Results queried by the dateType parameter.
-
End of requested results, in ISO 8601 format.
Results queried by the dateType parameter.
-
Number of entries to return.
Maximum value is
100. Default value is50. -
The pagination offset.
Default value is
0. -
The direction to sort the results.
Values are
ASCorDESC. Default value isASC. -
The date used when querying and sorting results.
Values are
CREATEDorMODIFIED. Default value isMODIFIED. -
Payment statuses to filter the result set by.
Values are
CAPTURED,DISPUTED,PARTIALLY_REFUNDED, orREFUNDED.
curl \
--request GET 'https://api.trial.lsk.lightspeed.app/f/v2/business-location/45454565682155/lightspeed-payments?from=2023-01-01T14%3A00%3A00Z' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"payments": [
{
"accountFiscId": "A72691.8",
"lightspeedPaymentId": "ad-GJ33PFSCGVG4NFH4",
"uuid": "bc7i2X_CTkeg8qlec66wmg==",
"reference": "RFOOVMIMPSDY",
"status": "CAPTURED",
"createdDate": "2022-09-21T10:11:56Z",
"captureDate": "2022-09-21T10:11:56Z",
"modificationDate": "2022-09-21T10:11:56Z",
"fees": {
"value": "0.00",
"currency": "CAD"
},
"surcharge": {
"value": "0.00",
"currency": "CAD"
}
}
],
"pageSize": 100,
"offset": 0,
"nextOffset": 100
}
{
"error": "Invalid date format: 12/12/2023"
}
{
"error": "'from' date cannot be after 'to' date"
}