Search by id

The method allows you to find an address belonging to an organization by its ID, regardless of its type

Description of fields

FieldTypeDescription

id

string

ID of the address in the system

type

enum(PAY_IN, BUSINESS, PAY_OUT, PERSONAL, RECURRENT)

Address type

alias

string or null

The name of the address. It is set by the merchant

comment

string or null

Address comment. It is set by the merchant

currency

string

Address coin

network

string

Address network

balance

string

Address balance

address

string

Address in the blockchain

tag

string or null

The tag (MEMO) of the address. Available for networks that support the tag, for example Ripple

meta

any

Meta data. The free field is set by the merchant

isArchived

boolean

The address is in the archive

Search by id

POSThttps://app.apollopayment.io/api-gateway/addresses/find-by-id
Header parameters
Body
id*string

ID of the address in the system

Example: "d08ba5d4-c055-4ede-85c4-a007acf72e6b"
Response
Body
success*boolean

Request success indicator

response*any of
Request
const response = await fetch('https://app.apollopayment.io/api-gateway/addresses/find-by-id', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "id": "d08ba5d4-c055-4ede-85c4-a007acf72e6b"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "id": "d08ba5d4-c055-4ede-85c4-a007acf72e6b",
    "type": "PAY_IN",
    "alias": "Some address",
    "comment": null,
    "currency": "USDT",
    "network": "ethereum",
    "balance": "2956.1243",
    "address": "0x788529118F2A28C60b9de2Ba0353f5EE4293e044",
    "tag": null,
    "meta": null,
    "isArchived": false
  }
}

Last updated