#mike_api

1 messages · Page 1 of 1 (latest)

ornate muralBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1227687488311525478

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

restive prairie
#

Example response:

{
    "id": "pyr_1P43iOIkaYJTQiHGMXu3GmLM",
    "object": "refund",
    "amount": 193,
    "balance_transaction": {
        "id": "txn_1P43pZIkaYJTQiHGGuibZeu3",
        "object": "balance_transaction",
        "amount": -193,
        "available_on": 1713484800,
        "created": 1712765821,
        "currency": "eur",
        "description": "REFUND FOR PAYMENT",
        "exchange_rate": null,
        "fee": 0,
        "fee_details": [],
        "net": -193,
        "reporting_category": "refund",
        "source": "pyr_1P43iOIkaYJTQiHGMXu3GmLM",
        "status": "pending",
        "type": "payment_refund"
    },
    "charge": "py_3P43hVIkaYJTQiHG2ZvAtp0L",
    "created": 1712765376,
    "currency": "eur",
    "destination_details": {
        "eu_bank_transfer": {
            "reference": null,
            "reference_status": "unavailable"
        },
        "type": "eu_bank_transfer"
    },
    "metadata": {},
    "payment_intent": "pi_3P43hVIkaYJTQiHG2kbXbt5e",
    "reason": "requested_by_customer",
    "receipt_number": null,
    "source_transfer_reversal": null,
    "status": "succeeded",
    "transfer_reversal": null
}
solid remnantBOT
chrome shard
restive prairie
#

If a Customer is using a SEPA payment (European bank), the payment is successful. But then we issue a refund, we still need to ask them for bank details? Stripe doesn't already have all of the necessary information?

solid remnantBOT
chrome shard
#

In some cases, Stripe receives the customer’s bank account details when performing the transfer. Stripe emails the customer to let them know that the refund is in process. We ask destination bank details if we can’t determine the destination bank account automatically due to unavailable or ambiguous customer bank account information.

restive prairie
#

Ok. So when the "Refund" transitions from "pending" to "succeeded" status what is that actually telling me?

chrome shard
#

The status of that refund is in 'pending' status, req_7xvMUBI7I6xKns and then once the funds have landed to the customer's bank, it will be updated to 'succeeded'.

restive prairie
#

I see "status": "succeeded", in the JSON I pasted above

#

Maybe I sent the wrong request ID? I just grabbed the request-id HTTP header value from the response

unreal pilot
#

👋 stepping in

#

The request ID you shared is from retrieving the Payment Refund

#

Sp yes you would see that it has a succeeded response if the email has already been input for the Bank Transfer refund to return the funds

restive prairie
#

Ok so Refund status of "succeeded" means the Refund is on its way but not necessarily complete? And if I want to know the exchange rate used I need to separately wait for the balance_transaction to be complete?

unreal pilot
#

Yes that's correct