Add Payee

This API allows merchants to add payees to the system. Merchants can provide necessary information such as payee's name, email, account details, or any other relevant information required for payouts.

Sample Payload Data to be Encrypted


[{
    id: "11-22-33",
    fname: "Rohan",
    lname: "Singh",
    email: "[email protected]",
    label: "TestingL",
    businessname: "Testing2",
    },
    {
    id: "11-22-34",
    fname: "Rohan",
    lname: "Singh",
    email: "[email protected]",
    label: "TestingL",
    businessname: "Testing2",
    }]

This API will take encrypted data as request payload.

POST /payout/payee

Headers

Request Body

When all data is correct

{
  "ok": true,
  "result": {
    "success": true,
    "payees": [
      {
        "First Name": "Rohan",
        "Last Name": "Singh",
        "Email": "[email protected]",
        "Label": "TestingL",
        "Error(s)": ""
      },
      {
        "First Name": "Rohan",
        "Last Name": "Singh",
        "Email": "[email protected]",
        "Label": "TestingL",
        "Error(s)": ""
      }
    ],
    "insertedCount": 2,
    "errorMsg": ""
  }
}

When Encrypted Data is not in Correct Formate

{
  "ok": true,
  "result": {
    "success": false,
    "errorMsg": "Invalid Encrypted Data"
  }
}

When Decrypted Data is not in Correct Format (Array)

{
  "ok": true,
  "result": {
    "success": false,
    "errorMsg": "Invalid Formate of Decrypted Data"
  }
}

When Decrypted Data is missing a required key

{
  "ok": true,
  "result": {
    "success": false,
    "errorMsg": "Invalid Data: Row - 1, Key - email"
  }
}

Last updated