Media Upload
Ladda upp filer till Amili-systemet. För Creditors används denna endpoint för att bifoga originalfakturor till Cases.
Media Upload endpoints
POST /media--upload/{reference_id}- Ladda upp en fil
Se Case för att skapa cases.
Exempel Request
Nedan är ett exempel på att ladda upp en originalfaktura till ett befintligt 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"
}Parametrar
Path Parameters
| Namn | Typ | Obligatorisk | Beskrivning |
|---|---|---|---|
reference_id | string | Ja | ID för Case:et att bifoga filen till |
Form Data Parameters
| Property | Typ | Obligatorisk | Beskrivning |
|---|---|---|---|
file | binary | Ja | Fil att ladda upp |
domain | string | Ja | Resurstyp (t.ex. "cases")* |
dotted_path | string | Ja | Filkategori (t.ex. "original_invoice")* |
Response Properties
| Property | Typ | Obligatorisk | Beskrivning |
|---|---|---|---|
_status | string | Ja | Request-status (t.ex. "OK")* |
url | string | Ja | Temporär URL för att komma åt den uppladdade filen |
*) För komplett lista över värden och detaljer, se Media Upload
