You can see below the API reference of this module.
Creates the instance of the TerratekTopupAPI
class.
- Object
options
: An object containing: companyId
(String): TerratekTopup API companyId credentials (mandatory).secret
(String): TerratekTopup API secret credentials (mandatory).host
(String): TerratekTopup API host (Optional default:https://www.terratekph.ph/topup/api
).timeout
(Integer): integer containing the number of milliseconds to wait for a server to send response headers (and start the response body) before aborting the request. (Optional default: 60000).
Get remaining balance of the company.
- Function
cb
: The callback function.
Get Callback URL for the Topup status changes and Secret key used for Authorization parameter when calling the CallbackEventURL.
- Function
cb
: The callback function.
Update Callback URL for the Topup status changes and Secret key used for Authorization parameter when calling the CallbackEventURL.
- Object
data
: The Update object as documented here. - Function
cb
: The callback function.
Get a list of load product.
- Function
cb
: The callback function.
Create topUp request.
- Object
data
: The topUp object as documented here. - Function
cb
: The callback function.
Get topup transaction by TransactionId.
- Object
params
: The query params documented here. - Function
cb
: The callback function.
Get topup transaction by ReferenceNumber.
- Object
data
: The query params documented here. - Function
cb
: The callback function.