---
title: "Add source transaction"
method: POST
path: "/agency/billing/transactions/source/{sourceId}"
tags: ["Billing"]
---

# Add source transaction

`POST /agency/billing/transactions/source/{sourceId}`

## Path parameters

- `sourceId` string, required

## Request body

- AddSourceTransactionDto
  - `amount` string, nullable
  - `description` string, nullable

## Response `201`

Created

- TransactionDto
  - `id` integer
  - `status` string, nullable
  - `description` string, nullable
  - `amount` integer
  - `currency` string, nullable
  - `createdAt` string, date-time
  - `receiptUrl` string, nullable
  - `usage` BilledUsageDto
    - `startTime` string, date-time
    - `endTime` string, date-time
    - `responses` integer
    - `libraryBytes` integer
    - `users` integer
    - `responseCost` integer
    - `libraryCost` integer
    - `userCost` integer

---

[API](https://skmtc.net/closebot/apis/closebot-api.md) · [All operations](https://skmtc.net/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/closebot/closebot-api/versions/da5f5fb58534/schema)
