BizKitHub
DocsAPI ReferenceContact Credit/bff/contact-credit/list
getContact CreditAdmin BFF

/bff/contact-credit/list

Returns the current credit balance (both in credits and monetary value) and a list of credit transactions for a contact. The creditMoney / amountMoney / balanceMoney values are in the organisation default currency (currency) and are purely bookkeeping — the order payment logic always uses 1 credit = 1 unit of money. Each item may include an optional reason selected from the per-organisation credit-reason catalog.

Contact CreditgetBffContact-creditList

Parameters

1 query

Query parameters

· 1
customerIdstringRequired

Contact external ID.

Exampleabc123def456ghij

Response schema

1 status code documented

200Success
creditnumberRequired

Current credit balance (number of credits).

Example3300
creditMoneynumberRequired

Current credit balance expressed in the organisation default currency.

Example3000
currencystringRequired

ISO 4217 code of the organisation default currency used for all *Money fields.

ExampleCZK
itemsobject[]Required

Credit transactions ordered from most recent to oldest.

Each array item:
idstringRequired

Transaction external ID.

ExampleHxanU4a1n4El61zx
amountnumberRequired

Credit amount (positive = added, negative = spent).

Examples3300-100
amountMoneynumberRequired

Monetary value of the transaction in the organisation default currency. Defaults to the same value as amount (1:1) when no explicit money value was stored.

Examples3000-1000
balancenumberRequired

Running credit balance after this transaction.

Example3300
balanceMoneynumberRequired

Running monetary balance after this transaction (in the organisation default currency).

Example3000
orderobjectOptional
orderNumberstringRequired
Example25000087
hashstringRequired
ExamplesSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
groupNamestringRequired
ExampleGymRoom Vinohrady
expirationobjectOptional
dateDate | string | string | numberRequired
One of 4:
Variant 1
Date
Example2026-12-31T00:00:00.000Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
status"pending" | "processed" | "expired"Required
processedDate | string | string | numberOptional
One of 4:
Variant 1
Date
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
reasonobjectOptional
externalIdstringRequired

Credit reason external ID.

Examplersn1234567890abc
codestringRequired

Credit reason code.

Examplecleaning-complaint
namestringRequired

Credit reason display name.

ExampleReklamace úklidu
payerBranchobjectOptional

Branch that internally bears the cost of this credit movement. Omitted when the organisation absorbs it.

slugstringRequired

Slug of the branch that internally bears this credit cost.

namestringRequired

Display name of the payer branch.

linkedWriteoffobjectOptional

Branch write-off that was auto-spawned for this credit (1:1 via shop__contact_credit_expense_link). Omitted when no branch was picked, or when the spawn failed and was logged.

externalIdstringRequired

External id of the linked shop__expense write-off row.

status"draft" | "pending" | "approved" | "rejected"Required
isDeletedbooleanRequired
descriptionstringOptional
ExampleOrder 25000087
insertedDateDate | string | string | numberRequired
One of 4:
Variant 1
Date
Example2026-04-21T10:00:00.000Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
itemCountnumberRequired

Total number of credit transactions.

Example42

Response example

application/json
{
  "credit": 3300,
  "creditMoney": 3000,
  "currency": "CZK",
  "items": [
    {
      "id": "HxanU4a1n4El61zx",
      "amount": 3300,
      "amountMoney": 3000,
      "balance": 3300,
      "balanceMoney": 3000,
      "order": {
        "orderNumber": "25000087",
        "hash": "sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S",
        "groupName": "GymRoom Vinohrady"
      },
      "expiration": {
        "date": "2026-12-31T00:00:00.000Z"
      },
      "reason": {
        "externalId": "rsn1234567890abc",
        "code": "cleaning-complaint",
        "name": "Reklamace úklidu"
      },
      "payerBranch": {
        "slug": "example_slug",
        "name": "example_name"
      },
      "linkedWriteoff": {
        "externalId": "example_externalId",
        "isDeleted": false
      },
      "description": "Order 25000087",
      "insertedDate": "2026-04-21T10:00:00.000Z"
    }
  ],
  "itemCount": 42
}

Request example

GET /bff/contact-credit/list

get
curl -X GET "https://api.bizkithub.com/bff/contact-credit/list?customerId=abc123def456ghij" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key