#mo_api

1 messages · Page 1 of 1 (latest)

solemn krakenBOT
#

👋 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/1461028515876044830

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tulip stump
#

I would like to change the collection_method of an invoice
sorry, i meant "of a subscription" not "of an invoice" my bad.

I'm trying to change the collection_method of a subscription

languid glade
#

Hm weird error

#

customer_balance isn't even a payment method currently on the subscription

#

I see you removed it

tulip stump
#

let me check again real quick

#

but if i retrieve the subscription, i see this

languid glade
#

Yeah that's what I mean by the above

#

It's a weird error

#

You removed customer_balance

tulip stump
#

ah yeah, i get what you mean now

#

any idea what else i can try?

languid glade
#

This looks like a bug unfortunately

#

Let me confirm with a colleague

tulip stump
#

🫡

languid glade
#

In the mean time can you try unsetting the customer_balance configuration you have within payment_settings? Curious if that'll at least unblock you

#

Yeah apparently this is a known bug actually according to my colleague

#

You do have to unset all the params you set for customer_balance within payment_settings as well

tulip stump
#

how can i do this? cuz

stripe subscriptions update sub_1SpT7MAFxlGPwjh5GJZ0mbWX -d "payment_settings[payment_method_options][customer_balance][bank_transfer][eu_bank_transfer]={}"

doesn't seem to work

#

if i update and then retrieve, it doesn't go away

languid glade
#

You have to set each param that you previously set with an empty string

tulip stump
#

if i try to set country to "" for example, i get this error

{
"error": {
"code": "parameter_invalid_empty",
"doc_url": "https://stripe.com/docs/error-codes/parameter-invalid-empty",
"message": "You passed an empty string for 'payment_settings[payment_method_options][customer_balance][bank_transfer][eu_bank_transfer][country]'. We assume empty values are an attempt to unset a parameter; however 'payment_settings[payment_method_options][customer_balance][bank_transfer][eu_bank_transfer][country]' cannot be unset. You should remove 'payment_settings[payment_method_options][customer_balance][bank_transfer][eu_bank_transfer][country]' from your request or supply a non-empty value.",
"message_code": "invalid_empty_parameter",
"param": "payment_settings[payment_method_options][customer_balance][bank_transfer][eu_bank_transfer][country]",
"request_log_url": "https://dashboard.stripe.com/acct_1B5vUMAFxlGPwjh5/test/workbench/logs?object=req_ClCTmt6FhtuVlQ",
"type": "invalid_request_error"
}
}

#

stripe subscriptions update sub_1SpT7MAFxlGPwjh5GJZ0mbWX -d "payment_settings[payment_method_options][customer_balance][bank_transfer][eu_bank_transfer][country]="

languid glade
#

Hm can you try setting payment_settings[payment_method_options][customer_balance] to an empty string instead of each individual param

solemn krakenBOT