/bff/contact-credit/create
Adds a credit transaction to a contact. Optionally tag it with a per-organisation credit reason via reasonExternalId, and optionally attribute the internal cost to a branch via payerBranchSlug so the credit shows up in that branch's payer-credit ledger in addition to the customer history.
Parameters
8 body
customerIdstringRequiredContact external ID.
amountnumberRequiredCredit amount to add (positive or negative).
amountMoneynumberValue in default currency. If omitted, defaults to same as amount (1:1).
descriptionstringOptional free-form note for the transaction.
useExpirationbooleanRequiredWhether the credit has an expiration date.
expirationDatestringExpiration date for the credit (ISO format).
reasonExternalIdstringExternal ID of a configured credit reason (16 chars). Optional label tagging the transaction.
payerBranchSlugstringSlug of the branch that internally bears the cost of this credit. Omit / empty = the organisation absorbs it (default).
Request
POST /bff/contact-credit/create
curl -X POST "https://api.bizkithub.com/bff/contact-credit/create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"customerId": "example_customerId",
"amount": 100,
"amountMoney": 90,
"description": "example_description",
"useExpiration": false,
"expirationDate": "2026-12-31",
"reasonExternalId": "rsn1234567890abc",
"payerBranchSlug": "gymroom-plzen"
}'Response
JSON payload
{
"success": true
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.