Start a conversation

Payment system

1) payment-system/get-list

The method returns the list of payment systems.

The request without parameters will return all payment systems registered in the system.

Parameter values can be 0 or 1.

Parameter Type Mandatory
field
Default value Note
isActive boolean no 0  
isEnrollment boolean no 0 using for fillup
isPayout boolean no 0 using for payout


2) payment-system/payout/create

The method creates a request for payout.

Records are created in the database in the document table and Payment Bills. After that, the task is queued for the Document Launcher. Document Launcher  calls the appropriate function from CPEngine to withdraw funds from the specified wallet.

Method - POST

Параметры запроса

walletTypeId
Integer Yes   Wallet type ID
see table kernel_wallet_type
paymentPersonalDataId Integer No   PaymentPersonalDataId (table kernel_payment_personal_data). If the corresponding record does not exist and the createPaymentPersonalDataIfNeeded flag, as well as the accountId and paymentSystemId are passed, then such an record is created automatically based on the values taken from the user profile.
Otherwise, error 1100 "Personal Payment Data does not exist" is returned.
amount Double Yes   The amount to be withdrawn from the wallet. The amount must be negative
createPaymentPersonalDataIfNeeded Boolean No false Create a record in the kernel_payment_personal_data table if empty. In this case, the accountId and paymentSystemId parameters are required.
paymentSystemId Integer No   Payment system ID (see table  kernel_payment_system)
accountId Integer No   Account ID





Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Daria Tsirelnikova

  2. Posted
  3. Updated

Comments