https://b-api.lbkrs.com/atm/whale/package/ruleAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
The Broker ACCESS_TOKEN must be granted the permission above, or the call will be rejected.
Request body application/json
Rule ID
Allocation type. Pass a key from the atm_whale_transfer_type data dictionary (GET /v1/datasets/refs/atm_whale_transfer_type).
In the Admin console, 1 (bank-to-bank transfer) fixes both from_type and to_type to 1, 2 (settlement account top-up) fixes from_type to 1, and 3 (settlement account withdrawal) fixes to_type to 1.
Source channel type. The Admin console submits 1 for a bank and 2 for a settlement channel.
Allowed values: 1 Bank, 2 Settlement channel
1- Bank
2- Settlement channel
Main account (source; required when the source channel is not a bank)
Main account type (source)
Bank account (source; required when the source channel is a bank or the currency is not crypto)
Destination channel type. The Admin console submits 1 for a bank and 2 for a settlement channel.
Allowed values: 1 Bank, 2 Settlement channel
1- Bank
2- Settlement channel
Main account (destination; required when the destination channel is not a bank)
Main account type (destination)
Bank account (destination; required when the destination channel is a bank or the currency is not crypto)
Allocation channel (required when the source channel is a bank)
Allocation strategy. Pass a key from the atm_whale_transfer_strategy data dictionary (GET /v1/datasets/refs/atm_whale_transfer_strategy).
Frequency. Pass a key from the atm_whale_package_type data dictionary (GET /v1/datasets/refs/atm_whale_package_type).
weekusesservice_time.week_rule; other time-based frequencies useservice_time.time_rule.- For
balance,coin_withdraw_quantity_submit,coin_withdraw_fee_submit,coin_withdraw_quantity_fail,coin_withdraw_fee_fail, andcoin_deposit_success, the system calculates the amount: passsystemfor bothcurrencyandamount, and the Admin console does not sendservice_time.
Currency code from the global_currency data dictionary (global_coin for crypto). Pass system when the amount is system-calculated (see package_type).
Currency category. Sent only when transfer_type is 4 and the source channel is settlement_hashkey_hk. Pass a key from the atm_ref_currency_type data dictionary; crypto switches currency to coin codes.
Transfer amount. Pass system when the amount is system-calculated (see package_type).
Execution time, as a JSON string. Times are HH:mm values on the half hour (00:00 to 23:30).
- For time-based frequencies other than
week:{"time_rule":["09:00","15:30"]}. - For
week:{"week_rule":[{"week":1,"time":["09:00"]}]}, whereweekis1(Monday) to7(Sunday).
Transfer postscript
Rule status. Pass a key from the atm_status data dictionary (GET /v1/datasets/refs/atm_status); the Admin console sends 1 or 2.
12
Rule priority, an integer from 0 to 999. Required by the Admin console form.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields