API Docs
Wallets & Payment
Set Wallet Addresses Split Percentage

Set Wallet Addresses Split Percentage

Mutation to enable and set your wallet splits, up to five wallets.

⚠️

To run this query you need the wallet id parameter. To find this one you need to first use our Get Wallet command. You also need the row id from Get Wallet Addresses command.

Example

mutation setWalletAddressesSplitPercentage {
  setWalletAddressesSplitPercentage(
    input: {
      uname: "username_here"
      addresses: [{ addressId: 1, splitPercentage: 300000 }, { addressId: 2, splitPercentage: 700000 }]
      walletId: 1
    }
  ) {
    results {
      walletAddress
      paymentSplitPercentage
    }
  }
}

Response

{
  "data": {
    "setWalletAddressesSplitPercentage": {
      "results": [
        {
          "walletAddress": "wallet_address_1",
          "paymentSplitPercentage": 300000
        },
        {
          "walletAddress": "wallet_address_2",
          "paymentSplitPercentage": 700000
        }
      ]
    }
  }
}

Arguments

  • uname (String)
  • addresses : addressId (Int) , splitPercentage (Int)
  • walletId (Int)