POST api/Product/{GrantorTaxId}
Agregar uno o mas productos
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
GrantorTaxId |
RFC del grantor |
string |
Required |
Body Parameters
modelo de productos
ProductsAddApiModelName | Description | Type | Additional information |
---|---|---|---|
Products |
Lista de productos a insertar |
Collection of ProductAddModelApi |
None. |
Request Formats
application/json, text/json
Sample:
{ "Products": [ { "ProductId": 1, "SatProductCode": "sample string 2", "SKUCode": "sample string 3", "Description": "sample string 4", "OriginalDescription": "sample string 5", "BuyUnitCode": "sample string 6", "SellUnitCode": "sample string 7", "Price": 8.0, "Currency": "sample string 9", "TaxConfigurations": [ { "TaxCodeOrigin": "sample string 1", "TaxOriginType": "sample string 2", "TaxFactorType": "sample string 3", "TaxRateValue": 4.0 }, { "TaxCodeOrigin": "sample string 1", "TaxOriginType": "sample string 2", "TaxFactorType": "sample string 3", "TaxRateValue": 4.0 } ] }, { "ProductId": 1, "SatProductCode": "sample string 2", "SKUCode": "sample string 3", "Description": "sample string 4", "OriginalDescription": "sample string 5", "BuyUnitCode": "sample string 6", "SellUnitCode": "sample string 7", "Price": 8.0, "Currency": "sample string 9", "TaxConfigurations": [ { "TaxCodeOrigin": "sample string 1", "TaxOriginType": "sample string 2", "TaxFactorType": "sample string 3", "TaxRateValue": 4.0 }, { "TaxCodeOrigin": "sample string 1", "TaxOriginType": "sample string 2", "TaxFactorType": "sample string 3", "TaxRateValue": 4.0 } ] } ] }
application/xml, text/xml
Sample:
<ProductsAddApiModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Products> <ProductAddModelApi> <ProductId>1</ProductId> <SatProductCode>sample string 2</SatProductCode> <SKUCode>sample string 3</SKUCode> <Description>sample string 4</Description> <OriginalDescription>sample string 5</OriginalDescription> <BuyUnitCode>sample string 6</BuyUnitCode> <SellUnitCode>sample string 7</SellUnitCode> <Price>8</Price> <Currency>sample string 9</Currency> <TaxConfigurations> <TaxConfigurationProducAddModelApi> <TaxCodeOrigin>sample string 1</TaxCodeOrigin> <TaxOriginType>sample string 2</TaxOriginType> <TaxFactorType>sample string 3</TaxFactorType> <TaxRateValue>4</TaxRateValue> </TaxConfigurationProducAddModelApi> <TaxConfigurationProducAddModelApi> <TaxCodeOrigin>sample string 1</TaxCodeOrigin> <TaxOriginType>sample string 2</TaxOriginType> <TaxFactorType>sample string 3</TaxFactorType> <TaxRateValue>4</TaxRateValue> </TaxConfigurationProducAddModelApi> </TaxConfigurations> </ProductAddModelApi> <ProductAddModelApi> <ProductId>1</ProductId> <SatProductCode>sample string 2</SatProductCode> <SKUCode>sample string 3</SKUCode> <Description>sample string 4</Description> <OriginalDescription>sample string 5</OriginalDescription> <BuyUnitCode>sample string 6</BuyUnitCode> <SellUnitCode>sample string 7</SellUnitCode> <Price>8</Price> <Currency>sample string 9</Currency> <TaxConfigurations> <TaxConfigurationProducAddModelApi> <TaxCodeOrigin>sample string 1</TaxCodeOrigin> <TaxOriginType>sample string 2</TaxOriginType> <TaxFactorType>sample string 3</TaxFactorType> <TaxRateValue>4</TaxRateValue> </TaxConfigurationProducAddModelApi> <TaxConfigurationProducAddModelApi> <TaxCodeOrigin>sample string 1</TaxCodeOrigin> <TaxOriginType>sample string 2</TaxOriginType> <TaxFactorType>sample string 3</TaxFactorType> <TaxRateValue>4</TaxRateValue> </TaxConfigurationProducAddModelApi> </TaxConfigurations> </ProductAddModelApi> </Products> </ProductsAddApiModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
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. |