This method allows to create a file upload request by generating a unique file_id to reference the file.
This file can be used for various purposes such as evidence for dispute representment, compliance checks, or other necessary documentation uploads.
Unique public key provided upon registration and must be shared for identification purposes.
Request signature that allows verification of merchant authenticity on the payment gateway server.
Name of the file, including its extension.
Should be provided one of extensions jpg, jpeg, png, gif, txt, pdf, doc, docx, rtf, xls, xlsx, csv.
Mime type of the file, must match the extension.
Should be provided one of the following mime types image/jpeg for .jpg/.jpeg, image/png for .png, image/gif for .gif, etc.
curl -i -X POST \
https://api.solidgate.com/api/v1/file/get-upload-url \
-H 'Content-Type: application/json' \
-H 'merchant: YOUR_API_KEY_HERE' \
-H 'signature: YOUR_API_KEY_HERE' \
-d '{
"file_name": "document.pdf",
"file_type": "application/pdf",
"file_size": 1024000
}'- Success
- Authentication failed
- Error
- Success
- Authentication failed
- Error 2.01 Validation error
{ "file_id": "file_01AAABBBCCC123456", "upload_url": "https://storage.example.com/file/x?signature=123" }