0002:您无权进行此API调用

时间:2013-05-29 17:11:28

标签: paypal connector

以下是使用在沙箱环境中失败的地址验证调用的Paypal连接器示例。

我们收到错误"You do not have permissions to make this API call"。我们正在使用paypal Mulesoft连接器来验证地址和付款。您能否请一看,让我们知道如何制作它?

Paypal企业帐户电子邮件地址:nileshk.jain-facilitator@gmail.com。我们在尝试调用其他功能时会遇到同样的错误,例如授权,直接付款,退款等。

SOAP请求:

<soap:Envelope [link removed]><soap:Header><ns2:RequesterCredentials xmlns:ns3="urn:ebay:apis:EnhancedDataTypes" xmlns:ns2="urn:ebay:api:PayPalAPI" xmlns="urn:ebay:apis:eBLBaseComponents"><Credentials><Username>[link removed]</Username><Password>1369269276</Password><Signature>AFcWxV21C7fd0v3bYYYRCpSSRl31AjYiSzqYGmMwbexuKiaJ.l.4vel4</Signature></Credentials></ns2:RequesterCredentials></soap:Header><soap:Body><ns2:AddressVerifyReq xmlns="urn:ebay:apis:eBLBaseComponents" xmlns:ns2="urn:ebay:api:PayPalAPI" xmlns:ns3="urn:ebay:apis:EnhancedDataTypes"><ns2:AddressVerifyRequest><Version>98.0</Version><ns2:Email>[link removed]</ns2:Email><ns2:Street>test</ns2:Street><ns2:Zip>test</ns2:Zip></ns2:AddressVerifyRequest></ns2:AddressVerifyReq></soap:Body></soap:Envelope>

SOAP响应:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope [link removed] [link removed] [link removed] [link removed] [link removed] xmlns:cc="urn:ebay:apis:CoreComponentTypes" [link removed] xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" [link removed] [link removed] xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI"><SOAP-ENV:Header><Security [link removed] xsi:type="wsse:SecurityType"></Security><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xsi:type="ebl:CustomSecurityHeaderType"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:UserIdPasswordType"><Username xsi:type="xs:string"></Username><Password xsi:type="xs:string"></Password><Signature xsi:type="xs:string"></Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><AddressVerifyResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2013-05-23T21:31:13Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">db6273f7185de</CorrelationID><Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType"><ShortMessage xsi:type="xs:string">Authentication/Authorization Failed</ShortMessage><LongMessage xsi:type="xs:string">You do not have permissions to make this API call</LongMessage><ErrorCode xsi:type="xs:token">10002</ErrorCode><SeverityCode xmlns="urn:ebay:apis:eBLBaseComponents">Error</SeverityCode></Errors><Version xmlns="urn:ebay:apis:eBLBaseComponents">98.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">5908853</Build><ConfirmationCode xsi:type="ebl:AddressStatusCodeType">None</ConfirmationCode><StreetMatch xsi:type="ebl:MatchStatusCodeType">None</StreetMatch><ZipMatch xsi:type="ebl:MatchStatusCodeType">None</ZipMatch></AddressVerifyResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

1 个答案:

答案 0 :(得分:0)

AddressVerify是默认情况下未启用的API。我已经开始在您的帐户中启用此功能。现在尝试使用它进行测试,您现在应该能够成功调用API。