sales

DELETE /companies/{companySlug}/sales/{saleId}/payments/{paymentId}

Changed on

Undoes 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 deleted, belongs to a written-off sale, or is related to debt collection) — exactly the cases where the undo action is unavailable in Fiken.

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/sales/{saleId}/payments/{paymentId}
  • Auth
    OAuth 2
    Authorization code: https://fiken.no/oauth/authorize
    Token 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