Powershell / Razorpay APIs / Cancel Payout Link
        
        Back to Collection Items
        Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.
$http = New-Object Chilkat.Http
$http.BasicAuth = $true
$http.Login = "username"
$http.Password = "password"
$resp = New-Object Chilkat.HttpResponse
$success = $http.HttpNoBody("POST","https://api.razorpay.com/v1/payout-links/{poutlk_id}/cancel",$resp)
if ($success -eq $false) {
    $($http.LastErrorText)
    exit
}
$($resp.StatusCode)
$($resp.BodyStr)
        Curl Command
        curl -X POST
	-u 'username:password'
https://api.razorpay.com/v1/payout-links/{poutlk_id}/cancel
        Postman Collection Item JSON
        {
  "name": "Cancel Payout Link",
  "request": {
    "method": "POST",
    "header": [
    ],
    "url": {
      "raw": "https://api.razorpay.com/v1/payout-links/{poutlk_id}/cancel",
      "protocol": "https",
      "host": [
        "api",
        "razorpay",
        "com"
      ],
      "path": [
        "v1",
        "payout-links",
        "{poutlk_id}",
        "cancel"
      ]
    },
    "description": "Use this [API](https://razorpay.com/docs/api/razorpayx/payout-links/#cancel-a-payout-link) to cancel a payout link."
  },
  "response": [
  ]
}