transactions

PATCH /companies/{companySlug}/transactions/{transactionId}/delete

Changed on

Sets the deleted flag for a transaction. The transaction is not deleted, but a reverse transaction is created and the "deleted" property is set to true.

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/transactions/{transactionId}/delete
  • Auth
    OAuth 2
    Authorization code: https://fiken.no/oauth/authorize
    Token URL: https://fiken.no/oauth/token

Response

OK

transactionIdinteger
createdDatestring date

Date that product was created in Fiken, format yyyy-mm-dd

lastModifiedDatestring date

Date that product was last modified in Fiken, format yyyy-mm-dd.

descriptionstring
typestring

Type of the transaction. Same values as transactionType on journalEntry.

deletedboolean

If the transaction has been deleted, this field will be true. A deletion creates a reverse transaction to null out the original.

Example response

{
  "transactionId": 734083065,
  "createdDate": "2018-04-03",
  "lastModifiedDate": "2018-04-03",
  "type": "Fri",
  "entries": [
    {
      "createdDate": "2018-04-03",
      "lastModifiedDate": "2018-04-03",
      "transactionType": "Inngående balanse",
      "journalEntryNumber": 18,
      "description": "Purchase, Schweigaards Gate 34 AS (invoice nr 26083)",
      "date": "2018-04-03",
      "lines": [
        {
          "amount": 310000,
          "account": "2400:20079",
          "vatCode": "1",
          "lastModifiedDate": "2018-04-03"
        }
      ],
      "attachments": [
        {
          "uuid": "745b2f15-1234-4408-8bf2-b1d2d7610cb2",
          "filename": "invoice_24760.pdf",
          "identifier": "24760",
          "type": "invoice"
        }
      ]
    }
  ]
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status