Wallex Pay
Sign InSign Up
  • Welcome
  • Product Introduction
  • Get Started
  • Integration Guide
  • Account Creation
    • Individual/Freelance Account
    • Business Account
  • Verification Process
    • Need Assistance?
      • Starting Point
      • Common Rejection Causes
      • Proof of Address (POA)
      • Pending Verification
      • Session Expired?
  • Supported Coins
  • Merchant Tools
    • Payment Buttons
    • Custom APIs
      • API Basics
      • Informational Commands
      • Receiving Payments
      • Withdrawals/Transfers
    • Instant Payment Notification (IPN)
    • Invoice Builder
    • Point of Sale (POS)
    • Pre-Built Plugins
  • Mass Payouts
  • API Keys Management
  • Integration Testing & Testnet
  • Profile Management
    • Manage Personal Info
    • Wallet Statement
  • Access Issues
    • Why my Account is Blocked/Suspended?
  • Security
    • Account Security
    • Two-Factor Authentication (2FA)
    • Hacked Account
  • Fees & Limits
  • Legal & Regulatory
    • Restricted Jurisdictions
    • User Agreement
    • Privacy Policy
  • Contact our Experts
Powered by GitBook
On this page
  1. Merchant Tools
  2. Custom APIs

Withdrawals/Transfers

PreviousReceiving PaymentsNextInstant Payment Notification (IPN)

Last updated 9 months ago

Create Transfer


API POST Fields

In addition to the described in the API Basics >

Create Transfer

Field Name
Description
Required?

cmd

create_transfer

Yes

amount

The amount of the transfer in the currency below.

Yes

currency

The cryptocurrency to withdraw. (BTC)

Yes

merchant

The merchant ID to send the funds to, either this OR pbntag must be specified. Remember: this is a merchant ID and not a username.

See Desc

toaddress

The toaddress to send the funds to, either this OR merchant must be specified.

See Desc

auto_confirm

If set to 1, withdrawal will complete without email confirmation.

No

Method: POST URL:

API Response

A successful call to get the 'create_transfer' command will give you a result similar to this (JSON):

{
  "error": "ok",
  "result": {
    "id": "string",
    "status": 0
  }
}

Note: Transfers are performed as internal coin transfers/accounting entries when possible. For coins not supporting that ability a withdrawal is created instead.

Convert Coins


API POST Fields

Convert Coins

Field Name
Description
Required?

cmd

convert

Yes

to

The cryptocurrency to convert to. (USD, NGN, etc.)

Yes

API Response

A successful call to the 'convert' command will give you a result similar to this (JSON):

{
  "error": "ok",
  "result": "61588"
}

Get Withdrawal History


API POST Fields

Field Name
Description
Required?

cmd

get_withdrawal_history

Yes

limit

The maximum number of withdrawals to return from 1-100. (default: 25)

No

start

What withdrawals # to start from (for iteration/pagination.) (default: 0, starts with your newest withdrawals.)

No

API Response

A successful call to get the 'get_withdrawal_history' command will give you a result similar to this (JSON):

{
  "error": "ok",
  "result": [
    {
      "id": "CW...",
      "time_created": 1391924372,
      "status": 2,
      "status_text": "Complete",
      "coin": "BTC",
      "amount": 40000000,
      "amountf": "0.40000000",
      "send_address": "1BitcoinAddress",
      "send_txid": "hex_txid"
    }
  ]
}

The result will have the following fields:

  • id = The withdrawal ID.

  • time_created = The time the withdrawal request was submitted.

  • status = The status of the withdrawal (-1 = Cancelled, 0 = Waiting for email confirmation, 1 = Pending, 2 = Complete).

  • status_text = The status of the withdrawal in text format.

  • coin = The ticker symbol of the coin for the withdrawal.

  • amount = The amount of the withdrawal (in Satoshis).

  • amountf = The amount of the withdrawal (as a floating point number).

  • send_address = The address the withdrawal was sent to. (only in response if status == 2)

  • send_txid = The coin TX ID of the send. (only in response if status == 2)

Get Withdrawal Info


API POST Fields

Get Withdrawal Information

Field Name
Description
Required?

cmd

get_withdrawal_info

Yes

id

The withdrawal ID to query.

Yes

API Response

A successful call to get the get_withdrawal_info' command will give you a result similar to this (JSON):

{
  "error": "ok",
  "result": {
    "time_created": 1391924372,
    "status": 2,
    "status_text": "Complete",
    "coin": "BTC",
    "amount": 40000000,
    "amountf": "0.40000000",
    "send_address": "1BitcoinAddress",
    "send_txid": "hex_txid"
  }
}

The result will have the following fields:

  • time_created = The time the withdrawal request was submitted.

  • status = The status of the withdrawal (-1 = Cancelled, 0 = Waiting for email confirmation, 1 = Pending, 2 = Complete).

  • status_text = The status of the withdrawal in text format.

  • coin = The ticker symbol of the coin for the withdrawal.

  • amount = The amount of the withdrawal (in Satoshis).

  • amountf = The amount of the withdrawal (as a floating point number).

  • send_address = The address the withdrawal was sent to. (only in response if status == 2)

  • send_txid = The coin TX ID of the send. (only in response if status == 2)

In addition to the described in the API Basics >

Method: POST URL:

In addition to the described in the API Basics >

Method: POST URL:

In addition to the described in the API Basics >

Method: POST URL:

http://wallexpay.io/api/convert
http://wallexpay.io/api/get_withdrawal_history
http://wallexpay.io/api/get_withdrawal_info
http://wallexpay.io/api/create_transfer
Main Fields
Introduction
Main Fields
Introduction
Main Fields
Introduction
Main Fields
Introduction