Skip to main content
POST
/
v1
/
validate
Validate payment destination
curl --request POST \
  --url https://api.sandbox.busha.so/v1/validate \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "address",
  "address": "tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr",
  "currency": "BTC",
  "network": "BTC",
  "memo": "memo"
}'
{
"status": "success",
"message": "message for success",
"data": {
"type": "address",
"address": "tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr",
"currency": "BTC",
"network": "BTC",
"memo": "memo",
"valid": true
}
}

Body

application/json

validate a payment destination

type
enum<string>
required
Available options:
address
Example:

"address"

currency
string<string>
required

A valid currency

Required string length: 1 - 10
Example:

"BTC"

address
string

This is the address for type address

Example:

"tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr"

network
string

This specifies the blockchain network associated with the address receiving the payment, typically used with address type payouts.

Example:

"BTC"

memo
string

This refers to the memo required for blockchain networks that mandate a memo for cryptocurrency transactions.

Example:

"memo"

Response

Successful response

General response Values

status
enum<string>
required
Available options:
success,
error
Example:

"success"

message
string
required
Example:

"message for success"

data
object
required