All payout

Retrieving all payouts

All payout API provides a quick and secure way to collect payment, you can use a POST request to the payout's endpoint. Below is an example using cURL:


    
    let headersList = {
        "Accept": "/",
        "User-Agent": "Thunder Client (https://www.thunderclient.com)",
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
        .eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiJjYjIy
        YzBlZi1hYmY0LTRlM2YtOGU0NC0xNjQyZDBjYTB
        jODkiLCJpYXQiOjE3MTE0MzkzODYsImV4cCI6MT
        cxMTUyNTc4Nn0.QcGjLGLdI34WTZ3zE0Ae8vAVQGq
        riiiBClfhphPOe2g",
        "Content-Type": "application/json"
       }
       
       let bodyContent = JSON.stringify({
         "start_date": "2024-01-23",
         "end_date": "2024-03-22",
         "Channel": "fiat",
         "currency": "ngn"
       });
       
       let response = await fetch("https://api.switch.tulupay.com/payout/all", { 
         method: "POST",
         body: bodyContent,
         headers: headersList
       });
       
       let data = await response.text();
       console.log(data);

Request details

  • Endpoint: `https://api.switch.tulupay.com/payout/all`
  • Method: `POST`
  • Headers:
  • Content-Type: `application/json`
  • Authorization: `token`
  • Response details

    A successful response will contain a JSON array with details of all payouts. Here's a simplified example:

    
        {
            "status": "successfull",
            "statusCode": "00",
            "data": [
              {
                "transaction_id": "092373-52982dc8-4ad5-
                451b-95d4-415f4c9d6319",
                "source_acct": "2639114836",
                "destination_acct": "8467337726",
                "recipient_name": "olaniyi faruq",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "100",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-20 15:16:56"
              },
              {
                "transaction_id": "347084-2e6b9984-ecf0
                -4852-9923-dc8ad460e075",
                "source_acct": "2639114836",
                "destination_acct": "8467337726",
                "recipient_name": "olaniyi faruq",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "1000",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-19 11:9:53"
              },
              {
                "transaction_id": "440883-6ad5d44f-3da5
                -4226-9778-d3e55cb8cf36",
                "source_acct": "2639114836",
                "destination_acct": "0169889978",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "01",
                "response_message": "Invalid Amount",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "50",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-19 11:11:3"
              },
              {
                "transaction_id": "479103-1c517ccf-e7f5
                -4b24-a9f5-9d7ef9eda65a",
                "source_acct": "2639114836",
                "destination_acct": "0169889978",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "1000",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-19 11:6:32"
              },
              {
                "transaction_id": "688625-5efc9b83-cd26
                -4724-9eeb-f4fbfca2e741",
                "source_acct": "2639114836",
                "destination_acct": "2227371476",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "1000",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-19 11:5:45"
              },
              {
                "transaction_id": "765577-185342ec-72ad
                -4abc-a85f-3973441df41a",
                "source_acct": "2639114836",
                "destination_acct": "8467337726",
                "recipient_name": "olaniyi faruq",
                "response_code": "01",
                "response_message": "Invalid Amount",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "99",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-14 14:33:0"
              },
              {
                "transaction_id": "765577-2d65fb9d-cfc2
                -4c33-85f3-7d8751558edf",
                "source_acct": "2639114836",
                "destination_acct": "2227271476",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "01",
                "response_message": "Invalid Amount",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "10",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-14 14:31:29"
              },
              {
                "transaction_id": "765577-4ae6e2a1-374b
                -413b-8458-0b9fe2ef0938",
                "source_acct": "2639114836",
                "destination_acct": "2227271476",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "1001",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-14 14:26:46"
              },
              {
                "transaction_id": "765577-5292de30-455c
                -4d0c-bf72-1625e1e8c1d3",
                "source_acct": "2639114836",
                "destination_acct": "8467337726",
                "recipient_name": "olaniyi faruq",
                "response_code": "01",
                "response_message": "Invalid Amount",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "10",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-19 10:54:53"
              },
              {
                "transaction_id": "765577-86b7dbb4-f1ea
                -4508-af14-d00575818104",
                "source_acct": "2639114836",
                "destination_acct": "2227271476",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "01",
                "response_message": "Invalid Amount",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "10",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-14 14:26:27"
              },
              {
                "transaction_id": "765577-8a297e5a-2193
                -45ce-8385-efe488e99b23",
                "source_acct": "2639114836",
                "destination_acct": "0169889978",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "100",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-19 10:50:52"
              },
              {
                "transaction_id": "765577-a88e0b5f-4ac9
                -42a9-8d86-adeffd4a8510",
                "source_acct": "2639114836",
                "destination_acct": "8467337726",
                "recipient_name": "olaniyi faruq",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "1000",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-14 14:19:59"
              },
              {
                "transaction_id": "765577-ad40e79b-2fe2
                -4a91-b3b7-c4fd1bbf4adb",
                "source_acct": "2639114836",
                "destination_acct": "0169889978",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "1000",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-15 12:18:23"
              },
              {
                "transaction_id": "935796-b9814c9a-b7f9
                -4d54-80f2-bc0f2dcace27",
                "source_acct": "2639114836",
                "destination_acct": "0169889978",
                "recipient_name": "Faruq Gbadegesin",
                "response_code": "00",
                "response_message": "Successfull",
                "trans_type": "payout",
                "transaction_desc": "",
                "transaction_amount": "600",
                "initial_balance": null,
                "current_balance": null,
                "created": "2024-03-19 11:7:15"
              }
            ],
            "transaction_status": {
              "total_transaction": 14,
              "last_week_transaction": "5000",
              "last_month_transaction": "8000"
            }
          }

    Contact Us for Developer Support

    Contact our dedicated developer support team for assistance, guidance, or any questions you have regarding Tuluswitch API integration. We're here to ensure your development experience is smooth and successful.

    Read Our Developer Blog for Insights

    Master the Tuluswitch API with our Developer Blog! Get expert insights, advanced tips, and industry trends beyond the documentation. Stay connected with the developer community to build exceptional payment platforms. Visit the blog now and unlock your full potential!