Upload Admin Files
Upload Admin Files.
Request
Request header:
POST https://api.ipaymy.com/v2/admin/files
Host: api.ipaymy.com
Accept: form-data
Request body:
{
"filename": "",
"purpose": "",
"file": "",
"account_id": ""
}
filename:
- Type: string
- Validate: required
purpose:
- Type: string
- Validate: required
file:
- Type: file
- Validate: required
account_id:
- Type: string
- Validate: required
Response
Response body:
{
"data": "",
"error": 0
}
Response codes:
- 200: Good stuff, and the response body should be easy to parse.
- 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.