purchases
DELETE /companies/{companySlug}/purchases/{purchaseId}/payments/{paymentId}
Changed onUndoes a payment, mirroring the "Angre" (undo) action in Fiken. If the payment has not yet been closed (lukket postering) it is deleted; if it has been closed a reverse transaction is created so the audit trail is kept. Fails if the payment cannot be undone (for example if it is already annulled or related to debt collection) — exactly the cases where the undo action is unavailable in Fiken.
Request
- Base URLhttps://api.fiken.no/api/v2
- URLhttps://api.fiken.no/api/v2/companies/{companySlug}/purchases/{purchaseId}/payments/{paymentId}
- AuthOAuth 2Authorization code: https://fiken.no/oauth/authorizeToken URL: https://fiken.no/oauth/token
Query parameters
descriptionstring
Optional description used when the payment is reversed (annulled).
Response
Payment successfully deleted or reversed.
Changes
- info
endpoint added
- info