Quantcast
Channel: e-conomic Global API Forum
Viewing all 2527 articles
Browse latest View live

filter on booked invoices


Answered: Create invoiceline on currentinvoice from PHP

$
0
0
Hi Brian

 

Please contact API support if this is still an issue.

Product_GetData SOAP encoding violation!

$
0
0

Hi I am getting this error on one server, but works fine on another. What is the violation that I am making in the request? where can I get the information of e-conomic SOAP encoding rules? Thanks for any help!

 

product number: wooeco-99
could not create product: SOAP-ERROR: Encoding: Violation of encoding rules
-----------
POST /secure/api1/EconomicWebservice.asmx HTTP/1.1
Host: api.e-conomic.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.5.22
Content-Type: text/xml; charset=utf-8
Content-Length: 316
Cookie: ASP.NET_SessionId=dy0fug2gdwfak445wu0wty55;
 
This is the XML posted
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://e-conomic.com">
<SOAP-ENV:Body>
<ns1:Product_GetData>
<ns1:entityHandle>
<ns1:Number>wooeco-99</ns1:Number>
</ns1:entityHandle>
</ns1:Product_GetData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
--
Alvin

DefaultPaymentTypeHandle

$
0
0

I have this scenario for setting creditor bank payment:

creditorData.DefaultPaymentCreditorId = "123";
creditorData.DefaultPaymentTypeHandle = BankPaymentType_FindByName("Bank transfer")[0];
Creditor_UpdateFromData(creditorData);
 
The problem is, that even though this update does not fail, the DefaultPaymentCreditorId and the DefaultPaymentType have not been set.

how can i get information what happen from error code

$
0
0
Hi,

I am getting following error...

 Economic.Api.Exceptions.IntegrityException(E06010): The entity cannot be created because the key already exists. (id=7f2b7150-ceb5-4bd2-8b47-7061870725d5) at row index:0

How i can get more details on this?

invoice filtering and sorting

$
0
0
Will sorting and filtering be avilable like it is on drafts-experimental in the REST api?

Set InvoiceNumber with CashBookEntry_CreateManualDebtorInvoice

$
0
0
Hi,
Is it possible to specify the InvoiceNumber through the CashBookEntry_CreateManualDebtorInvoice methode?

CurrentInvoiceData - Get the Invoice Number

$
0
0
Hi,

I've might have missed something, however i can't seem to get the number of a newly created invoice.  

I'm doing integration on a system, i'd like to be able to display the Invoicenumber to enable users to search the invoice.

The CurrentInvoiceData object has an ID field, however this is not equivalent to the invoicenumber.  Please thoughs on this is highly appreciated.

How to get "FI-adviserings"-ID from Girokort-Invoices?

$
0
0
Hi E-conomic

There is no security mechanism in the function in E-conomic that imports from the Netbank (FI-adviseringer), so bookkeepers can by misstake imported the same Girokort-payments double (or more). The import could easily stop bookkeepers from doing this by making some checks before importing.

So we would like to create our own registration of girokort-payments. Our bank will soon give us a kind of API to our Netbank, so now I can extract the girokort-payments direkctly from our bankaccount. The system that will do this will automatically run the girokort-payment registration rutine.

