Create a file
POST https://files.stripe.com/v1/files
To upload a file to Stripe, you’ll need to send a request of type multipart/form-data
. The request should contain the file you would like to upload, as well as the parameters for creating a file.
All of Stripe’s officially supported Client libraries should have support for sending multipart/form-data
.
Request Body
[{"name"=>"file", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"purpose", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand", "value"=>"[\"<string>\",\"<string>\"]", "datatype"=>"string"}, {"name"=>"file_link_data", "value"=>"{\"create\":\"<boolean>\",\"expires_at\":\"<unix-time>\",\"metadata\":\"<object>\"}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |