Needio.Services

<back to all web services

AddOrUpdateJobsRequest

Requires Authentication
The following routes are available for this service:
All Verbs/XmlJob/AddOrUpdateJobs/
AddOrUpdateJobsRequest Parameters:
NameParameterData TypeRequiredDescription
XmlJobDtoqueryXmlJobsDtoNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
XmlJobsDto Parameters:
NameParameterData TypeRequiredDescription
XmlJobIdformintNo
UserIdformintNo
StoreIdformintNo
FileUrlformstringNo
FileTypeformFileTypesNo
XmlPostTemplateIdformintNo
ParametersformXMLStoreParametersModelNo
UpdateParametersformstringNo
CronExpressionformstringNo
JobTypeformJobTypesNo
LastRunDateformDateTime?No
ActiveYnformboolNo
StoreformStoreInfoNo
FileTypes Enum:
NameValue
None0
Xml1
Url2
XMLStoreParametersModel Parameters:
NameParameterData TypeRequiredDescription
XMLPostFieldMatchesJsonformstringNo
XMLPostFieldMatchesformXMLPostFieldMatchesModelNo
XMLCategoryMatchesformList<XMLCategoryMatchModel>No
XMLAttributeMatchesformList<XMLAttributeMatchModel>No
XMLDefaultValuesformList<XMLDefaultValues>No
XMLFiltersformList<XMLFilter>No
XMLPostFieldMatchesModel Parameters:
NameParameterData TypeRequiredDescription
RootProductIdformstringNo
JQueryCategoryNodeformstringNo
PostNodeNameformstringNo
PostSourceIdformstringNo
PostNameformstringNo
PostHeaderformstringNo
SummaryformstringNo
DescriptionformstringNo
MaxDeliveryDayformstringNo
BrandKeyformstringNo
BrandNameformstringNo
CategoreyKeyformstringNo
CategoreyNameformstringNo
InStockformstringNo
StockCodeformstringNo
EanCodeformstringNo
PostAttributesNodeNameformstringNo
PostAttributesNodeAttributeNameformstringNo
PostAttributesNodeAttributeValueformstringNo
PostVariantsNodeNameformstringNo
PostVariantsAttributeNodeformstringNo
PostVariantsAttributeNodeNameformstringNo
PostVariantsAttributeNodeValueformstringNo
PostVariantsVariantSourceIdformstringNo
PostVariantsVariantKey1formstringNo
PostVariantsVariantValue1formstringNo
PostVariantsVariantKey2formstringNo
PostVariantsVariantValue2formstringNo
PostVariantsVariantKey3formstringNo
PostVariantsVariantValue3formstringNo
PostVariantsVariantKey4formstringNo
PostVariantsVariantValue4formstringNo
PostVariantsVariantStockCodeformstringNo
PostVariantsVariantImageUrlformstringNo
PostVariantsVariantListPriceformstringNo
PostVariantsVariantSalePriceformstringNo
PostVariantsVariantOverridenPriceformstringNo
PostVariantsVariantEanCodeformstringNo
PostVariantsVariantQuantityformstringNo
PostMediasNodeNameformstringNo
PostMediasMediaUrlformstringNo
PostMediasMediaTypeformstringNo
ListPriceformstringNo
SalePriceformstringNo
TaxformstringNo
PriceTypeformstringNo
DiscountTypeformstringNo
DiscountBeginDateformstringNo
DiscountEndDateformstringNo
XMLCategoryMatchModel Parameters:
NameParameterData TypeRequiredDescription
SourceCategoryNameformstringNo
CategoryKeyformstringNo
CategoryIdformint?No
CategoryNameformstringNo
XMLAttributeMatchModel Parameters:
NameParameterData TypeRequiredDescription
SourceNameformstringNo
NeedionKeyformintNo
LabelTextformstringNo
XMLDefaultValues Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
XMLFilter Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ConditionformXMLFilterConditionsNo
ValueformstringNo
XMLFilterConditions Enum:
NameValue
Equals1
NotEquals2
JobTypes Enum:
NameValue
None0
ForOnce1
Schedule2
StoreInfo Parameters:
NameParameterData TypeRequiredDescription
StoreIdformintNo
StoreNameformstringNo
StoreHeaderformstringNo
DescriptionformstringNo
PostTypeIdformshortNo
FriendlyURLformstringNo
StoreCategory1Idformshort?No
StoreSubCategory1Idformshort?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /XmlJob/AddOrUpdateJobs/ HTTP/1.1 
Host: baseservices.needion.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"XmlJobDto":{"XmlJobId":0,"UserId":0,"StoreId":0,"FileUrl":"String","FileType":0,"XmlPostTemplateId":0,"Parameters":{"XMLPostFieldMatchesJson":"{\"RootProductId\":\"String\",\"JQueryCategoryNode\":\"String\",\"PostNodeName\":\"String\",\"PostSourceId\":\"String\",\"PostName\":\"String\",\"PostHeader\":\"String\",\"Summary\":\"String\",\"Description\":\"String\",\"MaxDeliveryDay\":\"String\",\"BrandKey\":\"String\",\"BrandName\":\"String\",\"CategoreyKey\":\"String\",\"CategoreyName\":\"String\",\"InStock\":\"String\",\"StockCode\":\"String\",\"EanCode\":\"String\",\"PostAttributesNodeName\":\"String\",\"PostAttributesNodeAttributeName\":\"String\",\"PostAttributesNodeAttributeValue\":\"String\",\"PostVariantsNodeName\":\"String\",\"PostVariantsAttributeNode\":\"String\",\"PostVariantsAttributeNodeName\":\"String\",\"PostVariantsAttributeNodeValue\":\"String\",\"PostVariantsVariantSourceId\":\"String\",\"PostVariantsVariantKey1\":\"String\",\"PostVariantsVariantValue1\":\"String\",\"PostVariantsVariantKey2\":\"String\",\"PostVariantsVariantValue2\":\"String\",\"PostVariantsVariantKey3\":\"String\",\"PostVariantsVariantValue3\":\"String\",\"PostVariantsVariantKey4\":\"String\",\"PostVariantsVariantValue4\":\"String\",\"PostVariantsVariantStockCode\":\"String\",\"PostVariantsVariantImageUrl\":\"String\",\"PostVariantsVariantListPrice\":\"String\",\"PostVariantsVariantSalePrice\":\"String\",\"PostVariantsVariantOverridenPrice\":\"String\",\"PostVariantsVariantEanCode\":\"String\",\"PostVariantsVariantQuantity\":\"String\",\"PostMediasNodeName\":\"String\",\"PostMediasMediaUrl\":\"String\",\"PostMediasMediaType\":\"String\",\"ListPrice\":\"String\",\"SalePrice\":\"String\",\"Tax\":\"String\",\"PriceType\":\"String\",\"DiscountType\":\"String\",\"DiscountBeginDate\":\"String\",\"DiscountEndDate\":\"String\"}","XMLPostFieldMatches":{"RootProductId":"String","JQueryCategoryNode":"String","PostNodeName":"String","PostSourceId":"String","PostName":"String","PostHeader":"String","Summary":"String","Description":"String","MaxDeliveryDay":"String","BrandKey":"String","BrandName":"String","CategoreyKey":"String","CategoreyName":"String","InStock":"String","StockCode":"String","EanCode":"String","PostAttributesNodeName":"String","PostAttributesNodeAttributeName":"String","PostAttributesNodeAttributeValue":"String","PostVariantsNodeName":"String","PostVariantsAttributeNode":"String","PostVariantsAttributeNodeName":"String","PostVariantsAttributeNodeValue":"String","PostVariantsVariantSourceId":"String","PostVariantsVariantKey1":"String","PostVariantsVariantValue1":"String","PostVariantsVariantKey2":"String","PostVariantsVariantValue2":"String","PostVariantsVariantKey3":"String","PostVariantsVariantValue3":"String","PostVariantsVariantKey4":"String","PostVariantsVariantValue4":"String","PostVariantsVariantStockCode":"String","PostVariantsVariantImageUrl":"String","PostVariantsVariantListPrice":"String","PostVariantsVariantSalePrice":"String","PostVariantsVariantOverridenPrice":"String","PostVariantsVariantEanCode":"String","PostVariantsVariantQuantity":"String","PostMediasNodeName":"String","PostMediasMediaUrl":"String","PostMediasMediaType":"String","ListPrice":"String","SalePrice":"String","Tax":"String","PriceType":"String","DiscountType":"String","DiscountBeginDate":"String","DiscountEndDate":"String"},"XMLCategoryMatches":[{"SourceCategoryName":"String","CategoryKey":"String","CategoryId":0,"CategoryName":"String"}],"XMLAttributeMatches":[{"SourceName":"String","NeedionKey":0,"LabelText":"String"}],"XMLDefaultValues":[{"Name":"String","Value":"String"}],"XMLFilters":[{"Name":"String","Condition":1,"Value":"String"}]},"UpdateParameters":"String","CronExpression":"String","JobType":0,"LastRunDate":"\/Date(-62135596800000-0000)\/","ActiveYn":false,"Store":{"StoreId":0,"StoreName":"String","StoreHeader":"String","Description":"String","PostTypeId":0,"FriendlyURL":"String","StoreCategory1Id":0,"StoreSubCategory1Id":0}},"start":"\/Date(1638100522150+0300)\/","DeviceUUID":"String","APIKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"},"PageInfo":{"TotalRecordCount":0,"TotalPageCount":0,"CurrentPage":0}}