Block Funds
An escrow function to prevent clients from withdrawing or transferring a specified amount. The remaining amount users can still make a withdrawal or transfer.
Create
/api/block/create
POST
https://sandbox.walletengine.io
Headers
Content-Type*
string
application/json
Authorization*
string
Bearer {{token}}
Request Body
app_id*
string
This is the unique App ID assigned to you by Wallet Engine.
amount*
number
block amount
notes
text
Example Request
Errors This table lists the expected errors that this method could return. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing.
Error
Description
invalid_arguments
The method was called with invalid arguments.
invalid_arg_name
The method was passed an argument whose name falls outside the bounds of accepted or expected values.
invalid_block_amount
The block amount exceeds the allowed values.
Cancel
/api/block/cancel
POST
https://sandbox.walletengine.io
Headers
Content-Type*
string
application/json
Authorization*
string
Bearer {{token}}
Request Body
app_id*
string
This is the unique App ID assigned to you by Wallet Engine.
request_id*
string
The previoustly blocked fund request id from /api/block/create
.
Example Request
Errors This table lists the expected errors that this method could return. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing.
Error
Description
invalid_arguments
The method was called with invalid arguments.
invalid_arg_name
The method was passed an argument whose name falls outside the bounds of accepted or expected values.
invalid_request_id
Block fund id does not found.
invalid_block_state
Invalid block fund state.
Action
/api/block/action
POST
https://sandbox.walletengine.io
Headers
Content-Type*
string
application/json
Authorization*
string
Bearer {{token}}
Request Body
app_id*
string
This is the unique App_ID provided by Wallet Engine for your App.
request_id*
string
The previoustly blocked fund request id from /api/block/create
.
amount
number
*required when action=transfer
target_id
string
*required when action=transfer
action*
string
seize or transfer
notes
string
Example Request
Errors This table lists the expected errors that this method could return. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing.
Error
Description
invalid_arguments
The method was called with invalid arguments.
invalid_arg_name
The method was passed an argument whose name falls outside the bounds of accepted or expected values.
invalid_request_id
Block fund id does not found.
invalid_block_state
Invalid block fund state.
invalid_target_id
The recipient's deposit account was not found.
invalid_transfer_amount
Invalid transfer amount.
invalid_remainder_allowance
The transfer amount exceeds the allowed values.
Query
/api/block/query
POST
https://sandbox.walletengine.io
Headers
Content-Type*
string
application/json
Authorization*
string
Bearer {{token}}
Request Body
app_id*
string
This is the unique App_ID provided by Wallet Engine for your App.
date_from
date("yyyy-mm-dd")
offset
number
Paging by limit offset.
limit
number
Paging by limit offset. Default 10 max 99 records. Return the first 10 records by default.
state
string
Block Funds State. PENDING: block/create. REMOVED: block/cancel. SEIZED: block/action.
date_to
date("yyyy-mm-dd")
Example Request
Errors This table lists the expected errors that this method could return. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing.
Error
Description
invalid_arguments
The method was called with invalid arguments.
invalid_arg_name
The method was passed an argument whose name falls outside the bounds of accepted or expected values.
invalid_client_id
The client account was not found.
Last updated
Was this helpful?