commerce

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

Approve a pending refund request (staff).

כל נקודות הקצה מסוג commerce

אימות

שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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