Hello Team,
I tried to create a payment via API, but receive the error message:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>Invalid login attempt.</faultstring>
<detail>
<platformFaults:invalidCredentialsFault xmlns:platformFaults="urn:faults_2020_1.platform.webservices.netsuite.com">
<platformFaults:code>USER_ERROR</platformFaults:code>
<platformFaults:message>Invalid login attempt.</platformFaults:message>
</platformFaults:invalidCredentialsFault>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">partners017</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Could you please clarify how to fix the request to avoid the error message?
Example of headers:
Request:
<?xml version="1.0"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<tokenPassport>
<account>[Removed]</account>
<consumerKey>[Removed]</consumerKey>
<token>[Removed]</token>
<nonce>eQAqaa......qk7</nonce>
<timestamp>{{timestamp}}</timestamp>
<signature algorithm="HMAC_SHA256">[Removed]</signature>
</tokenPassport>
</soap-env:Header>
<soap-env:Body>
<search xmlns="urn:messages_2020_1.platform.webservices.netsuite.com">
<searchRecord xmlns:ns12="urn:accounting_2020_1.lists.webservices.netsuite.com" xsi:type="ns12:PaymentMethodSearch" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns12:basic xsi:type="ns13:PaymentMethodSearchBasic" xmlns:ns13="urn:common_2020_1.platform.webservices.netsuite.com"/>
</searchRecord>
</search>
</soap-env:Body>
</soap-env:Envelope>
Could you clarify how to fix the issue?