⚙️
1Konto v1.0 API Docs
  • Welcome!
  • Reference
    • API Reference
    • Service
      • Service Information
      • Service Time
    • Authentication
      • Login and Authentication
    • Market Data
      • Get Top of Book
      • Get Order Book
    • Accounting
      • Get Account
      • Get Account Credit
      • Get Transactions
      • Transfers Instructions
        • Get Deposit Instructions
        • Get Withdraw Instructions
      • Withdraw Requests
        • Request Withdraw - Fiat
        • Request Withdraw - Blockchain
        • Querying for Withdraw Requests
    • Orders
      • Available Asset Pairs
      • Request Indicative Price
      • Market Order
      • Limit Order
      • RFQ - Request for Quote
        • Request Quote
        • Accept Quote
      • Querying for Orders
      • Get Order
Powered by GitBook
On this page
  • Querying for Withdraw Requests
  • Example
  1. Reference
  2. Accounting
  3. Withdraw Requests

Querying for Withdraw Requests

requires auth

Querying for Withdraw Requests

Endpoint to query all your withdraw requests from your 1KPrime account to your external whitelisted wallets and Bank accounts. It also returns the status of the request, if pending or completed.

GET /api/v1/accounting/account/{accountId}/request/withdraw

Path Parameters:

Path
Type
Description

accountId*

string

your account ID

Query Parameters:

Body
Type
Description

max

integer <int32>

Maximum amount of items returned. Default: 100

status

string

Status of the request.

Enum: "invalid", "pending", "completed", "canceled", "rejected"

withdrawRequestId

string

The withdraw Id for your request generated by the system when you submitted a withdraw request.

network

string

The blockchain network for the receipient wallet address.

type

string

Type of asset to be withdrawn.

Enum: "unknown", "fedwire", "blockchain", "rtp", etc.

amount

string

The amount of the asset in the withdraw request. "1 BTC", "100 USD", etc.

initiatedByUserId

string

Id of user who initiated the withdraw request

initiatedByUserEmail

string

email of user who initiated the withdraw request

address

string

The wallet address, in case of blockchain asset, where withdraw will be transferred to

startAtOrdering

integer <int64>

Number of record you wish to start the query at.

submittedAtMin

string <date-time>

The start date and time of the withdraw requests.

submittedAtMax

string <date-time>

The end date and time of the withdraw requests.

asc

boolean Default: true

Example

GET /api/v1/accounting/account/myAccountID/request/withdraw?max=100&asc=false
// Successful Response body 
[
    {
        "approvedByUserId": "dN2Pf_0ufL4lUw",
        "approvedByUserEmail": "user@email.com",
        "completedByUserId": "cuqbpZikATXzATm7w",
        "withdrawRequestId": "a5lpZ-1uEf32YZSA",
        "type": "Blockchain",
        "amount": "1 BTC",
        "initiatedByUserId": "dN2Pf_0JfL4lUw",
        "initiatedByUserEmail": "user@email.com",
        "network": "bitcoin",
        "address": "1Jor6sdY31p93mW",
        "submittedAt": "2024-04-16T17:36:43.6632960Z",
        "status": "Completed",
        "completedAt": "2024-04-16T17:36:44.0679650Z",
        "ordering": 32976,
        "instructions": [
            "global"
        ],
        "accountId": "HLy4GHx8Wentg"
    },
    {
        "withdrawRequestId": "fsGqd2U3hpobGPSg",
        "type": "FedWire",
        "amount": "100 USD",
        "initiatedByUserId": "dN2Pf_0JRufL4lUw",
        "initiatedByUserEmail": "user@email.com",
        "cancelledByUserId": "dN2Pf_0J41SufL4lUw",
        "cancelledByUserEmail": "user@email.com",
        "routingNumber": "692xxx30",
        "accountNumber": "35xxxx03",
        "submittedAt": "2024-04-16T17:36:44.7563880Z",
        "status": "Cancelled",
        "ordering": 32983,
        "instructions": [
            "optimizing"
        ],
        "accountId": "nbjWn5YTJKq6tQ"
    }
]

PreviousRequest Withdraw - BlockchainNextOrders

Last updated 1 year ago

Page cover image