#daizys

1 messages ยท Page 1 of 1 (latest)

scenic lynxBOT
trim isle
#

Hi ๐Ÿ‘‹

Can you share the request ID for a request where you attempt to unset the spending limits for a card?

lone locust
#

how can I extract the request Id from stripe.issuing.cards.update API call using node driver. I am getting back Card Object

#

card = await stripe.issuing.cards.update(cardExternalId, {
spending_controls: {
spending_limits: [],
},
});

trim isle
lone locust
#

the problem is that I don't see the request in the UI log section. If I understand the docs correctly I should add it as so?:
card.lastResponse.requestId

trim isle
#

If the request is making it to our API with your secret key then it should be in your logs.

lone locust
#

my company already asked to remove this behaviour and indeed when we create a card in the same manner the card is created without spending limits

trim isle
#

Ah. That sounds like special (non-default) behavior. I think you may need to create a new card in that case.

lone locust
#

this is the request id: req_iTswKcnBg9H4op

#

I wanna have the ability to unset spending limit for cards that is already created in the past with spending limits

trim isle
#

I see nothing in the POST body parameters for this request

#

I think you would actually need to pass the amount and interval as null or "" to achieve that result

lone locust
#

might be a bug? we send it as so:

card = await stripe.issuing.cards.update(cardExternalId, {
spending_controls: {
spending_limits: [],
},
});

#

amount null raise an error that the amount must be value 1 or above

lone locust
#

Please keep me posted on this ๐Ÿ™‚

trim isle
#

Since this is non-standard functionality I don't know that our API supports updating cards like this. I think your best bet is to write into Support (https://support.stripe.com) since I won't be able to dig into this here.