#gdog_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1466743571901190298
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there ๐ metadata doesn't carry over between objects in Stripe generally
for payouts in particular, this is intended because a payout can contain multiple transactions
are you creating a payout manually for each individual transfer?
The only object we create (as far as I can tell) is the transfer to the connected account. We get back a destination_payment (payment not payout?) id which is the record the merchant can see on their summary and export.
Ideally, we want these to be matchable to our merchant-facing reporting, and the preferred solution is to include one of our identifiers somehow, if possible
yeah it's possible for sure, but it requires some development work to set up since Stripe doesn't carry over the metadata automatically
Fine by me - I'm happy to push the information to that record if I can work out what the endpoint is
you'd call the Update Charge API using the Stripe-Account header so that you can set the metadata you want on that payment (destination_payment in the Transfer object)
https://stripe.com/docs/api#update_charge
https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header
this updates the Payment/Charge in the connected account (i.e. the py_123 object)
is that what you use to build out your merchant-facing reporting?
So, the ask from the business is that when the merchant exports their records from stripe it has our order identifier on it. Retrieving the py_ identifier and appending it on our end would be trivial.
cool! if the merchant exports their records from the 'Payments' page in the Stripe dashboard, they're exporting the Charge (py_) objects
so if you implement this metadata update flow, the metadata would be included in this export
Okay, so everywhere the API documentation mentions charge objects and prefixes them with ch_ I could use the payment identifier? So, charge update API using the identifier received when created the transfer and this should be visible
well, I guess the py_ identifier IS a charge identifier
yes exactly - it's a bit of a relic of our older API structure, where we also had Payment objects, hence the different prefix
but in effect a py_ object is exactly the same as a ch_ object in terms of API behaviour
Lovely, thank you! I was trying to find references to the py_ identifier and coming up with nothing.
Might mean that we need to rework how the transfers are made if it is a relic.
oh the behaviour and payment flow of creating transfers is fully up-to-date and still recommended
it's just the py_ prefix that stems from the older structure, so that's purely on our side
Got it. Thank you!
any time!
So, the charge update API returns no such charge with a py_ identifier - have I misunderstood the approach here, and I need to retreive the associated charge somehow?
๐ Hi there! I'm taking over for my colleague. Let me take a look
Does the py_ belong to your platform, or the connected account, and so you need to specify the Stripe-Account header?
Do you have a request ID (req_) that you can share?
probably the connected account
req_J17xy7fe5wo7SP
Right yeah, that py_ belongs to the connected account, so you'd need to pass Stripe-Account: https://docs.stripe.com/connect/authentication
Perfect, that works. Thank you very much!