Create or update a refund
documentedCreate or update a refund for an order.
POST /v2/{account_id}/refundsOrders (Legacy)no implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.getdrip.com/v2/{{$account_id}}/refunds" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "User-Agent: Your App Name (www.yourapp.com)" \
-u {{GETDRIP_API_KEY}}: \
-d '{"refunds":[{"provider":"{{$provider}}","order_upstream_id":"{{$order_upstream_id}}","upstream_id":"{{$upstream_id}}","amount":{{$amount}},"note":"{{$note}}","processed_at":"{{$processed_at}}"}]}'