Success
Bad Request
Server Error
{- "productName": "string",
- "description": "string",
- "sku": "string",
- "unitPrice": 0,
- "unitTypeId": 0,
- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "taxRate": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
Success
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "unitType": "string",
- "unitTypeId": 0,
- "productName": "string",
- "description": "string",
- "sku": "string",
- "unitPrice": 0,
- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "categoryName": "string",
- "categoryDefaultUnitTypeId": 0
}
], - "total": 0
}
The line item update request.
Success
Bad Request
Not Found
Server Error
{- "productName": "string",
- "description": "string",
- "sku": "string",
- "unitPrice": 0,
- "unitTypeId": 0,
- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "taxRate": 0
}
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}
No Content
Not Found
Server Error
{- "details": "Not found Id 'b31fbe9f-eebb-45ce-9cae-92265389f47f' with type='<Service>.DataAccess.Entities.<Model>Entity'",
- "statusCode": 404,
- "source": "<Service>",
- "exceptionType": "Exceptions.NotFoundException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}