#rafaelbaptista-express
1 messages · Page 1 of 1 (latest)
hi! do you have the account ID acct_xxx of the account that you deleted?
thanks! from what I can tell I don't think this account was deleted, do you have more context on what you attempted to do or what endpoint you called and the result you got?
i'm using the endpoint v1/accounts/delete/accId
hmm, there's no such endpoint
it's api.stripe.com/v1/accounts/acct_xxxxx and you use the DELETE HTTP verb
thats what i'm using
I do see a GET request you made on that account about 10 minutes ago, was that you trying to delete it?
i just sent you the end part of the endpoint
if so you're using the wrong verb
no i'm using an delete
I don't know what you're using to make the request but make sure you use DELETE, not GET or POST
not a get
can you send me a request ID req_xxxx from the Request-ID response header of an attempt to delete the account?
when i go to the request list i'm not seeing the last requests
depends where you're looking as the request is likely to be on the Express account, which doesn't have a dashboard to look at
i'm looking in the platform account
it's easier to just get it from the HTTP response itself or in your code if possible
im trying to see the requests were https://dashboard.stripe.com/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yep that won't really work
anyway I looked at all our own logs and I'm not seeing any requests from you to delete that account
if you claim you're making the call and getting a response I need you to share the request ID and details of the response you got
i'm trying to ask you how i find the request id of the call
I did say
can you send me a request ID req_xxxx from the Request-ID response header of an attempt to delete the account?
i'm using curl i dont see what i need to pass to get the response id
-vvv (the verbose flags) for example to print all response headers
or you could Google how to get response headers from curl
1sec i'm checking that
the headers that i get when printing are only the auth headers i dont get any request id
can you post the exact CURL command you're running then? Just makes sure to replace the sk_live_xxxx with something else so you don't share the key itself when pasting here
can I ask why you don't use the stripe-php library?
because the version that i'm using seems to dont have the delete method
what version are you using?
you can definitely delete in that version, it's just that it won't be the syntax used in the docs because we changed the syntax is version 7
give me a few minutes to check how it's done in the old version
ty i'll wait for an answer
$acct = \Stripe\Account::retrieve("acct_xxx");
$acct = $acct->delete();
print_r($acct->getLastResponse()->headers["Request-Id"]);
that's an example of how it's done, I tried it just now and it worked and deleted a test mode Express account
ty i'll try this now
request id : req_X2GMTEyCJ1BcDj
could you check if the account was deleted?
yep that worked
ok nice, ty for the help