absolutepay (Node SDK) - v0.7.1
    Preparing search index...

    Issue and track refunds on settled collections (scope: payments:write).

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Refund all or part of a previously settled collection.

      Parameters

      Returns Promise<Refund>

      The created Refund with its refundRequestId and status.

      On failure (e.g. 401/403 missing payments:write, 422 over-refund, 404 unknown order, 409 idempotency conflict).

      const refund = await client.refunds.create(
      { merchantTradeNo: "order_123", amount: { amount: "10.00", currency: "USDT" }, reason: "customer request" },
      { idempotencyKey: crypto.randomUUID() },
      );