Credit by Credit Card
API to credit (transfer money from merchant to customer) by credit card token.
Token can be created using the Tokenization flow.
API Interface
Credit API
POST
https://api.sensepass.com/api/transactions/credit
Request Body
Name | Type | Description |
---|---|---|
deviceId | string | Terminal unique device ID provided by SensePass (For Device based Transactions) - Required if apiKey is empty |
apiKey | string | Merchant ID provided by SensePass (For Web based Transactions) - Required if deviceId is empty |
token* | string | Credit card token - Required |
refundAmount | number | The credit amount - Required |
errorCode = 0 indicating successful credit operation.
On error see "errorMessage" field which describes the error cause.
Example
Basic request example to credit using Device ID:
Basic request example to credit using Location API Key or Merchant API key:
Flow Chart
See our payment flow chart here
Transaction Status Flow
Last updated