XML RPC API - Ordini di vendita

XML RPC API - Ordini di vendita

XML RPC API - Ordini di vendita

Informazioni in merito all'utilizzo delle XML RPC API per gli ordini di vendita

HTTP Method

GET

Parametri obbligatori 


Parametri in GetUtilizzoDescrizione e valori 






mt
Obbligatorio
Descrive la tipologia di operazione
Valori utilizzabili 

docorder = metodi per ordini di vendita
da utilizzare nel caso di pochi documenti da interrogare

pagingorder = metodi per ordini di vendita con paging
da utilizzare nel caso di interrogazione massiva di documenti 

updstatusorder = metodo per aggiornamento stato ordine 


opObbligatorio
Descrive la tipologia di operazione
Valori utilizzabili 
gt = operazione per le liste
up = operazioni di update

upfromdocimport = operazione di update che aggiorna lo stato
 dell'ordine da in coda >> in lavorazione
da utilizzare con il parametro mt=updstatusorder

upfromstatusexecuteoperazione di update che ripristina lo stato dell'ordine da evaso  >> in lavorazione
da utilizzare con il parametro mt=updstatusorder

uptostatusdoneoperazione di update che aggiorna lo stato dell'ordine da in lavorazione >> in evaso
da utilizzare con il parametro mt=updstatusorder



Messaggi di errore


Codice erroreDescrizione messaggio
1002No documents found
1003Get update parameter not valid or missing
1004Document id not found

Lista ordini - Parametri

Restituisce un documento XML con la lista degli ordini  

Parametri in GetDescrizioneValori in Get
doc_typeDescrive il tipo di documento= ordini
doc_statusDescrive lo stato del documento
= ordini in coda
= ordini in lavorazione
= ordini evasi
= ordini annullati
doc_export_statusDescrive lo stato di esportazione degli ordini
= restituisce tutti gli ordini esportati e non esportati
= restituisce solo gli ordini giĆ  esportati
= restituisce solo gli ordini non esportati
show_elementsDescrive lo stato di visualizzazione degli elementi della distinta base  
= non restituisce gli elementi della distinta base
= restituisce gli elementi della distinta base
doc_page
Descrive il numero di pagina da interrogare
Da utilizzare solo con mt = pagingorder
Intero

rows_per_page
Descrive il numero di righe per pagina da interrogare
Da utilizzare solo con mt = pagingorder
Intero
Valore minimo = 1
Valore massimo = 50
doc_payment_status
Descrive lo stato del pagamento dell'ordine di vendita
Non valorizzato  restituisce tutti gli ordini pagati e non pagati
= restituisce tutti gli ordini non pagati 
restituisce tutti gli ordini pagati 

Lista ordini - Documento XML di risposta


