---
title: "Create a client credit account transaction"
method: POST
path: "/api/business/{businessId}/creditaccounttransaction"
tags: ["Client Credit Account Transaction"]
---

# Create a client credit account transaction

`POST /api/business/{businessId}/creditaccounttransaction`

## Request

- Base URL: `http://api-gateway-eu.phorest.com/third-party-api-server`
- URL: `http://api-gateway-eu.phorest.com/third-party-api-server/api/business/{businessId}/creditaccounttransaction`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/phorest/apis/third-party-api/docs/api/business/:businessId/creditaccounttransaction/post.ts> (a function with typed inputs; its response is checked against the schema)

Create and return a client credit account transaction for the specified business id

## Path parameters

- `businessId` string, required

## Request body

- CreditAccountTransactionCreateRequest
  - `clientId` string, required: The unique identifier of the client for which this credit account transaction applies.
  - `branchId` string, required
  - `description` string, required
  - `transactionAmount` number, required: The transaction amount is the value that will change the clients outstanding balance. Adding a positive value will add to the clients outstanding balance while a negative amount will take away from it
  - `staffId` string

## Response `201`

Client credit account transaction created successfully

- CreditAccountTransactionResponse
  - `clientId` string, required: The unique identifier of the client for which this credit account transaction applies.
  - `branchId` string, required
  - `description` string, required
  - `transactionAmount` number, required: The transaction amount is the value that will change the clients outstanding balance. Adding a positive value will add to the clients outstanding balance while a negative amount will take away from it
  - `staffId` string
  - `outstandingBalance` number: Clients current balance - read only

## Other responses

- `400`: Client credit account transaction data is invalid, unable to create client credit account transaction
- `429`: Request rate limit exceeded. Current limit set to 100 rps.
- `500`: An error occurred while performing the operation

---

[API](https://skmtc.dev/phorest/apis/third-party-api.md) - [All operations](https://skmtc.dev/phorest/apis/third-party-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phorest/apis/third-party-api/revisions/beea6ef29634?raw)
