Navigation:  Integration via REST web services > Published web services > Supply >

INSUPP

Previous  Top  Next

This method enables to insert/edit the supply x supplier association.

 

To add/edit each of these items, the standard documented below must be followed.

WADL URL

http://<domain>/softexpert/webserviceproxy/se/generic/gn_webservice/gn_webservice_execute.php

 

Constants

ID #

Required

Description

cdprod

X

149

classname

X

supplierproviderimport

classpath

X

sp_import

 

Request

ID #

Required

Description

idobject

X

Supply ID #.

idcommercial

X1

Supplier company ID.

nmcompany

X1

Supplier company name.

idcompany

X2

Supplier ID #.

idinputsupp

X

Supply reference in the supplier.

dsinputsupp

X

Description of the supply in the supplier.

Vlcost

 

Cost.

fgdefault

 

1 - Defines that the supplier is preferential.

2 - Defines that it is NOT preferential.

 

When inserting, for a blank value or any other value different from 1, the record will be defined as 2.

When editing, if a blank or any other value different from 1 and 2 is entered, the field will not be changed, it will keep the value previously set.

 

X1 - Field required if the "Supplier ID #" is empty.

X2 - Field required if “Company ID” and/or “Company name” are empty.

 

JSON input example for the insertion/edition of the supply x supplier association:

{

    "idobject": "string",

    "idcommercial": "string",

    "nmcompany": "string",

    "idcompany": "string",

    "idinputsupp": "string",

    "dsinputsupp": "string",

    "vlcost":  "string",

    "fgdefault": "string"

}

 

JSON example generated at the output of the supply x supplier association insertion/edition:

{

   "success": true,

   "total": 1,

   "results": [

       {

           "Result": true,

           "Code": 1

       }

   ]

}

 

Return

ID #

Description

Result

It will return true in case of success; in case of failure, it will return a message describing the error.

Code

Method execution status:

-1: An error occurred in the execution of the method.

1: Method executed successfully.