Organization

Explore resources

Endpoint paths, field names and enum values appear exactly as the API uses them. Some carry legacy names, such as earn_clients. They are identifiers, not product descriptions.

GET/organization/balances/

Get organization balances

Header parameters

NameTypeDescription
apikeystringrequiredstring

API key issued to the integration partner.

Responses

200OK

application/jsonarray of BalanceResponse

NameTypeDescription
asset_idstringstring

Id of the asset, refer to response from /assets/ endpoint

available_for_withdrawalstringstring

Amount currently available to request for withdrawal.

earn_totalstringstring

Cumulative total since creation of this client account.

earn_90dstringstring
earn_30dstringstring
earn_7dstringstring
earn_1dstringstring
totalstringstring

DEPRECATED. Please use total_balance instead

last_payout_datestring (date-time)string (date-time)

Can be null if no payouts have been made yet.

last_payout_amountstringstring

Can be null if no payouts have been made yet.

total_balancestringrequiredstring

Total current balance for a given asset ID.

Example
[
  {
    "asset_id": "USDC",
    "available_for_withdrawal": "string",
    "earn_total": "string",
    "earn_90d": "string",
    "earn_30d": "string",
    "earn_7d": "string",
    "earn_1d": "string",
    "total": "string",
    "total_balance": "string",
    "last_payout_date": "2022-12-10T09:30Z",
    "last_payout_amount": "string"
  }
]

400Bad Request

application/jsonarray of Error

NameTypeDescription
field_namestringstring
error_detailsarray of ErrorDetailrequiredarray of ErrorDetail
error_details[].messagestringstring
error_details[].codestringstring
Example
[
  {
    "field_name": "string",
    "error_details": [
      {
        "message": "string",
        "code": "string"
      },
      {
        "message": "string",
        "code": "string"
      }
    ]
  }
]

401Unauthorized

POST/organization/deposit/notify/

Notify about a new deposit transaction

Header parameters

NameTypeDescription
apikeystringrequiredstring

API key issued to the integration partner.

Request body

application/jsonrequired

NameTypeDescription
txhash_urlstringrequiredstring
amountstringrequiredstring
asset_idstringrequiredstring

Id of the asset, refer to response from /assets/ endpoint

productstringrequiredstring

Allowed values: highyield

tx_timestampstring (date-time)requiredstring (date-time)
Example
{
  "txhash_url": "string",
  "amount": "string",
  "asset_id": "string",
  "product": "highyield",
  "tx_timestamp": "string"
}

Responses

204no content

GET/organization/transactions/

Get organization transaction history

Transaction list on organization level does not include transactions for individual sub-clients. Use this operation to check status of in-progress withdrawal requests.

Header parameters

NameTypeDescription
apikeystringrequiredstring

API key issued to the integration partner.

Query parameters

NameTypeDescription
transaction_idstringstring
skipintegerinteger

Specify how many transactions to skip starting from the first one

takeintegerinteger

Specify how many transactions to take

asset_idstringstring

Responses

200List of transaction's statuses

application/json

NameTypeDescription
countintegerinteger

Count of all objects

resultsarray of OrganizationTransactionResponsearray of OrganizationTransactionResponse
results[].idstringstring

Coinchange unique transaction reference

results[].statusstringstring

Allowed values: REQUESTED, TRANSFERRED_OUT, SENDING, SUCCESS, FAILED

results[].destination_addressstringstring
results[].notestringstring
results[].external_tx_idstringstring

Transaction id passed to Coinchange by an external system in the original withdrawal request.

results[].asset_idstringstring

Id of the asset, refer to response from /assets/ endpoint

results[].created_atstring (date-time)string (date-time)
results[].modified_atstring (date-time)string (date-time)
results[].txhashstringstring
results[].txhash_urlstringstring
results[].transaction_typestringstring

Allowed values: EARN, DEPOSIT, WITHDRAWAL

results[].gross_amountstringstring
results[].fee_amountstringstring
results[].net_amountstringstring
Example
{
  "count": 0,
  "results": [
    {
      "id": "string",
      "status": "SUCCESS",
      "destination_address": "string",
      "note": "string",
      "external_tx_id": "string",
      "asset_id": "USDT",
      "gross_amount": "string",
      "net_amount": "string",
      "fee_amount": "string",
      "created_at": "2022-12-10T09:30Z",
      "modified_at": "2022-12-10T09:30Z",
      "txhash": "string",
      "txhash_url": "string",
      "transaction_type": "DEPOSIT"
    }
  ]
}

401Unauthorized

POST/organization/transactions/validate_withdrawal_request/

Perform pre-submission withdrawal request validation

Pre-validate withdrawal request to receive information such as the fee that will be applied, net amount to be received, and any messages.

Header parameters

NameTypeDescription
apikeystringrequiredstring

API key issued to the integration partner.

Request body

application/jsonrequired

NameTypeDescription
amountstringrequiredstring
destination_addressstringrequiredstring
external_tx_idstringstring
asset_idstringrequiredstring

