Relation
Custodian Relationship Types
POST /participants/customers/minor
POST /participants/customers/minorconst postParticipantMinor = () => {
const body = {
first_name: 'Gaurav',
last_name: 'Mehta',
email: '[email protected]',
address_one: '1 Near CST',
address_two: 'Fort Area',
country: 'India',
city: 'Mumbai',
zip: '450001',
state: 'MH',
date_of_birth: '1989-10-13',
id_number_type: 'aadhar_acardt',
id_number: '123456789',
non_us_other_type: null,
id_issuing_authority: null,
utma_signed_timestamp: 1603378501286,
custodian_participant_code: 'CAST01',
custodian_relationship: 'parent',
metadata: {}
}
const timestamp = Math.round(Date.now() / 1000)
const payload = timestamp + 'POST' + '/participants/customers/minor' + JSON.stringify(body)
const decodedSecret = Buffer.from(apiSecret, 'base64')
const hmac = crypto.createHmac('sha256', decodedSecret)
const signedPayload = hmac.update(payload).digest('base64')
// SET HEADERS
const headers = {
'X-NDAX-API-KEY': 'public_key',
'X-NDAX-SIGNED': signedPayload,
'X-NDAX-TIMESTAMP': timestamp,
'X-NDAX-PASSPHRASE': 'passphrase'
}
const options = {
headers,
body,
json: true
}
return request.post(
`https://api.ndax.in/participants/customers/minor`,
options
)
}Parameter
Description
Type
Parameter
Description
Type
Last updated