commerce

POST /v1/refund-requests/{refundRequestId}/approve

Approve a pending refund request (staff).

تمام commerce اینڈ پوائنٹس

توثيقِ شناخت

ایک API کلید بطور بیر ٹوکن (bearer token) ارسال کریں۔ یہ اینڈ پوائنٹ اسپیسیفیکیشن میں کسی مخصوص اجازت کا ذکر نہیں کرتا، اس لیے فرض کرنے کے بجائے اپنی کلید کو کم از کم درکار اجازت دیں اور رسپانس چیک کریں۔

یہ اینڈ پوائنٹ کوئی آرگنائزیشن آئی ڈی نہیں لیتا۔ آپ کی کلید پہلے ہی اس آرگنائزیشن کی شناخت کرتی ہے جس سے یہ تعلق رکھتی ہے، اور اس کا جواب اسی کے مطابق محدود ہوتا ہے۔

آزمائیں

کوئی بھی چیز جو زاویہ دار قوسین میں ہو اسے اپنی اقدار سے بدلیں، اور کلیدی پلیس ہولڈر کو اپنے ڈیش بورڈ کی کسی کلید سے بدلیں۔

curl -X POST https://api.zinndigital.com/v1/refund-requests/{refundRequestId}/approve \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

لاگ ان ہیں؟ آپ کے ڈیش بورڈ میں موجود API کنسول آپ کی حقیقی تنظیم کی آئی ڈی اور آپ کی اپنی کلید خود بخود پُر کر دیتا ہے، اور لائیو API پر درخواست چلاتا ہے تاکہ آپ اصل ردعمل دیکھ سکیں۔ اس اینڈ پوائنٹ کو API کنسول میں کھولیں

تفصیلات

Approves a pending (pro-rata / goodwill) refund request and issues the refund. Staff-only — requires the `billing.refund` permission held by a staff role, not by any customer role.

پیرامیٹرز

نامقسملازمییہ کیا ہے
refundRequestId (path)UuidہاںThe refund request's id.

درخواست کا باڈی

نامقسملازمییہ کیا ہے
notestringنہیں

جواب

نامقسملازمییہ کیا ہے
idUuidہاںUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidہاںUUIDv7 identifier — sortable by creation time (docs/02 §8).
order_idUuidہاںUUIDv7 identifier — sortable by creation time (docs/02 §8).
statusRefundRequestStatusہاںA refund request's lifecycle state (docs/05 §4.13).
policy_classRefundPolicyClassہاںHow the refund policy classified a request (captured at request time).
amountMoneyAmountہاںA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
to_walletbooleanہاںRefund destination, frozen at request time — `false` (the default) reverses the original payment, `true` credits the account wallet. Any part of the order that was settled from…
reasonstringہاں
decided_bystringہاں
decision_notestringہاں
decided_atobjectہاں
refund_referencestringہاںSet once the refund has been issued (its idempotency key).
created_atstringہاں
updated_atstringہاں

وہ خرابیان جو یہ اینڈ پوائنٹ واپس کر سکتا ہے

401 · 403 · 404 · 409 · 422 · 429