#secret_lil_squirrel
1 messages · Page 1 of 1 (latest)
Hello! You can update the Dispute and add metadata after it's created: https://stripe.com/docs/api/disputes/update#update_dispute-metadata
Hey @ember dust , thanks for your info here. I'm trying to add metadata on the creation event specifically, not an update after creation. Is this possible>?
No, that's not possible. Disputes are not created by you, they're created by cardholders or as a result of simulating a cardholder creating a dispute by using a special test card. It wouldn't make sense to add metadata to a Dispute at creation time because there would be no way for you to define it ahead of time.
Can you tell me more about what you're trying to do? Maybe I can suggest another approach.
No problem. I've built an integration running off of the "charge.dispute.created" event. I wouldn't ever actually need to create disputes with metadata on them already but am trying to test some edge cases of the integration (which would require the metadata to be present already).