POST api/SupplierType
Crear supplierType
Request Information
URI Parameters
None.
Body Parameters
SupplierTypeInfoModelApiName | Description | Type | Additional information |
---|---|---|---|
PayerId |
Quien paga |
Payer |
Required |
MaxSuppliers |
Maximo de proveedores |
integer |
Required |
CrmPriceList |
Lista de precio de CRM |
string |
None. |
MaxTransactions |
Máximo de transacciones |
integer |
Required |
MaxAmount |
Monto máximo |
decimal number |
Required |
SourcePackageCode |
Paquete origen |
string |
Required |
TargetPackageCode |
Paquete destino |
string |
Required |
ValidationTypeId |
Tipo de validacion |
ValidationType |
Required |
ValidationPeriodId |
Periodo de validacion |
ValidationPeriod |
Required |
Group |
Grupo |
string |
Required |
SubGroup |
SubGrupo |
string |
Required |
Epo |
Epo |
string |
Required |
SupplierType |
SupplierType |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "PayerId": 1, "MaxSuppliers": 1, "CrmPriceList": "sample string 2", "MaxTransactions": 3, "MaxAmount": 4.0, "SourcePackageCode": "sample string 5", "TargetPackageCode": "sample string 6", "ValidationTypeId": 1, "ValidationPeriodId": 1, "Group": "sample string 7", "SubGroup": "sample string 8", "Epo": "sample string 9", "SupplierType": "sample string 10" }
application/xml, text/xml
Sample:
<SupplierTypeInfoModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Group>sample string 7</Group> <SubGroup>sample string 8</SubGroup> <Epo>sample string 9</Epo> <SupplierType>sample string 10</SupplierType> <PayerId>Epo</PayerId> <MaxSuppliers>1</MaxSuppliers> <CrmPriceList>sample string 2</CrmPriceList> <MaxTransactions>3</MaxTransactions> <MaxAmount>4</MaxAmount> <SourcePackageCode>sample string 5</SourcePackageCode> <TargetPackageCode>sample string 6</TargetPackageCode> <ValidationTypeId>And</ValidationTypeId> <ValidationPeriodId>Monthly</ValidationPeriodId> </SupplierTypeInfoModelApi>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseModelApiOfInt32Name | Description | Type | Additional information |
---|---|---|---|
success |
Indica si la solicitud se procesó de manera satisfactoria |
boolean |
None. |
message |
Mensaje de la solicitud |
string |
None. |
messageDetail |
Lista de mensajes |
Collection of string |
None. |
failureCode |
Código de error en caso de existir |
string |
None. |
data |
Layout de respuesta de la solicitud |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "message": "sample string 2", "messageDetail": [ "sample string 1", "sample string 2" ], "failureCode": "sample string 3", "data": 4 }
application/xml, text/xml
Sample:
<ResponseModelApiOfInt32 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <success>true</success> <message>sample string 2</message> <messageDetail> <string>sample string 1</string> <string>sample string 2</string> </messageDetail> <failureCode>sample string 3</failureCode> <data>4</data> </ResponseModelApiOfInt32>