Skip to main content

Retry Failed Payout

Deprecated — Do Not Use

This endpoint is deprecated and will be removed in a future release. It is no longer maintained and may produce unexpected behavior.

Use Payout Intents instead. Payout Intents handle retries automatically via smart routing.

Retry a failed payout with the same or a different TSP.

POSThttps://api.zenpays.com/merchant/api/v1/payouts/{payoutId}/retry
Bearer · API key

Request​

Path Parameters​

ParameterTypeDescription
payoutId
REQUIRED
stringPayout ID (e.g., pay_xxxxx)

Headers​

HeaderDescription
Authorization
REQUIRED
Bearer {api_key}
X-Signature
REQUIRED
HMAC-SHA256 signature
X-Timestamp
REQUIRED
ISO 8601 timestamp
X-Secret-Salt
REQUIRED
Secret salt for HMAC validation
Content-Type
REQUIRED
application/json

Body Parameters​

ParameterTypeDescription
forceProvider
OPTIONAL
stringForce specific payment provider

Response​

Success (200 OK)​

{
"success": true,
"data": {
"payoutId": "pay_xxxxx",
"merchantId": "mer_xxxxx",
"amount": 10000,
"currency": "INR",
"status": "processing",
"externalPayoutId": "pout_xxxxx",
"processingFee": 25,
"totalDebitedAmount": 10025,
"estimatedCompletion": "2024-01-15T11:00:00.000Z",
"createdAt": "2024-01-15T10:30:00.000Z",
"metadata": {}
}
}

Error Responses​

CodeHTTPMessage
PAYOUT_NOT_RETRYABLE400Payout cannot be retried
UNAUTHORIZED401Invalid API key
PAYOUT_NOT_FOUND404Payout doesn't exist

Examples​

curl -X POST "https://api.zenpays.com/merchant/api/v1/payouts/pay_xxxxx/retry" \
-H "Authorization: Bearer zp_test_xxxxx" \
-H "X-Timestamp: 2024-01-15T10:30:00.000Z" \
-H "X-Signature: a1b2c3d4e5f6..." \
-H "X-Secret-Salt: your_secret_salt" \
-H "Content-Type: application/json" \
-d '{}'