const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
identificationMethodKey: 'SOME_NETWORK_NAME',
thirdPartyUserId: 'my-custom-id-123456789',
deviceCapabilitySendSms: 'false',
msisdn: '447710900120',
callbackUrl: 'https://mystore.example.com/on-id?foo=abcde',
notificationUrl: 'https://mystore.example.com/notify',
action: '<string>'
})
};
fetch('https://virtserver.swaggerhub.com/BangoProducts/Bango-Payment-API-v5/5.0.1/v5/identity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));