Financial API
POST/api/v1/financial/bulk/credits
Product availabilityAlgaPSA

Run bulk credit operation

FinancialService.bulkCreditOperation() applies expire/extend_expiration/transfer to existing credits (1–100 ids). expire forfeits the remaining amount via a credit_expiration transaction and reduces the client balance; extend_expiration sets a new expiration_date; transfer moves the remaining amount to parameters.target_client_id. Returns per-id results { total_requested, successful, failed, results[] }.

RBAC · financial

Request body

Content type: application/json · schema FinancialBulkCreditOperationBody

operationstringRequired
Enum: expireextendtransfer
credit_idsarray of stringRequired
min items 1
itemsstring <uuid>
optionsobject

Response body

Success response 200 · schema FinancialInvoiceApiSuccess

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

200
Bulk operation processed.
400
Invalid bulk operation payload.
401
API key missing/invalid.
403
financial:update permission denied.
500
Unexpected bulk operation failure.