POST Products
Add a new product for the Issuer
Request Information
URI Parameters
None.
Body Parameters
object that contains a new product data
ProductRequestModelName | Description | Type | Additional information |
---|---|---|---|
MainCode |
Codigo Principal |
string |
Required String length: inclusive between 0 and 500 |
AuxCode |
Codigo auxiliar |
string |
String length: inclusive between 0 and 500 |
Name |
Nombre del producto |
string |
Required String length: inclusive between 0 and 500 |
UnitPrice |
Precio unitario |
decimal number |
Required |
ProductTypeId |
Tipo de producto. |
integer |
Required |
IvaRateId |
Tarifa del Iva para el producto |
integer |
Required |
IceRateId |
Tarifa del ICE para el producto |
integer |
None. |
IsEnabled |
Esta habilitado? |
boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "MainCode": "sample string 1", "AuxCode": "sample string 2", "Name": "sample string 3", "UnitPrice": 4.0, "ProductTypeId": 5, "IvaRateId": 6, "IceRateId": 7, "IsEnabled": true }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Return a HttpResponseMessage response
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |