---
updatedAt: 2026-09-03T12:09:14.000Z
agentTools:
  projectIndex: https://partner.getpliant.com/llms.txt
---

# Update Accounting Fields

Sets the subcategory (G/L account), VAT rate and/or project (cost unit) on a single accounting transaction (split line). A field left out is not changed. For a transaction that is not split, the accounting transaction id equals the transaction id.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "name": "API Support",
      "email": "support@getpliant.com",
      "url": "https://www.getpliant.com"
    },
    "title": "Pliant Partner API",
    "description": "Pliant Partner API",
    "version": "2.1.0",
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/license/MIT"
    }
  },
  "servers": [
    {
      "url": "https://partner-api.getpliant.com/api",
      "description": "Pliant Production Server"
    },
    {
      "url": "https://sandbox.partner-api.getpliant.com/api",
      "description": "Pliant Sandbox Server"
    },
    {
      "url": "https://pci-api.getpliant.com",
      "description": "PCI Vault Production Server"
    },
    {
      "url": "https://pci-sandbox.partner-api.getpliant.com",
      "description": "PCI Vault Sandbox Server"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "java",
      "kotlin"
    ],
    "headers": [
      {
        "key": "Pliant-API-Version",
        "value": "2.1.0"
      }
    ]
  },
  "tags": [
    {
      "name": "Accounting Transactions",
      "description": "This tag is for operations related to accounting transactions"
    }
  ],
  "paths": {
    "/accounting/transactions/{accountingTransactionId}/accounting-fields": {
      "patch": {
        "summary": "Update Accounting Fields",
        "description": "Sets the subcategory (G/L account), VAT rate and/or project (cost unit) on a single accounting transaction (split line). A field left out is not changed. For a transaction that is not split, the accounting transaction id equals the transaction id.",
        "tags": [
          "Accounting Transactions"
        ],
        "operationId": "update-accounting-fields-on-accounting-transaction",
        "parameters": [
          {
            "name": "accountingTransactionId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the accounting transaction.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "The accounting fields to set on an accounting transaction. A field left out is not changed.",
                "properties": {
                  "subcategoryId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The subcategory (G/L account) to set. Omit to leave it unchanged."
                  },
                  "vatRateId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The VAT rate to set. Omit to leave it unchanged."
                  },
                  "projectId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The project (cost unit) to set. Omit to leave it unchanged."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "The accounting fields were updated."
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This API uses oAuth2 with client credentials flow to [obtain the Bearer Token](/docs/authenticated-api-usage).",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "The error code"
          },
          "exceptionId": {
            "type": "string",
            "format": "uuid",
            "description": "The id of the exception that was thrown"
          },
          "message": {
            "type": "string",
            "description": "The cause of the error or further explanations on the error"
          }
        }
      }
    },
    "responses": {
      "400": {
        "description": "Bad Request. The API consumer sent a malformed request which could not be processed.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized. The API consumer is not authorized to access the requested resource.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "403": {
        "description": "Forbidden. The API consumer is not allowed to access the requested resource.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "404": {
        "description": "Not Found. The requested resource could not be found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "422": {
        "description": "Unprocessable Content. The request could not be completed due to contents of the request. The syntax of the request content was correct.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "500": {
        "description": "Internal Server Error. The request was not completed due to an internal error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```