commerce

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

Reject a pending refund request (staff).

جميع نقاط نهاية commerce

المصادقة

أرسل مفتاح واجهة برمجة التطبيقات (API key) كرمز حامل (bearer token). يجب أن يحمل المفتاح إذن billing.refund؛ والمفتاح الذي لا يملكه يُرفض بالرمز 403 وليس 404.

لا يقبل هذا الطرف أي معرف للمؤسسة. يحدد مفتاحك بالفعل المؤسسة التي ينتمي إليها، وتكون الاستجابة محصورة في نطاقها.

جربه الآن

استبدل أي شيء بين أقواس زاوية بقيمك الخاصة، والعنصر النائب للمفتاح بمفتاح من لوحة تحكمك.

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

هل سجلت الدخول؟ تقوم وحدة تحكم واجهة برمجة التطبيقات في لوحة التحكم الخاصة بك بربط معرف مؤسستك الحقيقي ومفتاحك الخاص، وتنفذ الطلب مقابل واجهة برمجة التطبيقات المباشرة لتتمكن من رؤية الاستجابة الفعلية. افتح هذه النهاية الطرفية في وحدة تحكم API

التفاصيل

Declines a pending refund request; no money moves. Staff-only — requires `billing.refund`.

المعلمات

الاسمالنوعمطلوبما هو هذا
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 · 429