Creditor Cancellation
Avboka Cases eller Invoices i Amili-systemet. Används av Creditors för att stoppa vidare bearbetning av ett Case eller en Invoice.
Creditor Cancellation endpoints
GET /creditor--cancellations- Lista alla cancellations (pagerad)GET /creditor--cancellations/{id}- Hämta en specifik cancellationPOST /creditor--cancellations- Skapa en cancellation request
Se Case för att få åtkomst till Cases som kan avbokas.
Exempel Request
Nedan är ett exempel på att avboka ett befintligt Case.
URL: POST /creditor--cancellations
Headers:
x-api-key: {your_access_token}
Content-Type: application/jsonRequest Body:
json
{
"creditor": "674dbeb208847b9501cc9138",
"case": "68678eda88b9226bb78d7169",
"origin": "creditor_system"
}Response Code: 201 Created
Response Body:
json
{
"_updated": "Fri, 04 Jul 2025 14:39:21 GMT",
"_created": "Fri, 04 Jul 2025 14:39:21 GMT",
"_etag": "3fffb8089c7de1cafe5001182786108c4005c22a",
"_id": "6867e7991a9d6cdeb9f73c54",
"_status": "OK",
"_cancellation_status": "completed"
}Parametrar
Request Body Properties
| Property | Typ | Obligatorisk | Beskrivning |
|---|---|---|---|
creditor | string | Ja | Creditor ID |
case | string | Ja | Case ID att avboka |
origin | string | Ja | Ursprung för request (måste vara "creditor_system")* |
Response Properties
| Property | Typ | Obligatorisk | Beskrivning |
|---|---|---|---|
_id | string | Ja | Unik identifierare för cancellation |
_created | string | Ja | Skapandetidsstämpel |
_updated | string | Ja | Senaste uppdateringstidsstämpel |
_etag | string | Ja | Entity tag för samtidighetskontroll |
_status | string | Ja | Request-status (t.ex. "OK")* |
_cancellation_status | string | Ja | Cancellation-processstatus (t.ex. "completed")* |
*) För komplett lista över värden och detaljer, se Creditor Cancellation
