POST
stripe_refunds_create.py
import asyncio
from charter.packs import stripe
result = asyncio.run(stripe.refunds_create.ainvoke({"paymentIntent": ...}))
With
stripe.RESTRICTED_KEY, requires charge_write.Body
| Field | Type | Description |
|---|---|---|
charge | string | The identifier of the charge to refund. |
paymentIntent | string | The identifier of the PaymentIntent to refund. |
amount | integer | A positive integer in the smallest currency unit representing how much to refund. Defaults to the entire charge. Cents, not dollars: $15.00 is 1500, and 15 refunds fifteen cents. Multiply a decimal amount by 100. ≥ 1 |
reason | RefundReason | The reason for the refund. If set to ‘fraudulent’, the associated payment is marked as fraudulent. |
metadata | map of string | Set of key-value pairs attached to the refund. |