#CapitanRex - File Upload
1 messages · Page 1 of 1 (latest)
Hello! Have you looked at the example code here? https://stripe.com/docs/api/files/create?lang=dotnet
Yeah, but not sure which option to choose, and also, that only creates the file on Stripe, but i need to link that file after to an account
What do you mean by which option to choose?
var fileOptions = new FileCreateOptions
{
File = stream,
Purpose = FilePurpose.???
};
Which one of these is the file for? https://stripe.com/docs/api/files/create?lang=dotnet#create_file-purpose
For me the most logical option is
account_requirement
But.... i dont have that option in C#
public const string AdditionalVerification = "additional_verification";
public const string BusinessIcon = "business_icon";
public const string BusinessLogo = "business_logo";
public const string CustomerSignature = "customer_signature";
public const string DisputeEvidence = "dispute_evidence";
public const string DocumentProviderIdentityDocument = "document_provider_identity_document";
public const string FinanceReportRun = "finance_report_run";
public const string IdentityDocument = "identity_document";
public const string IncorporationArticle = "incorporation_article";
public const string IncorporationDocument = "incorporation_document";
public const string PaymentProviderTransfer = "payment_provider_transfer";
public const string PciDocument = "pci_document";
public const string ProductFeed = "product_feed";
public const string SigmaScheduledQuery = "sigma_scheduled_query";
public const string TaxDocumentUserUpload = "tax_document_user_upload";
Huh. Let me investigate that, hang on...
That is an oversight on our part that is being fixed with this PR right now! https://github.com/stripe/stripe-dotnet/pull/2438