This API returns the details of a customer wallet based on the provided wallet ID and customer ID. It also accepts an optional query parameter for pagination.

Rehook Platform API provides resource oriented URLs to work with your business data. Our API uses JSON for request and response. API errors are returned using standard HTTP response codes.


Get wallet transaction of a customer API will enable you to fetch the wallet transaction details of a given customer. you can call this API at applicable touch points on your application to show the wallet transactions on your application UI.

API details

API Endpoint:{source_id}/transactions/{wallet_id}

HTTP Method: GET


  1. API Key and Secret Key for your application
  2. If you don't know the API key and secret key, please go to setting module on admin panel to view API details for your application. To know more about application settings, please visit Application setting
  3. API key and secret key are auto generated and cannot be changed.
  4. Custom wallet to be created for your application. To know more about how to create wallet, please visit Wallet setting


You need to provide the API key and Secret of your application in every new request as Authorization. Rehook use Basic authentication method to authenticate the API calls.

UsernameAPI Key of your application
PasswordSecret key of your application


Query parameter

pagepage number for pagination2
default value will be 1

Path URL

This API doesn't requires any body parameters. you have to provide the source_id as parameter in the path URL

Rehook Id or source id of a customer

Sample request and response


In above URL path, 'krishna123' is the source id and 'waty_XbgBcerLwjoMhAGcmAHhZ' is the wallet id


If source_id and wallet_id provided in path is valid, then rehook will return the wallet transaction details of that customer in the response body.

    "transaction_id": "trhi_7fgEcRUnVZmqF9BVadOFh",
    "type": "credit",
    "points": 10,
    "description": "Wallet updated for redemption of code: KBLGPN",
    "created_at": "2023-09-13T10:27:37.839324Z",
    "updated_at": "2023-09-13T10:27:37.839324Z"
    "transaction_id": "trhi_maWlb7oQKjMF2wH6A27Mc",
    "type": "credit",
    "points": 10,
    "description": "Wallet updated for redemption of code: KBLGPN",
    "created_at": "2023-09-13T10:25:26.783454Z",
    "updated_at": "2023-09-13T10:25:26.783454Z"

Below table shows the definition of response body

Field nameDefinitionExample
transaction_idtransaction id assigned to a wallet transaction when it's credited or debited1234_kmn
typewallet transaction type - credit /debitcredit/debit
pointswallet points debited/credited20 point
descriptiondescription of the wallet transaction passed in credit/debit APIWallet updated for redemption of code: KBLGPN"
created_attransaction created date2023-09-13T10:25:26.783454Z
updated_attransaction updated date2023-09-13T10:25:26.783454Z


API Behaviour

  1. This API returns the transaction details of a customer and wallet in paginated way, hence you have to pass the page number as query parameter. API returns max of 20 transactions in one page.
  2. This API doesn't have any body parameter, you have to pass the source_id and wallet_id in the URL path

Error cases

If API call is failed, then Rehook will return the following HTTP success code with response body as given below:

HTTP CodeMessage
400bad request

error response body

field namedescriptionexample
CodeError code400
detailsError detailsGiven resource Id is wrong
messageerror messageResource Id not found
request_idAPI request Id assigned by Rehookabc_123

Sample error response

  1. When source_id in path is wrong
    "code": 404,
    "message": "resource not found",
    "details": "customer not found",
    "request_id": "9d06ea48-1b7e-984d-9557-9e69d24233af"
  1. When wallet_id in path is wrong

    You will get empty response
  2. When parameter is missing

    "code": 404,
    "message": "resource not found",
    "details": "customer not found",
    "request_id": "a3389214-407e-94fe-ac62-6154edc0d337"
Click Try It! to start a request and see the response here!