<WscPrinterXmlApi   AppVersion =" "   Creator =" Dynamicsoft Srl "   CreatorUrl =" www.dynamicsoft.it >
<Paging>
<CurrentPage>1</CurrentPage>
<RowsPerPage>50</RowsPerPage>
<TotalPages>1</TotalPages>
<TotalRows>33</TotalRows>
</Paging>
<Company>
<Name> Dynamicsoft srl </Name>
<Address> via starza 7 </Address>
<Postcode> 83029 </Postcode>
<City> Solofra </City>
<Province> AV </Province>
<Country> Italia </Country>
<FiscalCode> 02720040647 </FiscalCode>
<VatCode> 02720040647 </VatCode>
</Company>
<Documents>
<Document>
<DocumentType> ORDER </DocumentType>
<DocumentDate> 29/03/2022 </DocumentDate>
<DocumentId> 1159 </DocumentId>
<DocumentStatusId> </DocumentStatusId>
<DocumentStatusMessage> Not started </DocumentStatusMessage>
<DocumentExportStatus> False </DocumentExportStatus>
<DocumentExportDate/>
<CustomerCode> 13964 </CustomerCode>
<CustomerName> Dynamicsoft SRL </CustomerName>
<CustomerAddress> Via Melito, 9, Centro ASI </CustomerAddress>
<CustomerPostcode> 83029 </CustomerPostcode>
<CustomerCity> Solofra </CustomerCity>
<CustomerProvince> AV </CustomerProvince>
<CustomerCountry> Italia </CustomerCountry>
<CustomerVatCode> 2720040647 </CustomerVatCode>
<CustomerFiscalCode> 2720040647 </CustomerFiscalCode>
<CustomerTel/>
<CustomerEmail> amministrazione@dynamicsoft.it </CustomerEmail>
<CustomerFirstName>Mario</CustomerFirstName>
<CustomerLastName>Rossi</CustomerLastName>
<Deliveries>
<Delivery>
<DeliveryRecipient> Dynamicsoft SRL </DeliveryRecipient>
<DeliveryAddress> via Londonio 9 </DeliveryAddress>
<DeliveryPostcode> 20131  </DeliveryPostcode>
<DeliveryCity> Milano </DeliveryCity>
<DeliveryProvince> MI </DeliveryProvince>
<DeliveryRecipientEmail> 334 000 00 000 </DeliveryRecipientEmail>
<DeliveryRecipientPhone> 0287388790 </DeliveryRecipientPhone>
<DeliveryRecipientMobile> 334 000 00 000 </DeliveryRecipientMobile>
<DeliveryType> Corriere standard </DeliveryType>
<DeliveryWeight> 7,77 </DeliveryWeight>
<DeliveryQuantity> 1000 </DeliveryQuantity>
<DeliveryPackages> </DeliveryPackages>
<DeliveryDate> 31/03/2022 </DeliveryDate>
<DeliveryItemDescription>
<![CDATA[ Jobname: Biglietti da visita 2022 Formato aperto: A5 cm Carta: Patinata Lucida Grammatura carta: 250 gr. Stampa fronte: 4 colori Stampa retro: 4 colori Rifilo: Si Stampa a caldo Stampa a caldo fronte Fustellatura Fustella personalizzata + fustellatura ]]>
</DeliveryItemDescription>
</Delivery>
</Deliveries>
<PaymentName> Paypal </PaymentName>
<PaymentDescription> aaaaa </PaymentDescription>
<DeliveryNetAmount> 0,00 </DeliveryNetAmount>
<PaymentNetAmount> 0,00 </PaymentNetAmount>
<RowsNetAmount> 28,41 </RowsNetAmount>
<OrderNetAmount> 28,41 </OrderNetAmount>
<OrderVatAmount> 6,25 </OrderVatAmount>
<OrderTotalAmount> 34,66 </OrderTotalAmount>
<OrderVatPercent> 22 </OrderVatPercent>
<Rows>
<Row>
<RowId> 9618 </RowId>
<RowUm> NR </RowUm>
<RowQuantity> 1000 </RowQuantity>
<RowJobname>
<![CDATA[ Biglietti da visita 2022 ]]>
</RowJobname>
<RowDescription>
<![CDATA[ Jobname: Biglietti da visita 2022 Formato aperto: A5 cm Carta: Patinata Lucida Grammatura carta: 250 gr. Stampa fronte: 4 colori Stampa retro: 4 colori Rifilo: Si Stampa a caldo Stampa a caldo fronte Fustellatura Fustella personalizzata + fustellatura ]]>
</RowDescription>
<RowWeight> 7,77 </RowWeight>
<RowProductionTimeEstimatedMinutes> 26 </RowProductionTimeEstimatedMinutes>
<RowDeliveryDate> 30/03/2022 </RowDeliveryDate>
<RowProductName>
<![CDATA[ ]]>
</RowProductName>
<RowProducId> 0> </RowProducId>
<RowCodeElement> 1000 </RowCodeElement>
<RowCodeAccounting> 1000 </RowCodeAccounting>
<RowCodeChartAccounting> 1000 </RowCodeChartAccounting>
<RowStatusId> </RowStatusId>
<RowStatusMessage> Not started </RowStatusMessage>
<RowUnitNetAmount> 0,02840986 </RowUnitNetAmount>
<RowtNetAmount> 28,41 </RowtNetAmount>
<RowVatAmount> 6,25 </RowVatAmount>
<RowTotalAmount> 34,66 </RowTotalAmount>
<RowCostAmount> 109,74 </RowCostAmount>
<RowVatPercent> 22 </RowVatPercent>
<RowVatDescription> Vendite con IVA al 22 </RowVatDescription>
<Elements>
<Element>
<ElementUm> NR </ElementUm>
<ElementQuantity> </ElementQuantity>
<ElementDescription>
<![CDATA[ AVVIAMENTO SOGGETTI ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> FM </ElementUm>
<ElementQuantity> 64 </ElementQuantity>
<ElementDescription>
<![CDATA[ CARTA - 64X88 PATINATA LUCIDA 250 gr. ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> 0,123904 </ElementUnitNetAmount>
<ElementtNetAmount> 7,929856 </ElementtNetAmount>
<ElementVatAmount> 1,74456832 </ElementVatAmount>
<ElementTotalAmount> 9,67442432 </ElementTotalAmount>
<ElementCostAmount> 7,94 </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> PS </ElementUm>
<ElementQuantity> 128 </ElementQuantity>
<ElementDescription>
<![CDATA[ STAMPA - FRONTE/RETRO - MC OFFSET 70X100 / 4+0 ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> PZ </ElementUm>
<ElementQuantity> </ElementQuantity>
<ElementDescription>
<![CDATA[ LASTRE - MC OFFSET 70X100 / 4+0 ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes/>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> 1,76 </ElementVatAmount>
<ElementTotalAmount> 9,76 </ElementTotalAmount>
<ElementCostAmount> 60 </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> NR </ElementUm>
<ElementQuantity> </ElementQuantity>
<ElementDescription>
<![CDATA[ AVVIAMENTO RETRO(GIROCARTA) ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> MIN </ElementUm>
<ElementQuantity> </ElementQuantity>
<ElementDescription>
<![CDATA[ Rifilo ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement> COD_ELEMENTO </ElementCodeElement>
<ElementCodeAccounting/>
<ElementCodeChartAccounting> COD_PIANO_CONTI </ElementCodeChartAccounting>
<ElementUnitNetAmount> 0,66666667 </ElementUnitNetAmount>
<ElementtNetAmount> 4,00000002 </ElementtNetAmount>
<ElementVatAmount> 0,88 </ElementVatAmount>
<ElementTotalAmount> 4,88000002 </ElementTotalAmount>
<ElementCostAmount> 2,2 </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> PS </ElementUm>
<ElementQuantity> 128 </ElementQuantity>
<ElementDescription>
<![CDATA[ LAVORAZIONE ACCESSORIA - STAMPA A CALDO STAMPA A CALDO FRONTE ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes/>
<ElementCodeElement> </ElementCodeElement>
<ElementCodeAccounting/>
<ElementCodeChartAccounting> </ElementCodeChartAccounting>
<ElementUnitNetAmount> 0,01 </ElementUnitNetAmount>
<ElementtNetAmount> 1,28 </ElementtNetAmount>
<ElementVatAmount> 0,2816 </ElementVatAmount>
<ElementTotalAmount> 1,5616 </ElementTotalAmount>
<ElementCostAmount> 25,6 </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> MIN </ElementUm>
<ElementQuantity> 23 </ElementQuantity>
<ElementDescription>
<![CDATA[ PRODUZIONE - LAVORAZIONE - LAVORAZIONE ACCESSORIA - STAMPA A CALDO STAMPA A CALDO FRONTE ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> 23 </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement> </ElementCodeElement>
<ElementCodeAccounting/>
<ElementCodeChartAccounting> </ElementCodeChartAccounting>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> MIN </ElementUm>
<ElementQuantity> </ElementQuantity>
<ElementDescription>
<![CDATA[ PRODUZIONE - UOMO - LAVORAZIONE ACCESSORIA - STAMPA A CALDO STAMPA A CALDO FRONTE ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement> </ElementCodeElement>
<ElementCodeAccounting/>
<ElementCodeChartAccounting> </ElementCodeChartAccounting>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> FM </ElementUm>
<ElementQuantity> 64 </ElementQuantity>
<ElementDescription>
<![CDATA[ LAVORAZIONE ACCESSORIA - FUSTELLATURA FUSTELLA PERSONALIZZATA + FUSTELLATURA ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes/>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> 0,075 </ElementUnitNetAmount>
<ElementtNetAmount> 4,8 </ElementtNetAmount>
<ElementVatAmount> 1,056 </ElementVatAmount>
<ElementTotalAmount> 5,856 </ElementTotalAmount>
<ElementCostAmount> 12,8 </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> KG </ElementUm>
<ElementQuantity> 0,02 </ElementQuantity>
<ElementDescription>
<![CDATA[ INCHIOSTRO - NERO (FRONTE/RETRO) ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> KG </ElementUm>
<ElementQuantity> 0,02 </ElementQuantity>
<ElementDescription>
<![CDATA[ INCHIOSTRO - CIANO (FRONTE/RETRO) ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> KG </ElementUm>
<ElementQuantity> 0,02 </ElementQuantity>
<ElementDescription>
<![CDATA[ INCHIOSTRO - MAGENTA (FRONTE/RETRO) ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> KG </ElementUm>
<ElementQuantity> 0,02 </ElementQuantity>
<ElementDescription>
<![CDATA[ INCHIOSTRO - GIALLO (FRONTE/RETRO) ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> </ElementUnitNetAmount>
<ElementtNetAmount> </ElementtNetAmount>
<ElementVatAmount> </ElementVatAmount>
<ElementTotalAmount> </ElementTotalAmount>
<ElementCostAmount> </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
<Element>
<ElementUm> PZ </ElementUm>
<ElementQuantity> </ElementQuantity>
<ElementDescription>
<![CDATA[ IMBALLO - SCATOLA PICCOLA ]]>
</ElementDescription>
<ElementProductionTimeEstimatedMinutes> </ElementProductionTimeEstimatedMinutes>
<ElementCodeElement/>
<ElementCodeAccounting/>
<ElementCodeChartAccounting/>
<ElementUnitNetAmount> 0,3 </ElementUnitNetAmount>
<ElementtNetAmount> 2,4 </ElementtNetAmount>
<ElementVatAmount> 0,528 </ElementVatAmount>
<ElementTotalAmount> 2,928 </ElementTotalAmount>
<ElementCostAmount> 1,2 </ElementCostAmount>
<ElementVatPercent> 22 </ElementVatPercent>
</Element>
</Elements>
</Row>
</Rows>
</Document>
</Documents>
</WscPrinterXmlApi>



Update stato esportazione ordine - Parametri


Parametri in GetDescrizioneValori in Get
opDescrive il tipo di operazioneup  = operazione di update
doc_idDescrive il documento id su cui eseguire l'operazione di updateid ordine (intero) 


Update stato esportazione ordine - Documento XML di risposta


<WscPrinterXmlApi>
<Document>
<DocumentImportedStatus>true</DocumentImportedStatus>
</Document>
</WscPrinterXmlApi>






    • Related Articles

    • XML RPC API - Introduzione

      Comprendere l'API RPC XML Wsc Printer fornisce API di dati RPC che consentono ad applicazioni e software esterni di interfacciarsi con la piattaforma.  ll modello attuale prevede una richiesta di tipo GET o POST e restituisce un documento XML. URL ...
    • XML RPC API - Anagrafiche clienti

      XML RPC API - Anagrafica clienti Informazioni in merito all'utilizzo delle XML RPC API per le anagrafiche clienti HTTP Method POST Messaggi di errore Codice errore Descrizione messaggio 1001 Get parameter not valid or missing Parametri inserimento e ...