#scott-g_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1491445395224658001
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! If you want to track your own values on Stripe objects, you can store key value pairs in metadata: https://docs.stripe.com/api/customers/object#customer_object-metadata
what? why cant someone just get on a call and help me activate this rader?
i have been trying to do this for 1 week. No one helps. I dont want an AI, i want someone on the phone
Sorry, I'm not sure what you mean. This is not AI. You asked about adding a custom field to the Customer object and I suggested you store the value in customer.metadata
Oh, my apologies @ember dagger, I didn't realize someone else entered our thread.
No worries
Samara, this is not your support chat
@rotund plume please keep your questions to your existing thread. This thread is to help someone else.
I is hleping me?
lol
I asked support and no one answers
@rotund plume your thread is here: https://discord.com/channels/841573134531821608/1491447200423874600
I will reply to you as soon as possible. I am answering multiple threads at once.
Thank you Jazz, I understand I could add something in the Metadata but I am utilizing Workato for this and it is very drag and drop esque, I can't really edit the JSON inputs. I am wondering if there is something similar to Custom Fields in Salesforce available in Stripe?
?
Samara. Literally, in the discord "#dev-help" channel, go down one thread and talk in there. Me, Scott G, is another customer trying to get support and you are in my support thread, not your own. I tagged you in your own thread in a different message
Thank you for your patience @ember dagger ๐
Unfortunately we don't have a way to add custom fields to a Stripe object. When you say you can't edit the JSON inputs, do you mean to create/update the Customer object?
No worries, I have found the metadata and been able to successfully update it in Workato with a NetSuite_ID key and a value there. If I wanted to implement logic to bypass some actions if metadata of NetSuite_ID exists, what would be my best way to do that? If condition If Metadata.Key = NetSuite_ID?
Because it is not like a new permanent field of NetSuite_ID exists on the Customer Object, it is just in the metadata and I am not sure if there is going to be other metadata on the Object in the Customer's instance
Glad you were able to set this! customer.metadata only contains key value pairs that you add and Stripe does not modify it or use it for anything. Therefore, yes, you can simply check that the key you're expecting exists and even check its value if needed.
Thank you and good luck with your integration! We're always here to help ๐
you guys did not help me with me anything
Hi @rotund plume, please stop asking questions in this thread and instead ask them in your thread: https://discord.com/channels/841573134531821608/1491447200423874600
I will remove you from this thread and will have to remove you from the Discord server if this keeps happening. Thank you.
@somber trout One final question, sorry. Is there a way to remove Metadata once it exists on the Customer record?
No problem! You can do so by updating the customer and setting the key to an empty value as described here: https://docs.stripe.com/api/customers/update#update_customer-metadata
Okay so it would have to be ALL metadata key/value pairs, you can't just delete one?
Nevermind, I misread. Apologies
But there is no way to remove the key entirely? You can only remove the value associated with the key
If you update the key with an empty value, it will remove the key ๐
Lovely, thank you Jazz!
You're welcome!