commerce

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

Approve a pending refund request (staff).

সমস্ত commerce এন্ডপয়েন্ট

প্রমাণীকরণ

একটি বিয়ার টোকেন হিসেবে একটি এপিআই কি পাঠান। এই এন্ডপয়েন্টটি স্পেসিফিকেশনে কোনো নির্দিষ্ট অনুমতির কথা বলে না, তাই অনুমান না করে আপনার কি-কে এর জন্য ন্যূনতম প্রয়োজনীয় অনুমতি দিন এবং রেসপন্স পরীক্ষা করুন।

এই এন্ডপয়েন্টটি কোনো অর্গানাইজেশন আইডি নেয় না। আপনার কীটি ইতিমধ্যে এটি যে অর্গানাইজেশনের অন্তর্গত তা শনাক্ত করে এবং প্রতিক্রিয়াটি সেই অনুযায়ী নির্ধারিত হয়।

চেষ্টা করুন

কোণ বন্ধনীতে থাকা যেকোনো কিছু আপনার নিজস্ব মান দিয়ে এবং কী প্লেসহোল্ডারটি আপনার ড্যাশবোর্ডের একটি কী দিয়ে প্রতিস্থাপন করুন।

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

লগ ইন করা আছে? আপনার ড্যাশবোর্ডের এপিআই কনসোল আপনার আসল অর্গানাইজেশন আইডি এবং আপনার নিজের কি পূরণ করে দেয়, এবং লাইভ এপিআই-এর বিপরীতে অনুরোধটি চালায় যাতে আপনি প্রকৃত প্রতিক্রিয়া দেখতে পান। এই এন্ডপয়েন্টটি এপিআই কনসোলে খুলুন

বিবরণ

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