eBay GetOrders API returning 0 orders - ebay-api

My eBay API call request is returning 0 orders, but I can see the orders in eBay seller site. Here is the get order request:
<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>ABC...123</eBayAuthToken>
</RequesterCredentials>
<CreateTimeFrom>2015-03-20T00:00:00.000Z</CreateTimeFrom>
<CreateTimeTo>2015-03-30T00:00:00.000Z</CreateTimeTo>
<NumberOfDays>10</NumberOfDays>
<OrderRole>Seller</OrderRole>
<OrderStatus>All</OrderStatus>
<Pagination>
<EntriesPerPage>100</EntriesPerPage>
<PageNumber>1</PageNumber>
</Pagination>
</GetOrdersRequest>
Below is the response from eBay API:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<GetOrdersResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2015-04-02T04:58:21.086Z</Timestamp>
<Ack>Success</Ack>
<Version>915</Version>
<Build>E915_CORE_APIXO_17437454_R1</Build>
<PaginationResult>
<TotalNumberOfPages>0</TotalNumberOfPages>
<TotalNumberOfEntries>0</TotalNumberOfEntries>
</PaginationResult>
<HasMoreOrders>false</HasMoreOrders>
<OrderArray/>
<OrdersPerPage>100</OrdersPerPage>
<PageNumber>1</PageNumber>
<ReturnedOrderCountActual>0</ReturnedOrderCountActual>
</GetOrdersResponse>

