#meteograms

1 messages · Page 1 of 1 (latest)

polar spadeBOT
obtuse flicker
#

You are passing a "null" string and not null .

desert sparrow
#

So how do I pass null and not a "null" string?

obtuse flicker
#

yes

celest bloom
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

How are you sending this request?

desert sparrow
#

just a curl command in a terminal... the curl command is given above. Of course, normally I'm using one of the stripe libraries in my code, but here I just want to quickly update a product via the command line (using curl).

celest bloom
#

Oh, this is odd then. Let me check.

#

Sorry, is this the command that produces the error?

curl https://api.stripe.com/v1/products/prod_xyz-etc-yyy -u sk_test_xxx-etc-yyy: -d "default_price"=null
#

I looked at the other one. Try sending an empty string ""

#

Please, let me know if you have any other questions.

desert sparrow
#

I'll give it a try...

#

Yep, that works well... i.e. setting to an empty string sets the property to null.

celest bloom
#

Great. Please, let me know if you have any other questions.

desert sparrow
#

Thanks, that's all for this particular issue!