commerce

POST /v1/orders/{orderId}/paypal/capture

Capture a PayPal order the buyer completed.

सर्व commerce एंडपॉइंट्स

सर्व डेव्हलपर कागदपत्रे

प्रमाणीकरण

बेअरर टोकन म्हणून API की पाठवा. या एंडपॉईंटने स्पष्टीकरणामध्ये ठराविक परवानगी नमूद केलेली नाही, त्यामुळे तुमच्या कीला आवश्यक तेवढाच कमीत कमी ॲक्सेस द्या आणि गृहीत धरण्याऐवजी प्रतिसाद तपासा.

या एंडपॉइंटला कोणतीही संस्था आयडी (organisation id) लागत नाही. तुमची की (key) आधीच ती कोणत्या संस्थेशी संबंधित आहे हे ओळखते आणि प्रतिसाद त्यानुसार मर्यादित केला जातो.

प्रयत्न करा

कोनसांस्कृतिक कंसात (<>) असलेली कोणतीही गोष्ट तुमच्या स्वतःच्या मूल्यांनी बदला आणि key प्लेसहोल्डरला तुमच्या डॅशबोर्डवरील किने बदला.

curl -X POST https://api.zinndigital.com/v1/orders/{orderId}/paypal/capture \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "paypal_order_id": <string> }'

साइन इन केलेले आहे? तुमच्या डॅशबोर्डमधील API कन्सोल तुमची खरी संस्था आयडी आणि तुमची स्वतःची की आपोआप भरतो आणि लाइव्ह API विरुद्ध विनंती कार्यान्वित करतो जेणेकरून तुम्हाला वास्तविक प्रतिसाद पाहता येईल. एपी कन्सोलमध्ये हा एंडपॉइंट उघडा

तपशील

Settles the order against a PayPal order the buyer has approved (wallet) or paid by card (including any 3-D Secure step). ⛔ The browser is not believed. It reports that the buyer finished; only PayPal's capture response says money moved, and only the engine writes a payment. Posting an invented paypal_order_id produces a gateway error, never a paid order. A declined card answers 200 with the order payment_failed, for the same reason payOrder does — the attempt was processed exactly as asked.

पॅरामीटर्स

नावप्रकारआवश्यकहे काय आहे
orderId (path)UuidहोयThe order's id.

विनंती मुख्य भाग

नावप्रकारआवश्यकहे काय आहे
paypal_order_idstringहोयThe id returned by openPayPalOrder and completed in the browser.

प्रतिसाद

नावप्रकारआवश्यकहे काय आहे
idUuidहोयUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidहोयUUIDv7 identifier — sortable by creation time (docs/02 §8).
human_refstringहोयHuman-friendly order reference.
statusOrderStatusहोयAn order's lifecycle state (docs/31 §4.3).
currencyCurrencyCodeहोयISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
subtotal_minorintegerहोय
tax_minorintegerहोय
discount_minorintegerहोय
total_minorintegerहोय
billing_countryobjectनाही
placed_atobjectनाही
created_atstringहोय
updated_atstringनाही
linesOrderLine[]होय
paymentsPayment[]होय

ही एंडपॉइंट परत करू शकेल अशा त्रुटी

401 · 403 · 404 · 422 · 429 · 503