Sending WIX Form Data via API to CRM URL (SOLVED)

For anyone looking for a full answer to this question, this is the working code below with *'s to hide IP & password.

Only problem I now have is the data isn’t being saved to my database collection.

import { fetch } from ‘wix-fetch’ ;

export function submit_click ( event ) {
let crmApiURL = ‘https://www.nationaldebtassistance.org.uk/portal/ukdebtaid_api.php?user_id=UKDE0059&user_token=UKDEB0D4E&user_pass=*********f
let apiend = ‘&c_emp_status=NIL&industries=NIL&ref_page=ukdebtaid.co.uk&my_ip=*********’ ;

let apiQuery = ‘’ ;
if ( $w ( “#fname” ). value !== null && $w ( “#fname” ). value . length > 0 ) { apiQuery += ‘&name=’ + $w ( “#fname” ). value + ‘%20’ + $w ( “#lname” ). value + ‘’ ;}
if ( $w ( “#phone” ). value !== null && $w ( “#phone” ). value . length > 0 ) { apiQuery += ‘&phone=’ + $w ( “#phone” ). value + ‘’ ;}
if ( $w ( “#email” ). value !== null && $w ( “#email” ). value . length > 0 ) { apiQuery += ‘&email=’ + $w ( “#email” ). value + ‘’ ;}
if ( $w ( “#radioGroup1” ). value !== null && $w ( “#radioGroup1” ). value ) { apiQuery += ‘&debts=’ + $w ( “#radioGroup1” ). value + ‘’ ;}
if ( $w ( “#radioGroup2” ). value !== null && $w ( “#radioGroup2” ). value ) { apiQuery += ‘&emp_status=’ + $w ( “#radioGroup2” ). value + ‘’ ;}
if ( $w ( “#radioGroup3” ). value !== null && $w ( “#radioGroup3” ). value ) { apiQuery += ‘&country=’ + $w ( “#radioGroup3” ). value + ‘’ ;}

let fullurl = ‘https://www.nationaldebtassistance.org.uk/portal/ukdebtaid_api.php?user_id=UKDE0059&user_token=UKDEB0D4E&user_pass=’ + apiQuery + '&c_emp_status=NIL&industries=NIL&ref_page=ukdebtaid.co.uk&my_ip=’ ;

fetch ( fullurl , { method : ‘post’ })
. then (( fetchResult ) => {
})
. catch (( error ) => {
console . log ( error );
});}