PUT
/
api
/
external
/
v2
/
transactions
/
{transaction_id}
/
categories
Categorize a bank transaction
curl --request PUT \
  --url https://app.pennylane.com/api/external/v2/transactions/{transaction_id}/categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "id": 426,
    "weight": "0.6575"
  }
]'
[
  {
    "id": 421,
    "label": "HR - Salaries",
    "weight": "0.25",
    "category_group": {
      "id": 229
    },
    "analytical_code": "CODE123",
    "created_at": "2023-08-30T10:08:08.146343Z",
    "updated_at": "2023-08-30T10:08:08.146343Z"
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

transaction_id
integer
required

Body

application/json · object[]

The body is of type object[].

Response

200
application/json

The list of categories of the bank transaction

The response is of type object[].