I don't see anything wrong but it will be useful to set WarningLevel attribute in the XML feed to High. The code below I use does works for me:
$feed = <<< EOD
<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>$auth_token</eBayAuthToken>
</RequesterCredentials>
<OrderRole>Seller</OrderRole>
<OrderStatus>Completed</OrderStatus>
<Pagination>
<EntriesPerPage>100</EntriesPerPage>
<PageNumber>$page</PageNumber>
</Pagination>
<NumberOfDays>7</NumberOfDays>
<ErrorLanguage>en_GB</ErrorLanguage>
<Version>907</Version>
<WarningLevel>High</WarningLevel>
</GetOrdersRequest>?
EOD;
$feed = trim($feed);
$site_id = 3;//3 For UK
$call_name = 'GetOrders';
$headers = array
(
'X-EBAY-API-COMPATIBILITY-LEVEL: 823',
'X-EBAY-API-DEV-NAME: ' . $dev_id,
'X-EBAY-API-APP-NAME: ' . $app_id,
'X-EBAY-API-CERT-NAME: ' . $cert_id,
'X-EBAY-API-CALL-NAME: ' . $call_name,
'X-EBAY-API-SITEID: ' . $site_id,
);
// Send request to eBay and load response in $response
$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, $api_endpoint);
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($connection, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($connection, CURLOPT_HTTPHEADER, $headers);
curl_setopt($connection, CURLOPT_POST, 1);
curl_setopt($connection, CURLOPT_POSTFIELDS, $feed);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($connection);
curl_close($connection);

Related

How to integrate TCS api with odoo 9

Please tell me how to integrate TCS Api in Odoo . I have some nominal code but i don't know this is a APi or not . If this is a Api then please tell me how i use this Code
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Service1.asmx HTTP/1.1
Host: 202.61.51.93
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://202.61.51.93:6265/GetAllCountries"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetAllCountries xmlns="http://202.61.51.93:6265/" />
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetAllCountriesResponse xmlns="http://202.61.51.93:6265/">
<GetAllCountriesResult>xmlxml</GetAllCountriesResult>
</GetAllCountriesResponse>
</soap:Body>
</soap:Envelope>

eBay Orders Buyer Paid

I have an order where the buyer paid the shipping to eBay, however, it's not on the order. It's international shipping and the buyer paid it.
You will see the shipping service cost is $26.15, however, the shipping and handling is $0 in the image. Am I reading the wrong field for shipping?
Request
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<RequesterCredentials xmlns="urn:ebay:apis:eBLBaseComponents"></RequesterCredentials>
</soap:Header>
<soap:Body>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<DetailLevel>ReturnAll</DetailLevel>
<MessageID>9682099a-9dbd-45b0-a2bb-c9caa4bb42ea</MessageID>
<Version>779</Version>
<OrderIDArray>
<OrderID>161926872948-1351674703006</OrderID>
</OrderIDArray>
</GetOrdersRequest>
</soap:Body>
</soap:Envelope>
<?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>
<GetOrdersResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2016-01-07T19:47:34.216Z</Timestamp>
<Ack>Success</Ack>
<CorrelationID>c310b4b7-b81b-4c9b-ba91-0a434feabf06</CorrelationID>
<Version>949</Version>
<Build>E949_CORE_APIXO_17770993_R1</Build>
<PaginationResult>
<TotalNumberOfPages>1</TotalNumberOfPages>
<TotalNumberOfEntries>1</TotalNumberOfEntries>
</PaginationResult>
<HasMoreOrders>false</HasMoreOrders>
<OrderArray>
<Order>
<OrderID>161926872948-1351674703006</OrderID>
<OrderStatus>Completed</OrderStatus>
<AdjustmentAmount currencyID="USD">0.0</AdjustmentAmount>
<AmountPaid currencyID="USD">56.1</AmountPaid>
<AmountSaved currencyID="USD">0.0</AmountSaved>
<CheckoutStatus>
<eBayPaymentStatus>NoPaymentFailure</eBayPaymentStatus>
<LastModifiedTime>2016-01-07T19:28:25.000Z</LastModifiedTime>
<PaymentMethod>PayPal</PaymentMethod>
<Status>Complete</Status>
<IntegratedMerchantCreditCardEnabled>false</IntegratedMerchantCreditCardEnabled>
</CheckoutStatus>
<ShippingDetails>
<SalesTax>
<SalesTaxPercent>0.0</SalesTaxPercent>
<SalesTaxState></SalesTaxState>
<ShippingIncludedInTax>false</ShippingIncludedInTax>
<SalesTaxAmount currencyID="USD">0.0</SalesTaxAmount>
</SalesTax>
<ShippingServiceOptions>
<ShippingService>ShippingMethodExpress</ShippingService>
<ShippingServicePriority>1</ShippingServicePriority>
<ExpeditedService>false</ExpeditedService>
<ShippingTimeMin>1</ShippingTimeMin>
<ShippingTimeMax>4</ShippingTimeMax>
</ShippingServiceOptions>
<InternationalShippingServiceOption>
<ShippingService>InternationalPriorityShipping</ShippingService>
<ShippingServicePriority>1</ShippingServicePriority>
</InternationalShippingServiceOption>
<SellingManagerSalesRecordNumber>74748</SellingManagerSalesRecordNumber>
<TaxTable>
<TaxJurisdiction>
<SalesTaxPercent>8.25</SalesTaxPercent>
<ShippingIncludedInTax>true</ShippingIncludedInTax>
</TaxJurisdiction>
</TaxTable>
<GetItFast>false</GetItFast>
</ShippingDetails>
<CreatedTime>2016-01-04T18:42:01.000Z</CreatedTime>
<PaymentMethods>PayPal</PaymentMethods>
<SellerEmail>Invalid Request</SellerEmail>
<ShippingAddress>
<Name></Name>
<Street1></Street1>
<Street2></Street2>
<CityName></CityName>
<StateOrProvince></StateOrProvince>
<Country>IL</Country>
<CountryName></CountryName>
<Phone></Phone>
<PostalCode>55900</PostalCode>
<ExternalAddressID></ExternalAddressID>
</ShippingAddress>
<ShippingServiceSelected>
<ShippingService>InternationalPriorityShipping</ShippingService>
<ShippingServiceCost currencyID="USD">26.15</ShippingServiceCost>
</ShippingServiceSelected>
<Subtotal currencyID="USD">29.95</Subtotal>
<Total currencyID="USD">56.1</Total>
<ExternalTransaction>
<ExternalTransactionID>XX</ExternalTransactionID>
<ExternalTransactionTime>2016-01-04T18:42:00.000Z</ExternalTransactionTime>
<FeeOrCreditAmount currencyID="USD">1.26</FeeOrCreditAmount>
<PaymentOrRefundAmount currencyID="USD">56.1</PaymentOrRefundAmount>
</ExternalTransaction>
<TransactionArray>
<Transaction>
<Buyer>
<Email>Invalid Request</Email>
<UserFirstName></UserFirstName>
<UserLastName></UserLastName>
</Buyer>
<ShippingDetails>
<CalculatedShippingRate>
<OriginatingPostalCode>63126</OriginatingPostalCode>
<PackageDepth measurementSystem="English" unit="inches">7</PackageDepth>
<PackageLength measurementSystem="English" unit="inches">11</PackageLength>
<PackageWidth measurementSystem="English" unit="inches">1</PackageWidth>
<PackagingHandlingCosts currencyID="USD">0.0</PackagingHandlingCosts>
<ShippingIrregular>false</ShippingIrregular>
<ShippingPackage>PackageThickEnvelope</ShippingPackage>
<WeightMajor measurementSystem="English" unit="lbs">0</WeightMajor>
<WeightMinor measurementSystem="English" unit="oz">3</WeightMinor>
</CalculatedShippingRate>
<SellingManagerSalesRecordNumber>74748</SellingManagerSalesRecordNumber>
</ShippingDetails>
<CreatedDate>2016-01-04T18:42:01.000Z</CreatedDate>
<Item>
<ApplicationData>XX</ApplicationData>
<ItemID>XX</ItemID>
<Site>US</Site>
<Title>Becca Shimmering Skin Perfector - Opal (1.7oz/50ml)....</Title>
<SKU>BECSHIOPA</SKU>
<ConditionID>1000</ConditionID>
<ConditionDisplayName>New</ConditionDisplayName>
</Item>
<QuantityPurchased>1</QuantityPurchased>
<Status>
<PaymentHoldStatus>None</PaymentHoldStatus>
</Status>
<TransactionID>1351674703006</TransactionID>
<TransactionPrice currencyID="USD">29.95</TransactionPrice>
<TransactionSiteID>US</TransactionSiteID>
<Platform>eBay</Platform>
<Taxes>
<TotalTaxAmount currencyID="USD">0.0</TotalTaxAmount>
<TaxDetails>
<Imposition>SalesTax</Imposition>
<TaxDescription>SalesTax</TaxDescription>
<TaxAmount currencyID="USD">0.0</TaxAmount>
<TaxOnSubtotalAmount currencyID="USD">0.0</TaxOnSubtotalAmount>
<TaxOnShippingAmount currencyID="USD">0.0</TaxOnShippingAmount>
<TaxOnHandlingAmount currencyID="USD">0.0</TaxOnHandlingAmount>
</TaxDetails>
<TaxDetails>
<Imposition>WasteRecyclingFee</Imposition>
<TaxDescription>ElectronicWasteRecyclingFee</TaxDescription>
<TaxAmount currencyID="USD">0.0</TaxAmount>
</TaxDetails>
</Taxes>
<ActualShippingCost currencyID="USD">26.15</ActualShippingCost>
<ActualHandlingCost currencyID="USD">0.0</ActualHandlingCost>
<OrderLineItemID>161926872948-1351674703006</OrderLineItemID>
</Transaction>
</TransactionArray>
<PaidTime>2016-01-04T18:42:01.000Z</PaidTime>
<ShippedTime>2016-01-05T18:04:57.000Z</ShippedTime>
<IntegratedMerchantCreditCardEnabled>false</IntegratedMerchantCreditCardEnabled>
<EIASToken>nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6AEloWlDpKLpA6dj6x9nY+seQ==</EIASToken>
<PaymentHoldStatus>None</PaymentHoldStatus>
<MonetaryDetails>
<Payments>
<Payment>
<PaymentStatus>Succeeded</PaymentStatus>
<Payer type="eBayUser">XX</Payer>
<Payee type="eBayPartner">XX</Payee>
<PaymentTime>2016-01-04T18:42:00.000Z</PaymentTime>
<PaymentAmount currencyID="USD">26.15</PaymentAmount>
</Payment>
<Payment>
<PaymentStatus>Succeeded</PaymentStatus>
<Payer type="eBayUser">XX</Payer>
<Payee type="eBayUser">XX</Payee>
<PaymentTime>2016-01-04T18:42:00.000Z</PaymentTime>
<PaymentAmount currencyID="USD">29.95</PaymentAmount>
<ReferenceID type="ExternalTransactionID">XX</ReferenceID>
<FeeOrCreditAmount currencyID="USD">1.26</FeeOrCreditAmount>
</Payment>
</Payments>
</MonetaryDetails>
</Order>
</OrderArray>
<OrdersPerPage>100</OrdersPerPage>
<PageNumber>1</PageNumber>
<ReturnedOrderCountActual>1</ReturnedOrderCountActual>
</GetOrdersResponse>
</soapenv:Body>
</soapenv:Envelope>
Because the order is because is using Global Shipping it will show 0.00.
Please check the API documentation on the getordersapi or getmyebayselling api.
Take a look at the tag
<IsMultiLegShipping> boolean </IsMultiLegShipping>
You can exclude these pass through payments if it is true.
In order to see <IsMultiLegShipping> you will need to pass this with your request:
<DetailLevel>ReturnAll</DetailLevel>
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.

eBay GetOrders Unpaid Orders

I am trying to pull a list of orders from eBay where the paid date is null. Here is my current query:
http://developer.ebay.com/devzone/xml/docs/reference/ebay/getorders.html
Can eBay return orders that are unpaid? Do I need to add a parameter?
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header>
<RequesterCredentials xmlns="urn:ebay:apis:eBLBaseComponents">
<eBayAuthToken>XX</eBayAuthToken>
</RequesterCredentials>
</soap:Header>
<soap:Body>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<MessageID>XX</MessageID>
<Version>779</Version>
<CreateTimeFrom>2015-08-05T00:00:00</CreateTimeFrom>
<CreateTimeTo>2015-08-05T23:59:00</CreateTimeTo>
<OrderRole>Seller</OrderRole>
<OrderStatus>All</OrderStatus>
<Pagination>
<EntriesPerPage>50</EntriesPerPage>
<PageNumber>1</PageNumber>
</Pagination>
</GetOrdersRequest>
</soap:Body>
</soap:Envelope>
I'm not familiar with the GetOrders request, but you can certainly get a list of Crimothy's who have not paid using the GetMyeBaySelling API and setting 'AwaitingPayment' as the OrderStatusFilter.
http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetMyeBaySelling.html
This simple request should give you what you're after:
<?xml version="1.0" encoding="utf-8"?>
<GetMyeBaySellingRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>... </eBayAuthToken>
</RequesterCredentials>
<SoldList>
<Include>true</Include>
<Pagination><EntriesPerPage>100</EntriesPerPage>
<PageNumber>1</PageNumber>
</Pagination>
<OrderStatusFilter>AwaitingPayment</OrderStatusFilter>
</SoldList><DetailLevel>ReturnAll</DetailLevel>
<Version>935</Version>
<WarningLevel>High</WarningLevel>
</GetMyeBaySellingRequest>
Try and pass in DetailLevel just before you close out </GetOrdersRequest>
<DetailLevel>ReturnAll</DetailLevel>

RequestRecipientToken returns Unspecified_Error

I am trying to request for a token from my client app implemented in Objective-C.
I first call CreateEnvelopeFromTemplate to get an envelopeID.(It works file)
I then, pass this envelopeID to RequestRecipientToken. Unfortunately, RequestRecipientToken returns Unspecified_Error to me. I cross-checked the SOAP request of RequestRecipientToken as well as the headers didn't find anything wrong.
I've copied the SOAP request and response along with the headers for both the methods.
**CreateEnvelopeFromTemplate Request**
{
"Content-Length" = 2725;
"Content-Type" = "application/soap+xml; charset=utf-8";
Host = "demo.docusign.net";
SOAPAction = "http://www.docusign.net/API/3.0/CreateEnvelopeFromTemplates";
"User-Agent" = wsdl2objc;
"X-DocuSign-Authentication" = "<DocuSignCredentials><Username>dubeynikhileshs#gmail.com</Username><Password>myPassword</Password><IntegratorKey>XORI-84155a30-597a-4821-918a-40551d71dcff</IntegratorKey></DocuSignCredentials>";
}
2013-08-03 21:24:06.619 DocuSignFramework-ObjC[2809:c07] OutputBody:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:APIService="http://www.docusign.net/API/3.0" xsl:version="1.0">
<soap:Body>
<APIService:CreateEnvelopeFromTemplates>
<APIService:TemplateReferences>
<APIService:TemplateReference>
<APIService:TemplateLocation>Server</APIService:TemplateLocation>
<APIService:Template>5AB61121-DBEF-4403-BD2C-77B6E2E427F0</APIService:Template>
<APIService:RoleAssignments>
<APIService:RoleAssignment>
<APIService:RoleName>Signer</APIService:RoleName>
<APIService:RecipientID>1</APIService:RecipientID>
</APIService:RoleAssignment>
</APIService:RoleAssignments>
<APIService:FieldData>
<APIService:DataValues>
<APIService:DataValue>
<APIService:TabLabel>Full Name 1</APIService:TabLabel>
<APIService:Value>John Smith</APIService:Value>
</APIService:DataValue>
<APIService:DataValue>
<APIService:TabLabel>Company 3</APIService:TabLabel>
<APIService:Value>MyCompany</APIService:Value>
</APIService:DataValue>
</APIService:DataValues>
</APIService:FieldData>
</APIService:TemplateReference>
</APIService:TemplateReferences>
<APIService:Recipients>
<APIService:Recipient>
<APIService:ID>1</APIService:ID>
<APIService:UserName>John Smith</APIService:UserName>
<APIService:Email>johnSmith#mail.com</APIService:Email>
<APIService:Type>Signer</APIService:Type>
<APIService:CaptiveInfo>
<APIService:ClientUserId>1</APIService:ClientUserId>
</APIService:CaptiveInfo>
<APIService:RoutingOrder>1</APIService:RoutingOrder>
<APIService:RoleName>Signer</APIService:RoleName>
</APIService:Recipient>
</APIService:Recipients>
<APIService:EnvelopeInformation>
<APIService:AccountId>e3900d9b-1075-4d95-9d77-aecaddc38467</APIService:AccountId>
<APIService:EmailBlurb>This is my new eSignature service,it allows me to get your signoff without having to fax, scan, retype, refile and wait forever</APIService:EmailBlurb>
<APIService:Subject>Please Sign this NDA: John Smith</APIService:Subject>
</APIService:EnvelopeInformation>
<APIService:ActivateEnvelope>true</APIService:ActivateEnvelope>
</APIService:CreateEnvelopeFromTemplates>
</soap:Body>
</soap:Envelope>
2013-08-03 21:24:12.108 DocuSignFramework-ObjC[2809:c07] ResponseStatus: 200
2013-08-03 21:24:12.108 DocuSignFramework-ObjC[2809:c07] ResponseHeaders:
{
"Cache-Control" = "private, max-age=0";
"Content-Length" = 4108;
"Content-Type" = "application/soap+xml; charset=utf-8";
Date = "Sat, 03 Aug 2013 15:57:31 GMT";
"Strict-Transport-Security" = "max-age=7776000; includeSubDomains";
}
2013-08-03 21:24:12.109 DocuSignFramework-ObjC[2809:c07] ResponseBody:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"><wsa:Action>http://www.docusign.net/API/3.0/CreateEnvelopeFromTemplatesResponse</wsa:Action><wsa:MessageID>urn:uuid:0689b7a8-2206-44a2-a465-1cd448367289</wsa:MessageID><wsa:RelatesTo>urn:uuid:aba49813-2326-4f82-8b2b-9ff361c2ddbc</wsa:RelatesTo><wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-3a57d1aa-53f7-489b-b442-85494b711036"><wsu:Created>2013-08-03T15:57:32Z</wsu:Created><wsu:Expires>2013-08-03T16:02:32Z</wsu:Expires></wsu:Timestamp></wsse:Security></env:Header><soap:Body><CreateEnvelopeFromTemplatesResponse xmlns="http://www.docusign.net/API/3.0"><CreateEnvelopeFromTemplatesResult><RecipientStatuses><RecipientStatus><Type>Signer</Type><Email>johnSmith#mail.com</Email><UserName>John Smith</UserName><RoutingOrder>1</RoutingOrder><Sent>2013-08-03T08:57:31.883</Sent><DeclineReason xsi:nil="true" /><Status>Sent</Status><RecipientIPAddress /><ClientUserId>1</ClientUserId><CustomFields /><TabStatuses><TabStatus><TabType>FullName</TabType><Status>Active</Status><XPosition>558</XPosition><YPosition>250</YPosition><TabLabel>Full Name 1</TabLabel><TabName>FullName</TabName><TabValue /></TabStatus><TabStatus><TabType>Custom</TabType><Status>Active</Status><XPosition>556</XPosition><YPosition>281</YPosition><TabLabel>Company 3</TabLabel><TabName>Company</TabName><TabValue>MyCompany</TabValue></TabStatus><TabStatus><TabType>Custom</TabType><Status>Active</Status><XPosition>558</XPosition><YPosition>320</YPosition><TabLabel>Data Field 5</TabLabel><TabName>Location</TabName><TabValue>Seattle</TabValue></TabStatus><TabStatus><TabType>DateSigned</TabType><Status>Active</Status><XPosition>556</XPosition><YPosition>362</YPosition><TabLabel>Date Signed 7</TabLabel><TabName>DateSigned</TabName><TabValue /></TabStatus><TabStatus><TabType>SignHere</TabType><Status>Active</Status><XPosition>375</XPosition><YPosition>1279</YPosition><TabLabel>Sign Here 6</TabLabel><TabName>SignHere</TabName><TabValue /></TabStatus><TabStatus><TabType>DateSigned</TabType><Status>Active</Status><XPosition>275</XPosition><YPosition>1435</YPosition><TabLabel>Date Signed 7</TabLabel><TabName>DateSigned</TabName><TabValue /></TabStatus></TabStatuses></RecipientStatus></RecipientStatuses><TimeGenerated>2013-08-03T08:57:32.1314114</TimeGenerated><EnvelopeID>536d4826-0797-47de-b502-daa02e6191de</EnvelopeID><Subject>Please Sign this NDA: John Smith</Subject><UserName>Nikhilesh Dubey</UserName><Email>dubeynikhileshs#gmail.com</Email><Status>Sent</Status><Created>2013-08-03T08:57:31.68</Created><Sent>2013-08-03T08:57:31.9130072</Sent><ACStatus>Original</ACStatus><ACStatusDate>2013-08-03T08:57:31.68</ACStatusDate><ACHolder>Nikhilesh Dubey</ACHolder><ACHolderEmail>dubeynikhileshs#gmail.com</ACHolderEmail><ACHolderLocation>DocuSign</ACHolderLocation><SigningLocation>Online</SigningLocation><SenderIPAddress>120.61.122.206 </SenderIPAddress><EnvelopePDFHash /><CustomFields><CustomField><Name>Envelope Field 1</Name><Show>False</Show><Required>False</Required><Value /></CustomField><CustomField><Name>Envelope Field 2</Name><Show>False</Show><Required>False</Required><Value /></CustomField><CustomField><Name>SendingAppVersion</Name><Show>False</Show><Required>False</Required><Value>Version=7.5.7600.16385 (win7_rtm.090713-1255);AppExe=w3wp.exe</Value></CustomField></CustomFields><AutoNavigation>true</AutoNavigation><EnvelopeIdStamping>true</EnvelopeIdStamping><AuthoritativeCopy>false</AuthoritativeCopy></CreateEnvelopeFromTemplatesResult></CreateEnvelopeFromTemplatesResponse></soap:Body></soap:Envelope>
2013-08-03 21:24:13.439 DocuSignFramework-ObjC[2809:c07] respone <APIServiceSoap12BindingResponse: 0x7c87190>
bodyParts (
"<APIService_CreateEnvelopeFromTemplatesResponse: 0x7b7bcb0>"
)
2013-08-03 21:24:13.440 DocuSignFramework-ObjC[2809:c07] response.CreateEnvelopeFromTemplatesResult.EnvelopeID 536d4826-0797-47de-b502-daa02e6191de
**RequestRecipientToken**
2013-08-03 21:24:13.442 DocuSignFramework-ObjC[2809:c07] OutputHeaders:
{
"Content-Length" = 1773;
"Content-Type" = "application/soap+xml; charset=utf-8";
Host = "demo.docusign.net";
SOAPAction = "http://www.docusign.net/API/3.0/RequestRecipientToken";
"User-Agent" = wsdl2objc;
"X-DocuSign-Authentication" = "<DocuSignCredentials><Username>dubeynikhileshs#gmail.com</Username><Password>myPassword</Password><IntegratorKey>XORI-84155a30-597a-4821-918a-40551d71dcff</IntegratorKey></DocuSignCredentials>";
}
2013-08-03 21:24:13.443 DocuSignFramework-ObjC[2809:c07] OutputBody:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:APIService="http://www.docusign.net/API/3.0" xsl:version="1.0">
<soap:Body>
<APIService:RequestRecipientToken>
<APIService:EnvelopeID>536d4826-0797-47de-b502-daa02e6191de</APIService:EnvelopeID>
<APIService:ClientUserID>1</APIService:ClientUserID>
<APIService:Username>John Smith</APIService:Username>
<APIService:Email>johnSmith#mail.com</APIService:Email>
<APIService:AuthenticationAssertion>
<APIService:AssertionID>Your AssertionID Here</APIService:AssertionID>
<APIService:AuthenticationInstant>2013-08-03T15:54:13Z</APIService:AuthenticationInstant>
<APIService:AuthenticationMethod>Password</APIService:AuthenticationMethod>
<APIService:SecurityDomain>YourApp.com</APIService:SecurityDomain>
</APIService:AuthenticationAssertion>
<APIService:ClientURLs>
<APIService:OnSigningComplete>http://www.google.com</APIService:OnSigningComplete>
<APIService:OnViewingComplete>http://www.google.com</APIService:OnViewingComplete>
<APIService:OnCancel>http://www.google.com</APIService:OnCancel>
<APIService:OnDecline>http://www.google.com</APIService:OnDecline>
<APIService:OnSessionTimeout>http://www.google.com</APIService:OnSessionTimeout>
<APIService:OnException>http://www.google.com</APIService:OnException>
<APIService:OnIdCheckFailed>http://www.google.com</APIService:OnIdCheckFailed>
</APIService:ClientURLs>
</APIService:RequestRecipientToken>
</soap:Body>
</soap:Envelope>
2013-08-03 21:24:16.003 DocuSignFramework-ObjC[2809:c07] ResponseStatus: 500
2013-08-03 21:24:16.003 DocuSignFramework-ObjC[2809:c07] ResponseHeaders:
{
"Cache-Control" = private;
"Content-Length" = 1475;
"Content-Type" = "application/soap+xml; charset=utf-8";
Date = "Sat, 03 Aug 2013 15:57:38 GMT";
"Strict-Transport-Security" = "max-age=7776000; includeSubDomains";
}
2013-08-03 21:24:16.004 DocuSignFramework-ObjC[2809:c07] ResponseBody:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"><wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action><wsa:MessageID>urn:uuid:1688ead3-d6c4-4fff-9e41-8732160db9ce</wsa:MessageID><wsa:RelatesTo>urn:uuid:c5fe47b4-fc7f-47a3-855b-0b2d6435bd32</wsa:RelatesTo><wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-ff87b1c1-2ce2-43e6-8ccb-99e71bb2f8ac"><wsu:Created>2013-08-03T15:57:38Z</wsu:Created><wsu:Expires>2013-08-03T16:02:38Z</wsu:Expires></wsu:Timestamp></wsse:Security></env:Header><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Unspecified_Error</soap:Text></soap:Reason><soap:Node>https://demo.docusign.net/api/3.0/dsapi.asmx</soap:Node><detail><ErrorCode xmlns="missing in Web.Config">1</ErrorCode><ErrorReason xmlns="missing in Web.Config">An Error Occurred.</ErrorReason></detail></soap:Fault></soap:Body></soap:Envelope>
namespace error : xmlns: 'missing in Web.Config' is not a valid URI
t/api/3.0/dsapi.asmx</soap:Node><detail><ErrorCode xmlns="missing in Web.Config"
^
namespace error : xmlns: 'missing in Web.Config' is not a valid URI
="missing in Web.Config">1</ErrorCode><ErrorReason xmlns="missing in Web.Config"
I'm wondering if the error is due to the fact that you are saving your envelope as a draft envelope instead of sending it. Since you are using the
CreateEnvelopeFromTemplate()
api call, if it successfully completes then the end result should be an envelope that is saved as a draft and not sent yet (you can confirm by looking in your draft folder in the DocuSign Console). To request a recipient token the envelope needs to be sent, otherwise you'd want to request a sender token instead. Try calling
SendEnvelope()
after your CreateEnvelopeFromTemplate() call but before the RequestRecipientToken call.

Paypal sandbox endpoint webservice - Error "You do not have permissions to make this API call"

I used this paypal endpoint webservice for my PHP5 SoapClient :
Sandbox API Signature SOAP https://api-3t.sandbox.paypal.com/2.0/
And when i send my soap request with my credentials, i get an error with :
Ack => failure
ErrorCode => 10002
Short message => Authentication/Authorization failed
Long message => You do not have permissions to make this API call
This is current Soap message send to soap paypal API :
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:ebay:apis:eBLBaseComponents"
xmlns:ns2="ebl:SetExpressCheckoutRequestDetails"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns3="urn:ebay:api:PayPalAPI"
xmlns:ns4="ebl:UserIdPasswordType">
<SOAP-ENV:Header>
<ns3:RequesterCredentials xsi:type="ns4:UserIdPasswordType">
<Username>xxxxx</Username>
<Password>xxxxx</Password>
<Signature>xxxxx</Signature>
</ns3:RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns3:SetExpressCheckoutReq>
<ns3:SetExpressCheckoutRequest>
<ns1:Version>84.0</ns1:Version>
<ns1:SetExpressCheckoutRequestDetails
xsi:type="ns2:SetExpressCheckoutRequestDetailsType">
<ReturnUrl>url_to_/success.paypal.php</ReturnUrl>
<CancelUrl>url_to_/cancel.paypal.php</CancelUrl>
<LocaleCode>US</LocaleCode>
</ns1:SetExpressCheckoutRequestDetails>
</ns3:SetExpressCheckoutRequest>
</ns3:SetExpressCheckoutReq>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I instantiated this PHP5 SoapClient :
//Endpoint
$location = 'https://api-3t.sandbox.paypal.com/2.0/';
$uri = 'urn:ebay:api:PayPalAPI';
//SoapClient options
$options = array('trace' => 1, 'exceptions' => 1, 'location'=>$location, 'uri'=>$uri);
//My Soap Client
$client =new SoapClient('https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl',$options);
But when I called SetExpressCheckout paypal soap service, i receive the following soap message :
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:cc="urn:ebay:apis:CoreComponentTypes"
xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"
xmlns:ed="urn:ebay:apis:EnhancedDataTypes"
xmlns:ebl="urn:ebay:apis:eBLBaseComponents"
xmlns:ns="urn:ebay:api:PayPalAPI">
<SOAP-ENV:Header>
<Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext"
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">
</Credentials>
</RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body id="_0">
<SetExpressCheckoutResponse xmlns="urn:ebay:api:PayPalAPI">
<Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">
2012-01-13T12:09:01Z
</Timestamp>
<Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack>
<CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">
c8d551f118a1
</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">84.0</Version>
<Build xmlns="urn:ebay:apis:eBLBaseComponents">2271164</Build>
</SetExpressCheckoutResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Nevertheless, I used the API credentials of my business account test...
I don't understand why my code doesnt work.
The error is : 'You do not have permissions to make this API call', but how it's possible? Because i use the correct endpoint service (sandbox) ?