curl -X POST \
-H "Accept: application/json,text/json,application/xml,text/xml" \
-H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
"https://api.dev.spenda.co/api/ScheduledTasks/" \
-d '{
"Status" : "Status",
"TimeOfDay" : "2000-01-23T04:56:07.000+00:00",
"IsEnabled" : true,
"IsActive" : true,
"IntervalType" : 5,
"TaskTypeID" : 6,
"RecurrenceType" : 8,
"DatTypeFriendlyName" : "DatTypeFriendlyName",
"NameFriendlyName" : "NameFriendlyName",
"DocumentID" : 1,
"DatTypeID" : 3,
"WorkflowID" : 0,
"Name" : "Name",
"IsRecurringSchedule" : true,
"IDs" : [ 2, 2 ],
"AdaptorDetails" : {
"Description" : "Description",
"AdaptorCategory" : 7,
"IsActive" : true,
"IsAuthorized" : true,
"DefaultInventoryClass" : {
"Description" : "Description",
"IsApprovedForWeb" : true,
"IsApprovedForPOS" : true,
"SalesPostingInventoryRevenueAccountCode" : "SalesPostingInventoryRevenueAccountCode",
"IsActive" : true,
"CountOfProducts" : 4,
"SalesPostingInventoryExpenseAccountCode" : "SalesPostingInventoryExpenseAccountCode",
"SalesPostingInventoryCode" : "SalesPostingInventoryCode",
"Name" : "Name",
"GUIDstring" : "GUIDstring",
"SalesPostingInventoryID" : 3,
"SalesPostingInventoryName" : "SalesPostingInventoryName",
"Version" : 6.704019297950036,
"SyncLogs" : [ {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 3,
"LastImportDateTime_offset" : 7,
"LastExportDateTime_offset" : 5,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 3,
"ID" : 3,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
}, {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 3,
"LastImportDateTime_offset" : 7,
"LastExportDateTime_offset" : 5,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 3,
"ID" : 3,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
} ],
"CreatedWith" : "CreatedWith",
"ServicePostingInventoryID" : 7,
"InventoryClassGroup" : {
"IsDefault" : true,
"Description" : "Description",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Name" : "Name",
"GUIDstring" : "GUIDstring",
"SupplierID" : 0,
"InventoryClasses" : [ null, null ],
"RowNumber" : 0,
"BSID" : "BSID",
"Version" : 7.058770351582356,
"CreatedWith" : "CreatedWith",
"IsSystem" : true,
"ID" : 6,
"InventoryClassGroupType" : {
"IsDefault" : true,
"Description" : "Description",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Name" : "Name",
"GUIDstring" : "GUIDstring",
"IsGeneric" : true,
"RowNumber" : 4,
"BSID" : "BSID",
"Version" : 8.969578798196912,
"CreatedWith" : "CreatedWith",
"IsSystem" : true,
"ID" : 7,
"InventoryClassGroups" : [ null, null ]
}
},
"ID" : 3,
"PostingBehaviour" : "PostingBehaviour",
"ServicePostingInventoryCode" : "ServicePostingInventoryCode",
"ServicePostingInventoryExpenseAccountCode" : "ServicePostingInventoryExpenseAccountCode",
"ModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"GUID" : "00000000-0000-0000-0000-000000000000",
"RowNumber" : 5,
"BSID" : "BSID",
"IsAutoCreateGenericAccountInventory" : true,
"CreatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"ServicePostingInventoryRevenueAccountCode" : "ServicePostingInventoryRevenueAccountCode",
"IsSystem" : true,
"IsApprovedForService" : true,
"ServicePostingInventoryName" : "ServicePostingInventoryName"
},
"TranslatorDetails" : [ {
"WebsiteID" : 1,
"Description" : "Description",
"IsEnabled" : true,
"IsActive" : true,
"MasterAdaptorID" : 7,
"AdaptorID" : 1,
"IsUsedByTenant" : true,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"IconURL" : "IconURL",
"IsSource" : true,
"TenantID" : 1,
"Version" : "Version",
"UserID" : 6,
"ID" : 2,
"MasterTranslatorID" : 4,
"TranslationDefinition" : "TranslationDefinition",
"IsTarget" : true
}, {
"WebsiteID" : 1,
"Description" : "Description",
"IsEnabled" : true,
"IsActive" : true,
"MasterAdaptorID" : 7,
"AdaptorID" : 1,
"IsUsedByTenant" : true,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"IconURL" : "IconURL",
"IsSource" : true,
"TenantID" : 1,
"Version" : "Version",
"UserID" : 6,
"ID" : 2,
"MasterTranslatorID" : 4,
"TranslationDefinition" : "TranslationDefinition",
"IsTarget" : true
} ],
"Name" : "Name",
"TokenDetails" : {
"HasExpired" : true,
"TokenSecret" : "TokenSecret",
"TokenKey" : "TokenKey",
"OrgName" : "OrgName",
"Verifier" : "Verifier",
"Provider" : "Provider",
"OrgID" : "OrgID",
"HasSessionExpired" : true,
"Username" : "Username",
"ConsumerKey" : "ConsumerKey",
"UserAgent" : "UserAgent",
"ConsumerSecret" : "ConsumerSecret",
"SessionExpiresAt" : "2000-01-23T04:56:07.000+00:00",
"ExpiresAt" : "2000-01-23T04:56:07.000+00:00",
"Session" : "Session"
},
"IsSource" : true,
"TenantID" : 5,
"Version" : "Version",
"UserID" : 6,
"OrganisationName" : "OrganisationName",
"FullIconUrl" : "FullIconUrl",
"ID" : 7,
"WebsiteID" : 4,
"DefaultCustomerClass" : {
"HasBeenSaved" : true,
"CountOfCustomers" : 9,
"IsAccountCustomerBatched" : true,
"Description" : "Description",
"IsApprovedForWeb" : true,
"IsApprovedForPOS" : true,
"IsActive" : true,
"BatchInvoiceFrequencyDays" : 4,
"BatchInvoicePrefix" : "BatchInvoicePrefix",
"Name" : "Name",
"GUIDstring" : "GUIDstring",
"IsAutoApprovedforClaimRequests" : true,
"IsAutoSendPayByLinkInvoice" : true,
"TradingTermDays" : 7,
"DefaultPricingBandID" : 0,
"ID" : 6,
"PostingBehaviour" : "PostingBehaviour",
"IsCanSetFundingRate" : true,
"CreditLimit" : 4.678947989005849,
"LoyaltyDescription" : "LoyaltyDescription",
"GUID" : "00000000-0000-0000-0000-000000000000",
"GenericAccountCustomerID" : 1,
"TradingTermID" : 9,
"IsLoyaltyEligible" : true,
"IsBatchInvoice" : true,
"GenericAccountCustomerName" : "GenericAccountCustomerName",
"AccountCustomerRefNumberPrefix" : "AccountCustomerRefNumberPrefix",
"IsExemptFromMerchantSurcharge" : true,
"FundingRate" : 0.2025324113236393,
"IsAutoCreateGenericAccountCustomer" : true,
"BSID" : "BSID",
"IsSystem" : true,
"IsApprovedForService" : true,
"TradingTermType" : "TradingTermType",
"PrimaryOperationalCustomer" : {
"IsIndividual" : true,
"CompanyName" : "CompanyName",
"PrimaryContactFullName" : "PrimaryContactFullName",
"CustomerID" : 0
}
},
"Messages" : [ "Messages", "Messages" ],
"Actions" : [ {
"WebsiteID" : 6,
"Action" : "Action",
"Description" : "Description",
"IsActive" : true,
"AdaptorID" : 1,
"TriggerXML" : "TriggerXML",
"TranslatorActionDetails" : [ {
"WebsiteID" : 6,
"Action" : "Action",
"Description" : "Description",
"IsEnabled" : true,
"IsActive" : true,
"DatTypeID" : 9,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"RefDatTypeID" : 6,
"TenantID" : 3,
"UserID" : 1,
"TranslatorID" : 6,
"AdaptorActionID" : 8,
"ID" : 9,
"TranslationDefinition" : "TranslationDefinition"
}, {
"WebsiteID" : 6,
"Action" : "Action",
"Description" : "Description",
"IsEnabled" : true,
"IsActive" : true,
"DatTypeID" : 9,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"RefDatTypeID" : 6,
"TenantID" : 3,
"UserID" : 1,
"TranslatorID" : 6,
"AdaptorActionID" : 8,
"ID" : 9,
"TranslationDefinition" : "TranslationDefinition"
} ],
"DatTypeID" : 4,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"LastExecDateTime" : "2000-01-23T04:56:07.000+00:00",
"RefDatTypeID" : 5,
"TenantID" : 2,
"UserID" : 6,
"LastExecUserID" : 9,
"LastExecDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"ID" : 7,
"IsAutoQueue" : true
}, {
"WebsiteID" : 6,
"Action" : "Action",
"Description" : "Description",
"IsActive" : true,
"AdaptorID" : 1,
"TriggerXML" : "TriggerXML",
"TranslatorActionDetails" : [ {
"WebsiteID" : 6,
"Action" : "Action",
"Description" : "Description",
"IsEnabled" : true,
"IsActive" : true,
"DatTypeID" : 9,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"RefDatTypeID" : 6,
"TenantID" : 3,
"UserID" : 1,
"TranslatorID" : 6,
"AdaptorActionID" : 8,
"ID" : 9,
"TranslationDefinition" : "TranslationDefinition"
}, {
"WebsiteID" : 6,
"Action" : "Action",
"Description" : "Description",
"IsEnabled" : true,
"IsActive" : true,
"DatTypeID" : 9,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"RefDatTypeID" : 6,
"TenantID" : 3,
"UserID" : 1,
"TranslatorID" : 6,
"AdaptorActionID" : 8,
"ID" : 9,
"TranslationDefinition" : "TranslationDefinition"
} ],
"DatTypeID" : 4,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"Name" : "Name",
"LastExecDateTime" : "2000-01-23T04:56:07.000+00:00",
"RefDatTypeID" : 5,
"TenantID" : 2,
"UserID" : 6,
"LastExecUserID" : 9,
"LastExecDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"ID" : 7,
"IsAutoQueue" : true
} ],
"MasterAdaptorID" : 9,
"OrganisationId" : "OrganisationId",
"IsUsedByTenant" : true,
"Instructions" : [ {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
}, {
"KeyName" : "KeyName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : 3,
"IsTriggerReconfigure" : true,
"Value" : "Value",
"IsReadOnly" : true
} ],
"InstructionsXML" : "InstructionsXML",
"IconURL" : "IconURL",
"Type" : "Type",
"IsTarget" : true
},
"CompletedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"ID" : 4,
"Interval" : 5
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<null>
<WorkflowID>123</WorkflowID>
<TaskTypeID>123</TaskTypeID>
<Name>aeiou</Name>
<NameFriendlyName>aeiou</NameFriendlyName>
<DocumentID>123</DocumentID>
<IsActive>true</IsActive>
<IsRecurringSchedule>true</IsRecurringSchedule>
<IsEnabled>true</IsEnabled>
<Interval>123</Interval>
<IntervalType>123</IntervalType>
<CompletedDateTime_utc>2000-01-23T04:56:07.000Z</CompletedDateTime_utc>
<Status>aeiou</Status>
<IDs>123</IDs>
<RecurrenceType>123</RecurrenceType>
<TimeOfDay>2000-01-23T04:56:07.000Z</TimeOfDay>
<ID>123</ID>
<DatTypeID>123</DatTypeID>
<DatTypeFriendlyName>aeiou</DatTypeFriendlyName>
</null>' \
-d 'Custom MIME type example not yet supported: text/xml' \
-d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'