Now I just need to know how to get the "FI-adviserings"-ID from the Girokort-Invoice so I can match the value from the netbank (something like: 000000000123406") with the value from the girokort-invoice.

I am missing a API function like: "Invoice_GetFIAdviseringsID($InvoiceNumber)"

Can you help?

Answered: Set InvoiceNumber with CashBookEntry_CreateManualDebtorInvoice

Answered: invoice filtering and sorting

$
0
0
Yes filtering like you can do on /invoices-experimental/drafts will also be available after it transitions to stable. As it is experimental we can't promise if all filters will make it, but I assume they will.

Answered: how can i get information what happen from error code

$
0
0
Hi Darshan

Please contact API support.

api@e-conomic.com

Thanks

Answered: Product_GetData SOAP encoding violation!

$
0
0
Hi Alvin

 

Your SKU (product name) is not a handle.

You will need to first look up the Product Handle using: Product_FindByNumber

https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Product_FindByNumber

 

The fault you're getting is because the SOAP server is expecting an integer and not a string.

 

Stack overflow thread on the same issue:

http://stackoverflow.com/questions/1309477/soap-error-encoding-violation-of-encoding-rules

Quote:

It looks like you have a type mismatch somewhere, either while assembling your request (one of the parameters is not of type string), or the server returns something other than an int (violating the WSDL response definition and thus causing the client to consider the response invalid, as it expects something else).

Error when updating product with SOAP

$
0
0

Hi, I receive this error when updating product with SOAP api: 

Economic.Api.Exceptions.IntegrityException(E06000): The product '' does not exist.

I'm pretty sure I give the right numbers for the handle and product number, here is the code:

--------

$id = get_the_ID();

        $orderdata = array( 'Handle' => array('Id'=>$id),
            'Number' => $id,
            'ProductGroupHandle'=> array('Number'=>1),
            'Name'=> $product->get_title(),
            'Description'=>get_the_excerpt(),
            'BarCode'=>$product->get_sku(),
            'SalesPrice'=>$product->get_price(),
            'CostPrice'=>'10',
            'RecommendedPrice'=>$product->get_price(),
            'IsAccessible' => true,
            'Volume'=>$product->get_price(),
            );   
             
            //$result = $client->Product_CreateFromData(array( "data"=>$orderdata ) )->Product_CreateFromData->Id;
            $result = $client->Product_UpdateFromData(array( "data"=>$orderdata ) )->Product_UpdateFromData->Id;
-------
 
The main thing is that Product_CreateFromData work like a charm, but Product_UpdateFromData give this error, I can't understand why, because both methods use same parameters.
 
Thanks,
OO

PHP example gives Notice: Undefined property: stdClass::$DebtorData


Answered: Error when updating product with SOAP

$
0
0
Hi OO

The main difference between the two is that Product_UpdateFromData needs the handle of the product you want to update as a parameter. CreateFromData returns a handle.

You should use Product_FindByNumber to get the handle for a product where you don't know the handle but do know the number.

Number can be anything and is synonymous to SKU. Handle is an object with a unique number.

Answered: DefaultPaymentTypeHandle

Book a draft invoice on a specific invoice number

$
0
0
I have problems with the REST API sending a PUT to Book a draft invoice selecting the invoice number. For example, if my Draft number is 45 and I want to create a Book invoice with number 328, I try this calling with the method PUT (I have changed here the AppID and AccessID for security reasons):https://restapi.e-conomic.com/invoices/booked/_45_328?AppID=eRAvkbyi8hh3lJBGUhA_R4gsz4J0t-gp_6nN_PsL7P41&AccessID=gd3TjweI22f_LR-w-Mm4cayNO_KliZLvX-rCzojkRaE2

Is that correct?, must I send any JSON data in this petition?, is neccesary to add the header: "Content-Type: application/json" as in the POSTs petitions?

The result of my calling is:

{"message":"We have experienced an internal server error. The error has been logged.", "errorCode":"E00000","developerHint":"If you continue to see errors here, please contact api@e-conomic.com. Remember to include error id and agreement number when contacting support.","logId":"70d9230f-fac1-4b8a-a93b-aaf887420bbf","httpStatusCode":500,"logTime":"2015-03-13T20:17:13"}- - - - - - -

When I see the details of a Draft invoice with the GET method, in the last lines appears the next description, that is the thing that I'm trying to do:

"bookWithNumber":{"description":"Book a draft invoice on a specific invoice number.","href":"https://restapi.e-conomic.com/invoices/booked/_4_bookingNumber?AppID=eRAvkbyi8hh3lJBGUhA_R4gsz4J0t-gp_6nN_PsL7P41&AccessID=gd3TjweI22f_LR-w-Mm4cayNO_KliZLvX-rCzojkRaE2","httpMethod":"put"}

 

Thanks a lot

Service Refrence Visual studio

How do you delete an App from your account?

$
0
0
I have added an App, that I no longer need to use, but apart from removing the grants, I cannot seem to find anywhere to remove the "App" itself.

So I would like to clean up my view by removing the now not-needed app from the list.

Any help is appreciated :-)

Best regards

Carsten
Viewing all 2527 articles
Browse latest View live