SquareECommerce
FREE
By serg.osipchuk
Updated a year ago

SquareECommerce API Documentation

Accept, process and filter online payments through Square.

Learn more about this API
POSTcaptureSingleTransaction
POSTchargeCard
POSTcreateCustomer
POSTcreateCustomerCard
POSTcreateRefund
POSTdeleteCustomerCard
POSTdeleteSingleCustomer
POSTgetAccessToken
POSTgetCustomers
POSTgetLocations
POSTgetRefunds
POSTgetSingleCustomer
POSTgetTransactions
POSTrefreshAccessToken
POSTretrieveSingleTransaction
POSTrevokeSingleAccessToken
POSTrevokeTokens
POSTupdateCustomer
POSTvoidSingleTransaction
POSTgetRefunds

This endpoint returns lists refunds for one of a business's locations.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
accessTokenSTRING
REQUIREDValid AccessToken.
locationIdSTRING
REQUIREDThe ID of the location to list refunds for.
Optional Parameters
sortOrderSELECT
OPTIONALThe order in which results are listed in the response (ASC for oldest first, DESC for newest first). Default value: DESC
beginTimeDATEPICKER
OPTIONALThe beginning of the requested reporting period, in RFC 3339 format (2016-01-31T00:00:00Z). Default value: The current time minus one year.
cursorSTRING
OPTIONALA pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query.
endTimeDATEPICKER
OPTIONALThe end of the requested reporting period, in RFC 3339 format (2016-01-31T00:00:00Z). Default value: The current time.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication