¿En qué podemos ayudarte?
< Todos los temas
Imprimir

SetWorkOrder (method)

Save the work order and returns the identifier with which he has recorded.


Comments


Definition


JSON

/json/SetWorkOrder/{Token}


Using POST to send list of data in WorkOrder format


Parameters

>
ParameterDescription
TokenAuthentication code, see more in GetToken (method)
DataA structure containing the work order information to be generated, see more in WorkOrder (class)


Example JSON

http://test.aliquosoftware.net/aliquoserver/api.svc/json/SetWorkOrder/_PutTokenHere_

{
   "ContactAddress": "C/ Arquimedes, 4",
   "ContactCity": "MADRID",
   "ContactPhone1": "917100634",
   "CustomerCode": "12345",
   "Description": "Reparación del equipo",
   "StartDate": "/Date(1529272800000+0200)/",
   "StartTime": "/Date(-62135564400000+0100)/",
   "EndDate": "/Date(1529272800000+0200)/",
   "EndTime": "/Date(-62135557200000+0100)/",
   "IsBillable": true,
   "Products": [
     {
       "Code": ".",
       "Date": "/Date(1529272800000+0200)/",
       "DocumentTypeToGenerate": 2,
       "EmployeeCode": "E002",
       "Name": "Fuente de alimentación",
       "Price": 12,
       "Quantity": 1,
       "StoreCode": "001"
     }
   ],
   "Teams": [
     {
       "Employees": [
         {
           "Code": "E002",
           "EndDate": "/Date(1529272800000+0200)/",
           "EndTime": "/Date(-62135557200000+0100)/",
           "StartDate": "/Date(1529272800000+0200)/",
           "StartTime": "/Date(-62135564400000+0100)/"
         }
       ]
     }
   ]
 }
Tabla de contenidos