Skip to content
ZytePedevelopersDashboard
Payouts

Idempotency and recovery

Recover an ambiguous result without creating a duplicate business payment.

Separate request identity from payment identity

The nonce identifies one signed HTTP request. The Idempotency-Key identifies your payout instruction. Retries use a fresh timestamp, nonce and signature but retain the same idempotency key and original business payload.

Recover with a known transaction ID

Call External payout status with the transaction_id returned by initiation. GET has no body. Use this for missed callbacks or support checks rather than continuous polling.

Handle a lost initiation response

Retain the saved idempotency key. The contract says replaying that key for the same merchant returns the original payout transaction. Do not switch to a new key; if uncertainty persists, involve support with your external_ref and redacted request context.

Respect contract limits

Idempotency retention, same-key/different-body behavior, concurrent duplicate handling and precise retry timing are not fully specified. Confirm them before designing retry automation. Preserve exact returned status casing; processing and COMPLETED are examples from different stages.

Request example

Choose Node.js, Python, PHP, Ruby, Java or cURL. Run signed requests on your backend. PHP, Ruby and Java include signing directly. Java requires JDK 17 or newer.

import { signedHeaders } from './signing.mjs';
const transaction_id = process.env.ZYTEPE_TRANSACTION_ID;
if (!transaction_id) throw new Error('Set ZYTEPE_TRANSACTION_ID to the returned identifier');
const path = `/api/v1/payouts/external/status/${encodeURIComponent(transaction_id)}`;
const query = '';
const body = ''; // GET requests have no body
const headers = signedHeaders({
  method: 'GET', path, query, body,
  keyId: process.env.ZYTEPE_API_KEY_ID,
  secret: process.env.ZYTEPE_API_SECRET,
});
const url = 'https://api.zytepe.com' + path + (query ? '?' + query : '');
const response = await fetch(url, { method: 'GET', headers });
if (!response.ok) throw new Error('Request failed: HTTP ' + response.status);
const result = await response.json();
// Store the returned identifiers securely. Do not log customer data.

Path, query and headers

transaction_idRequiredpath

Use the identifier returned by the corresponding creation operation.

Request body

No request body for GET.

Example response

JSON · response
{
  "success": true,
  "message": "Payout status retrieved from ZytePe ledger.",
  "data": {
    "id": "ca9a58aa-d578-4fc2-a9f4-fb8d090d4b5f",
    "external_ref": "PAYOUT-2026-00041",
    "gateway_ref": "BANKREF98344210",
    "amount_gross": "1500.0000",
    "amount_fees": "15.0000",
    "amount_net": "1485.0000",
    "currency": "INR",
    "category": "DISBURSEMENT",
    "method": "IMPS",
    "status": "COMPLETED",
    "payee_id": "d965aa45-1952-4749-aa52-2bed21470ffd",
    "payee_name": "Aditi Traders",
    "failure_reason": null,
    "created_at": "2026-05-03T10:42:10.110Z",
    "updated_at": "2026-05-03T10:43:18.240Z"
  }
}

Explore the business workflow: Business payouts.