- API Introduction
- Error Code
- Payment Intents
- Charges
- Payment Methods
- Refunds
- Webhooks
- Events
- Files
- Disputes
- Payouts
- Balance
- Products
- Prices
- Payment Links
- Checkout
- Customers
- Setup Intents
- Invoices
- Invoice Items
- Invoice Line Item
- Subscriptions
- Subscription Items
- Issuing
- Authorizations
- Cardholders
- Cards
- Transactions
- Coupons
- Promotion Code
- Accounts
Retrieve a file
GET
/v1/files/{id}
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic YWRtaW46MTIzNDU2
Path Params
id
string
required
Header Params
Accept
string
required
Default:
application/json
Content-Type
string
required
Default:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://apitest.wooshpay.com/v1/files/?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues'
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
created
integer
optional
expires_at
integer
optional
filename
string
optional
purpose
string
optional
size
integer
optional
title
string
optional
type
string
optional
url
string
optional
Example
{
"id": "file_xxxxxxxxxxxxxx",
"object": "file",
"created": 1668769862,
"expires_at": 1692097862,
"filename": "file_1M5STK2EY01RxH3nPvxSLxzH",
"purpose": "dispute_evidence",
"size": 9863,
"title": null,
"type": "png",
"url": "https://files.com"
}
Modified at 2023-01-06 13:41:50