createScheduledOrder

post

/ccstore/v1/scheduledOrders

Create Scheduled Order. Create the scheduledOrder based on existing order. Optionally takes the X-CCOrganization header to specify current Organization context of logged in user.

Request

Supported Media Types
  • application/json
Header Parameters
X-CCOrganization
Type: string
Current organization context of the logged in user
Body Parameter
Root Schema : createScheduledOrder_request
Nested Schema : schedule
Type: object
The schedule of the Scheduled order.
Nested Schema : daysOfWeek
Type: array
The days of week of the Scheduled order.
Nested Schema : monthsInYear
Type: array
The months in year of the Scheduled order.
Nested Schema : selectedDates
Type: array
The selected dates in a month in year for the Scheduled order.
Nested Schema : weeksInMonth
Type: array
The weeks in month of the Scheduled order.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : createScheduledOrder_response
Nested Schema : schedule
Type: object
The schedule of the Scheduled order.
Nested Schema : daysOfWeek
Type: array
The days of week of the Scheduled order.
Nested Schema : monthsInYear
Type: array
The months in year of the Scheduled order.
Nested Schema : selectedDates
Type: array
The selected dates in a month in year for the Scheduled order.
Nested Schema : weeksInMonth
Type: array
The weeks in month of the Scheduled order.
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{
  "schedule": {
    "selectedDates": [],
    "weeksInMonth": [
      1,
      2,
      3
    ],
    "monthsInYear": [
      1,
      2
    ],
    "daysOfWeek": [
      1,
      2,
      3
    ]
  },
  "templateOrderId": "o0001",
  "scheduleType": "calendar",
  "endDate": "2017-10-01T00:00:00.000Z",
  "name": "testScheduleOrder",
  "startDate": "2015-10-01T00:00:00.000Z"
}