Skip to main content
POST
/
agency
/
billing
/
transactions
/
source
/
{sourceId}
Add source transaction
curl --request POST \
  --url https://api.closebot.com/agency/billing/transactions/source/{sourceId} \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "amount": "<string>",
  "description": "<string>"
}
'
{
  "id": 123,
  "status": "<string>",
  "description": "<string>",
  "amount": 123,
  "currency": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "receiptUrl": "<string>",
  "usage": {
    "startTime": "2023-11-07T05:31:56Z",
    "endTime": "2023-11-07T05:31:56Z",
    "responses": 123,
    "libraryBytes": 123,
    "users": 123,
    "responseCost": 123,
    "libraryCost": 123,
    "userCost": 123
  }
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

sourceId
string
required

The source ID.

Body

amount
string | null
description
string | null

Response

Created

id
integer<int32>
status
string | null
description
string | null
amount
integer<int64>
currency
string | null
createdAt
string<date-time>
receiptUrl
string | null
usage
object