Hi,
So I've created a parser in C# that gets prices, stock on hand and other info from one of our distributors.
The products are created manually in EspoCRM then mapped via ID in my parser.
The problem I'm facing is that if I don't set Cost price field to 0 I get an validation error.
Endpoint
Payload
{
"url": "https://domain.com/p/powerwalker-vi-2200-lcd-ups-1200watt-2200va-988850910",
"costPrice": 150.35,
"weight": 12.16,
"status": "Available",
"cStockOnHand": 2,
"cEanCode": "4260074976502"
}
Error
{
"messageTranslation": {
"label": "validationFailure",
"scope": null,
"data": {
"field": "costPrice",
"type": "validCurrency"
}
}
}
Now I know how to work around it by setting the initial price to zero. Just wondering if it's the intended behaviour.
So I've created a parser in C# that gets prices, stock on hand and other info from one of our distributors.
The products are created manually in EspoCRM then mapped via ID in my parser.
The problem I'm facing is that if I don't set Cost price field to 0 I get an validation error.
Endpoint
Payload
{
"url": "https://domain.com/p/powerwalker-vi-2200-lcd-ups-1200watt-2200va-988850910",
"costPrice": 150.35,
"weight": 12.16,
"status": "Available",
"cStockOnHand": 2,
"cEanCode": "4260074976502"
}
Error
{
"messageTranslation": {
"label": "validationFailure",
"scope": null,
"data": {
"field": "costPrice",
"type": "validCurrency"
}
}
}
Now I know how to work around it by setting the initial price to zero. Just wondering if it's the intended behaviour.
Comment