Media Upload
Upload files to the Amili system. For creditors, this endpoint is used to attach original invoices to cases.
Media Upload endpoints
POST /media--upload/{reference_id}- Upload a file
See Case for creating cases.
Example Request
Below is an example of uploading an original invoice to an existing case.
URL: POST /media--upload/6867da7788b9226bb78d716c
Headers:
x-api-key: {your_access_token}
Content-Type: multipart/form-dataForm Data:
file: [binary file data]
domain: "cases"
dotted_path: "original_invoice"Response Code: 201 Created
Response Body:
json
{
"url": "https://storage.googleapis.com/stage-ada-vcom-api-files/stage/cases/6867da7788b9226bb78d716c-3109930dcb954308b2e028392a6f3c62?Expires=1751640521&GoogleAccessId=stage-ada-vcom-pod-svc%40stage-ada-vcom.iam.gserviceaccount.com&Signature=RI%2FVtRaYgkNpFnzQYRihVz90PrvHjtUuKRXB13AIt0%2FXkoBqJ6ekhenljhf%2BQaCK2hn09IkCxxN%2Bd9nVuV1PwlbjcA8DBkzNlqS2tmk%2FrYif%2BAbOZG9rgYAyBpnD6tXs0i11F832E7R3MsprOMyPFvs8BMvev9iaM7qzLZqNw%2FEAvt076ImTVECp6wyoc%2Fsw8ilpCAvqCGTJcIY%2FqoHLHpI3iU7dED5eSTShXGv05OmcEHM98IdVfmOBoKYWkPg9TewkX9Gse0DG2PXFa%2F9RWFHt1tMiNZYix1dcX9wHwFWvBVuGDp1ZBBULSldSD749vLUjTlPhhtsERsVxVHwfQg%3D%3D"
}Parameters
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
reference_id | string | Yes | The ID of the case to attach the file to |
Form Data Parameters
| Property | Type | Required | Description |
|---|---|---|---|
file | binary | Yes | File to upload |
domain | string | Yes | Resource type (e.g. "cases")* |
dotted_path | string | Yes | File category (e.g. "original_invoice")* |
Response Properties
| Property | Type | Required | Description |
|---|---|---|---|
_status | string | Yes | Request status (e.g. "OK")* |
url | string | Yes | Temporary URL to access the uploaded file |
*) For complete list of values and details, please see Media Upload
