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
POSTcreateRefund

This endpoint allows to create a refund

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
locationIdSTRING
REQUIREDThe ID of the original transaction's associated location.
amountSTRING
REQUIREDThe amount of money, in the lowest in the smallest denomination of the currency indicated by currency. For example, when currency_code is USD, amount is in cents.
idempotencyKeySTRING
REQUIREDA value you specify that uniquely identifies this refund among refunds you've created for the tender.
tenderIdSTRING
REQUIREDThe ID of the tender to refund.
transactionIdSTRING
REQUIREDThe ID of the original transaction that includes the tender to refund.
accessTokenSTRING
REQUIREDValid AccessToken.
currencySTRING
REQUIREDThe type of currency, in ISO 4217 format. For example, the currency code for US dollars is USD.
Optional Parameters
reasonSTRING
OPTIONALA description of the reason for the refund. Default value: Refund via API
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication