POST api/{lang}/Supplier/Post
Crea en la base el proveedor recibido.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lang | string |
None. |
Body Parameters
ViewModel del proveedor a crear
SupplierViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Number | integer |
None. |
|
| MainAddress | AddressViewModel |
Required |
|
| Id | string |
None. |
|
| Active | boolean |
None. |
|
| CellphoneNumber | string |
None. |
|
| ContactIds | Collection of string |
None. |
|
| SecondaryAddresses | Collection of AddressViewModel |
None. |
|
| IsWMSIntegrated | boolean |
None. |
|
| WarehouseClientId | string |
None. |
|
| BusinessName | string |
Required Matching regular expression pattern: ^[a-zA-ZáéíóúñÁÉÍÓÚÑ0-9 .]+$ |
|
| FantasyName | string |
None. |
|
| PhoneNumber | string |
None. |
|
| DocumentNumber | string |
Matching regular expression pattern: ^\d*$ |
|
| DocumentTypeId | string |
None. |
|
| MainAddress | BaseAddressViewModel |
None. |
|
| DeliveryAddress | BaseAddressViewModel |
None. |
|
| string |
None. |
||
| IsDownPaymentRequired | boolean |
None. |
|
| DownPaymentPercentage | decimal number |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
De ser exitosa la creación retorna 200. De lo contrario retorna 400
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.