Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kris01's avatar

Laravel API Postman

Hey guys,

How would I write this in POSTMAN?

curl https://api.stripe.com/v1/charges/{{CHARGE_ID}}/refunds \
  -u {{PLATFORM_SECRET_KEY}}: \
  -H "Stripe-Account: {{CONNECTED_STRIPE_ACCOUNT_ID}}" \
  -d amount=1000
0 likes
3 replies
tykus's avatar
tykus
Best Answer
Level 104

File > Import > Raw Text > {paste curl code above}

Then set the necessary variables in Postman for PLATFORM_SECRET_KEY, CONNECTED_STRIPE_ACCOUNT_ID and, if necessary CHARGE_ID

1 like

Please or to participate in this conversation.