#rafaelbaptista-express

1 messages · Page 1 of 1 (latest)

ember silo
#

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?

violet wigeon
#

i'm using the endpoint v1/accounts/delete/accId

ember silo
#

hmm, there's no such endpoint

#

it's api.stripe.com/v1/accounts/acct_xxxxx and you use the DELETE HTTP verb

violet wigeon
#

thats what i'm using

ember silo
#

I do see a GET request you made on that account about 10 minutes ago, was that you trying to delete it?

violet wigeon
#

i just sent you the end part of the endpoint

ember silo
#

if so you're using the wrong verb

violet wigeon
#

no i'm using an delete

ember silo
#

I don't know what you're using to make the request but make sure you use DELETE, not GET or POST

violet wigeon
#

not a get

ember silo
#

can you send me a request ID req_xxxx from the Request-ID response header of an attempt to delete the account?

violet wigeon
#

when i go to the request list i'm not seeing the last requests

ember silo
#

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

violet wigeon
#

i'm looking in the platform account

ember silo
#

it's easier to just get it from the HTTP response itself or in your code if possible

violet wigeon
ember silo
#

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

violet wigeon
#

i'm trying to ask you how i find the request id of the call

ember silo
#

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?

violet wigeon
#

i'm using curl i dont see what i need to pass to get the response id

ember silo
#

-vvv (the verbose flags) for example to print all response headers

#

or you could Google how to get response headers from curl

violet wigeon
#

1sec i'm checking that

#

the headers that i get when printing are only the auth headers i dont get any request id

ember silo
#

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?

violet wigeon
#

because the version that i'm using seems to dont have the delete method

ember silo
#

what version are you using?

violet wigeon
#

Stripe/v1 PhpBindings/6.43.1

#

api version 2018-02-28

ember silo
#

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

violet wigeon
#

ty i'll wait for an answer

ember silo
#
$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

violet wigeon
#

ty i'll try this now

#

request id : req_X2GMTEyCJ1BcDj

#

could you check if the account was deleted?

ember silo
#

yep that worked

violet wigeon
#

ok nice, ty for the help