Parameters
1 query
Query parameters
· 1branchSlugstringRequiredBranch slug.
Example
gymroom-plzenReturns credit transactions whose payer_branch_id resolves to the requested branch — i.e. credits the operator attributed to this branch as the internal payer. Ordered by inserted date desc. totalAmount is the signed sum of credit counts; totalAmountMoney is the signed sum in the organisation default currency.
1 query
branchSlugstringRequiredBranch slug.
gymroom-plzen1 status code documented
branchIdstringRequiredBranch internal id as string.
branchSlugstringRequiredbranchNamestringRequiredcurrencystringRequiredISO 4217 code of the organisation default currency.
totalAmountnumberRequiredSigned sum of credit counts.
totalAmountMoneynumberRequiredSigned sum of monetary values in the org currency.
itemsobject[]RequiredidstringRequiredCredit transaction external ID.
amountnumberRequiredamountMoneynumberRequiredcustomerobjectRequiredcontactIdstringRequiredCustomer external ID (CuRefNo).
firstNamestringOptionallastNamestringOptionalcompanyNamestringOptionalorderobjectOptionalorderNumberstringRequiredhashstringRequiredreasonobjectOptionalexternalIdstringRequiredcodestringRequirednamestringRequireddescriptionstringOptionalinsertedDateDate | string | string | numberRequireditemCountnumberRequired{
"branchId": "example_branchId",
"branchSlug": "example_branchSlug",
"branchName": "example_branchName",
"currency": "example_currency",
"totalAmount": 0,
"totalAmountMoney": 0,
"items": [
{
"id": "example_id",
"amount": 0,
"amountMoney": 0,
"customer": {
"contactId": "example_contactId",
"firstName": "example_firstName",
"lastName": "example_lastName",
"companyName": "example_companyName"
},
"order": {
"orderNumber": "example_orderNumber",
"hash": "example_hash"
},
"reason": {
"externalId": "example_externalId",
"code": "example_code",
"name": "example_name"
},
"description": "example_description"
}
],
"itemCount": 0
}GET /bff/contact-credit/credit-by-payer-branch
curl -X GET "https://api.bizkithub.com/bff/contact-credit/credit-by-payer-branch?branchSlug=gymroom-plzen" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.