Customer Account Log
Defines a transaction on a customer account.
Please note that for credit operations, it is the responsibility of the integrator to create tax documents.
Customer account log schema
_cloudId integer
Cloud ID
📶 EQUALS,ENUM
_customerAccountId long?
Customer account ID
📶 EQUALS,ENUM
_employeeId long?
Employee ID
📶 EQUALS,ENUM
_moneyLogId long?
Money log ID
📶 EQUALS,ENUM
_orderId long?
Order ID
📶 EQUALS,ENUM
_previousCustomerAccountLogId long?
Previous customer account log ID
📶 EQUALS,ENUM
amount BigDecimal
The amout of the transaction
📶 NUMBER
balance BigDecimal
The account balance after the transaction
📶 NUMBER
created timestamp
Timestamp of created record
📶 EQUALS,ENUM,NUMBER
currency string
Three-letter currency according to ISO 4217
📶 STRING 🔽 BOTH
id long
Customer account log ID
📶 EQUALS,ENUM
note string
Custom note for the transaction
source string
Identification of the source where the transaction took place
type enum
Account log type, supported values: "top-up", "payment", "refund"
📶 STRING 🔽 BOTH
JSON response
{
"_customerAccountId": <long>,
"_employeeId": <long>,
"_moneyLogId": <long>,
"_orderId": <long>,
"_previousCustomerAccountLogId": <long>,
"amount": <BigDecimal>,
"balance": <BigDecimal>,
"created": <timestamp>,
"currency": <string>,
"id": <long>,
"note": <string>,
"source": <string>,
"type": <enum>
}Create customer account log
POST https://api.dotykacka.cz/v2/clouds/:cloudId/customer-account-logs
This EP requires an existing customer account as specified by _customerAccountId.
Path Parameters
cloudId*
integer
Headers
Authorization*
string
Bearer accessToken
Create customer account (if needed) and log
POST https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId/accounts/:accountType/logs
If the customer does not have the default account, create it first. Then create the account log.
Path Parameters
cloudId*
integer
customerId
long
accountType
string
valid value: default
Headers
Authorization*
string
Bearer accessToken
Get customer account logs for customer
GET https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId/accounts/:accountType/logs
Path Parameters
cloudId*
integer
customerId
long
accountType
string
valid value: default
Headers
Authorization*
string
Bearer accessToken
Query Parameters
sort
string
page
integer
filter
string
limit
integer
Get customer account log by ID for customer
GET https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId/accounts/:accountType/logs/:customerAccountLogId
Path Parameters
cloudId*
integer
customerId
long
accountType
string
valid value: default
customerAccountLogId
long
Headers
Authorization*
string
Bearer accessToken
Get customer account log by ID
GET https://api.dotykacka.cz/v2/clouds/:cloudId/customer-account-logs/:customerAccountLogId
Path Parameters
cloudId*
integer
customerAccountLogId
long
Headers
Authorization*
string
Bearer accessToken
Search customer account logs
GET https://api.dotykacka.cz/v2/clouds/:cloudId/customer-account-logs
Path Parameters
cloudId*
integer
Headers
Authorization*
string
Bearer accessToken
Query Parameters
sort
string
page
integer
filter
string
limit
integer
Last updated
Was this helpful?