πŸ”—Payout links

Low-code solution to accept payouts

Introducing Payout Links - Make sending out money to beneficiaries, simple and easy. Improve customer / vendor / partner's experience by making instant payouts in their preferred mode of transaction with preferred processor.

  • Corporates - Pay marketing affiliates and reimburse employees.

  • BFSI (Banking, Financial Services, and Insurance) - Settling insurance claims and paying DSA (Direct Selling Agents) incentives.

  • Healthcare - Pay field agents, handle reimbursements, and issue refunds.

  • Travel and Hospitality - Pay commissions to vendors, handle reimbursements and do refunds.

  • Rental Business - Process Security Deposit Refunds for all rental business like car, housing, furniture and appliances.

  • Online gaming - Distribute prize money to players.

  • NGOs & Political Organisations - Reimburse field agents and volunteers.

Prerequisites

  • Create a Hyperswitch account via the dashboard and create a profile (read more)

  • Add a payout processor to your account

Note: Domain name might vary based on the testing and production environment.

"payout_link_config": {
  // Custom theme color for your payout link.
  // Can be any html color hex code. Optional.
  "theme": "#143F1E",

  // Custom logo for your company.
  // Can be any hosted image URL. Optional.
  "logo": "https://hyperswitch.io/favicon.ico",

  // Name of your company. Optional.
  "merchant_name": "Shoekraft"
}

- Set "payout_link" = "true" to create a payout link with default payout_link_config set in business profile update mentioned in Step 1

- You can also pass the "session_expiry" field in seconds to indicate the expiry of the payout link. By default it is 900 seconds (15 minutes)

curl --location 'https://sandbox.hyperswitch.io/payouts/create' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: YOUR_API_KEY' \
--data '{
    "amount": 100,
    "currency": "EUR",
    "customer_id": "cus_123",
    "name": "John Doe",
    "phone": "999999999",
    "email": "payout_customer@example.com",
    "phone_country_code": "+65",
    "description": "Its my first payout request",
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "CA",
            "zip": "94122",
            "country": "US",
            "first_name": "John",
            "last_name": "Doe"
        },
        "phone": {
            "number": "9000000001",
            "country_code": "+91"
        }
    },
    "payout_link" : true,
    "confirm": false,
    "session_expiry":2592000
}'

You can also customize a specific payout link by including the payout_link_config object while creating a link during payouts/create call as well. The UI is customizable during link creation. However, domain_name cannot be customized and is always read from a business profile's config.

curl --location 'https://sandbox.hyperswitch.io/payouts/create' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: YOUR_API_KEY' \
--data '{
    "amount": 1130,
    "currency": "USD",
    "confirm": false,
    "customer_id": "cus_123",
    "return_url": "https://hyperswitch.io",
    "description": "For selling Tshirt",
    "payout_link": true,
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "CA",
            "zip": "94122",
            "country": "US",
            "first_name": "John",
            "last_name": "Doe"
        },
        "phone": {
            "number": "9000000001",
            "country_code": "+91"
        }
    },
    "session_expiry": 2592000,
    "payout_link_config": {
        "merchant_logo": "https://i.imgur.com/N18JAS2.jpg",
        "color_scheme": {
            "background_primary_color": "#36D399",
            "sdk_theme": "#36D399"
        }
    }
}'

FAQ

Last updated