commerce

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

Approve a pending refund request (staff).

అన్ని commerce ఎండ్‌పాయింట్లు

ప్రమాణీకరణ

ఒక API కీని బేరర్ టోకెన్‌గా పంపండి. ఈ ఎండ్‌పాయింట్ స్పెసిఫికేషన్‌లో నిర్దిష్ట అనుమతిని పేర్కొనలేదు, కాబట్టి ఊహించడం కంటే మీ కీకి అవసరమైన కనిష్ట అనుమతిని ఇవ్వండి మరియు ప్రతిస్పందనను తనిఖీ చేయండి.

ఈ ఎండ్‌పాయింట్ ఎలాంటి సంస్థ ఐడీని తీసుకోదు. మీ కీ ఇప్పటికే అది ఏ సంస్థకు చెందుతుందో గుర్తిస్తుంది మరియు ప్రతిస్పందన దానికే పరిమితం చేయబడుతుంది.

ప్రయత్నించండి

కోణీయ బ్రాకెట్‌లలో ఉన్న దేన్నైనా మీ స్వంత విలువలతో భర్తీ చేయండి, మరియు కీ ప్లేస్‌హోల్డర్‌ను మీ డాష్‌బోర్డ్ నుండి తీసుకున్న కీతో భర్తీ చేయండి.

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

సైన్ ఇన్ చేశారా? మీ డ్యాష్‌బోర్డ్‌లోని API కాన్సోల్ మీ అసలైన సంస్థ ID మరియు మీ స్వంత కీని నింపుతుంది, అలాగే మీరు అసలైన ప్రతిస్పందనను చూడటానికి లైవ్ 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