Id of the asset, refer to response from /assets/ endpoint

Example
{
  "amount": "string",
  "destination_address": "string",
  "external_tx_id": "string",
  "asset_id": "USDT"
}

Responses

200OK

application/json

NameTypeDescription
gross_amountstringstring
net_amountstringstring
fee_amountstringstring
withdrawal_statusstringstring

Allowed values: Success

messagestringstring
Example
{
  "gross_amount": "string",
  "net_amount": "string",
  "fee_amount": "string",
  "withdrawal_status": "Success",
  "message": "string"
}

400Bad Request

401Unauthorized

POST/organization/transactions/withdraw/

Create withdrawal request

Header parameters

NameTypeDescription
apikeystringrequiredstring

API key issued to the integration partner.

Request body

application/jsonrequired

NameTypeDescription
amountstringrequiredstring
destination_addressstringrequiredstring
external_tx_idstringstring
asset_idstringrequiredstring

Id of the asset, refer to response from /assets/ endpoint

Example
{
  "amount": "string",
  "destination_address": "string",
  "external_tx_id": "string",
  "asset_id": "USDT"
}

Responses

201OK

application/json

NameTypeDescription
idstringstring

Coinchange unique transaction reference

statusstringstring

Allowed values: REQUESTED, TRANSFERRED_OUT, SENDING, SUCCESS, FAILED

client_idstringstring

Client id provided to Coinchange when client was initially created by external system

destination_addressstringstring
notestringstring
external_tx_idstringstring

Transaction id passed to Coinchange by an external system in the original withdrawal request.

asset_idstringstring

Id of the asset, refer to response from /assets/ endpoint

created_atstring (date-time)string (date-time)
modified_atstring (date-time)string (date-time)
txhashstringstring
txhash_urlstringstring
transaction_typestringstring

Allowed values: EARN, DEPOSIT, WITHDRAW

fee_amountstringstring
gross_amountstringstring
net_amountstringstring
Example
{
  "id": "string",
  "status": "TRANSFERRED_OUT",
  "client_id": "string",
  "destination_address": "string",
  "note": "string",
  "external_tx_id": "string",
  "asset_id": "USDC",
  "gross_amount": "string",
  "net_amount": "string",
  "fee_amount": "string",
  "created_at": "2022-06-12T19:27:12.895815Z",
  "modified_at": "2022-06-16T09:45:43.896465Z",
  "txhash": "string",
  "txhash_url": "string",
  "transaction_type": "WITHDRAW"
}

400Bad Request

application/jsonarray of Error

NameTypeDescription
field_namestringstring
error_detailsarray of ErrorDetailrequiredarray of ErrorDetail
error_details[].messagestringstring
error_details[].codestringstring
Example
[
  {
    "field_name": "string",
    "error_details": [
      {
        "message": "string",
        "code": "string"
      },
      {
        "message": "string",
        "code": "string"
      }
    ]
  }
]

401Unauthorized

GET/organization/wallets/deposit/

Get organization deposit addresses

Header parameters

NameTypeDescription
apikeystringrequiredstring

API key issued to the integration partner.

Query parameters

NameTypeDescription
asset_idstringrequiredstring

Responses

200OK

application/jsonarray of DepositWallet

NameTypeDescription
addressstringstring
asset_idstringstring
nicknamestringstring
Example
[
  {
    "asset_id": "USDT",
    "address": "string",
    "nickname": "string"
  }
]

400Bad Request

application/jsonarray of Error

NameTypeDescription
field_namestringstring
error_detailsarray of ErrorDetailrequiredarray of ErrorDetail
error_details[].messagestringstring
error_details[].codestringstring
Example
[
  {
    "field_name": "string",
    "error_details": [
      {
        "message": "string",
        "code": "string"
      },
      {
        "message": "string",
        "code": "string"
      }
    ]
  }
]

401Unauthorized

GET/organization/wallets/withdrawal/

Get organization withdrawal addresses

Header parameters

NameTypeDescription
apikeystringrequiredstring

API key issued to the integration partner.

Responses

200OK

application/jsonarray of WithdrawalWallet

NameTypeDescription
addressstringstring
asset_idstringstring

Id of the asset, refer to response from /assets/ endpoint

nicknamestringstring
Example
[
  {
    "asset_id": "USDT",
    "address": "string",
    "nickname": "string"
  }
]

400Bad Request

application/jsonarray of Error

NameTypeDescription
field_namestringstring
error_detailsarray of ErrorDetailrequiredarray of ErrorDetail
error_details[].messagestringstring
error_details[].codestringstring
Example
[
  {
    "field_name": "string",
    "error_details": [
      {
        "message": "string",
        "code": "string"
      },
      {
        "message": "string",
        "code": "string"
      }
    ]
  }
]

401Unauthorized

Technical documentation is provided to institutional integration partners for integration work. It is not an offer or a solicitation. Availability of products, assets and endpoints varies by partner and jurisdiction.

Back to API reference