Origin Schedule Configuration API
Create and modify network origin schedules with Shipium's Origin Schedule Configuration API.
Get started
To use the Origin Schedule Configuration API, you can follow the instructions on this page. More information about the Origin Schedule Configuration API can be found in Configuration APIs. In addition, if you prefer to configure your origin schedules via the Shipium Console, you can find guidance for doing so in the Origin Schedule documentation.
Warning: potential negative impact on your fulfillment operationsThis API can modify elements of your organization's network fulfillment configuration in ways that could negatively impact the production of your fulfillment operations. You should only use the API if you are familiar with how any changes you make could affect your network fulfillment configuration.
Configure origin schedules with the Origin Schedule Configuration API
The Origin Schedule Configuration API assumes you're using one of the authentication mechanisms detailed in our authentication documentation. The general endpoint for Origin Configuration calls is included in the table below.
| API type | API endpoint |
|---|---|
| POST | https://api.shipium.com/api/v1/partnerConfiguration/origins/{originId}/schedule/entry |
Authentication for API callsIn the cURL examples on this page, the environment variable
AUTHSTRINGis used to handle authorization. The recipe below shows how to set it correctly for both API Key and OAuth users.
Request fields for API calls
The following tables provide the required and optional fields for calling the Origin Schedule Configuration API. Path elements are described for each use case in the sections that follow.
Required request fields
Request field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: String (enumeration) |
| Type: String |
Optional request fields
Request field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
Create an origin schedule entry
The endpoint for creating an origin schedule entry is provided below.
Path
POST https://api.shipium.com/api/v1/partnerConfiguration/origins
Required path element: originId (a string ID for the origin with which this schedule entry is to be associated at creation)
Example cURL call
This example shows a request to create an origin schedule:
curl --request POST \
--url <<api_url>>/api/v1/partnerConfiguration/origins/{originId}/schedule/entry \
--header 'accept: application/json' \
--header $AUTHSTRING \
--header 'content-type: application/json' \
--data 'INSERT CONTENTS FROM BELOW'Example request body
This example shows the JSON request:
{
"carrierSchedules": [
{
"carrierId": "usps",
"carrierScheduleId": "usps-reno-fc-schedule",
"carrierServiceMethodIds": [
"usps-ground-advantage-service-method, usps-priority-mail-service-method"
],
"cutoffExceptions": [
{
"cutoff": "15:30",
"date": "2022-12-24"
}
],
"cutoffTimes": [
{
"cutoff": "13:45",
"dayOfWeek": "friday"
}
]
}
],
"from": "2023-05-23T19:51:31.175Z",
"holidays": [
{
"date": "2020-07-04",
"metadata": {
"additionalProp1": "Floating"
}
}
],
"processingCutoff": {
"expectedDaysToShip": 0,
"shippingCutoffHour": 0,
"weekendCutoffHour": 0
},
"shippingDays": [
"friday"
],
"to": "2023-05-23T19:51:31.175Z"
}Example response body
{
"carrierSchedules": [
{
"carrierId": "usps",
"carrierScheduleId": "usps-reno-fc-schedule",
"carrierServiceMethodIds": [
"usps-ground-advantage-service-method, usps-priority-mail-service-method"
],
"cutoffExceptions": [
{
"cutoff": "15:30",
"date": "2022-12-24"
}
],
"cutoffTimes": [
{
"cutoff": "13:45",
"dayOfWeek": "friday"
}
]
}
],
"from": "2023-05-23T20:07:04.353Z",
"holidays": [
{
"date": "2020-07-04",
"metadata": {
"additionalProp1": "Floating"
}
}
],
"orchestratedAssetMetadata": {
"orchestrationId": "4ad3b5d5-f256-4184-b9af-15ccca60ea99",
"orchestrationTimeStamp": "2023-05-23T20:07:04.353Z"
},
"processingCutoff": {
"expectedDaysToShip": 0,
"shippingCutoffHour": 0,
"weekendCutoffHour": 0
},
"scheduleEntryId": "7fc6c76b-e681-4ce0-80ce-e439b76d3977",
"shippingDays": [
"friday"
],
"to": "2023-05-23T20:07:04.353Z"
}Retrieve all origin schedules for an origin
Path
GET
<<api_url>>/api/v1/partnerConfiguration/origins/{originId}/schedule
Required path element : originId (a string ID for the origin with which this schedule entry is associated)
Example request body
The request body is empty for this call.
Example response body
{
"orchestratedAssetMetadata": {
"orchestrationId": "8205a8b7-1f69-4479-b559-731d309beb60",
"orchestrationTimeStamp": "2023-05-23T20:10:39.342Z"
},
"results": [
{
"carrierSchedules": [
{
"carrierId": "usps",
"carrierScheduleId": "usps-reno-fc-schedule",
"carrierServiceMethodIds": [
"usps-ground-advantage-service-method, usps-priority-mail-service-method"
],
"cutoffExceptions": [
{
"cutoff": "15:30",
"date": "2022-12-24"
}
],
"cutoffTimes": [
{
"cutoff": "13:45",
"dayOfWeek": "friday"
}
]
}
],
"from": "2023-05-23T20:10:39.342Z",
"holidays": [
{
"date": "2020-07-04",
"metadata": {
"additionalProp1": "Floating"
}
}
],
"orchestratedAssetMetadata": {
"orchestrationId": "8205a8b7-1f69-4479-b559-731d309beb60",
"orchestrationTimeStamp": "2023-05-23T20:10:39.342Z"
},
"processingCutoff": {
"expectedDaysToShip": 0,
"shippingCutoffHour": 0,
"weekendCutoffHour": 0
},
"scheduleEntryId": "b6268dd4-0c89-4d4c-848c-9b51f817da98",
"shippingDays": [
"friday"
],
"to": "2023-05-23T20:10:39.342Z"
}
]
}Delete an origin schedule entry by schedule entry ID
Path
DELETE
<<api_url>>/api/v1/partnerConfiguration/origins/{originId}/schedule/entry/{originScheduleEntryId}
Required path element: originId (a string ID for the origin with which this schedule entry is associated)
Required path element: originScheduleEntryId (a string ID for the origin schedule entry with which this schedule entry is associated)
Example request body
The request body is empty for this call.
Example response body
{
"carrierSchedules": [
{
"carrierId": "usps",
"carrierScheduleId": "usps-reno-fc-schedule",
"carrierServiceMethodIds": [
"usps-ground-advantage-service-method, usps-priority-mail-service-method"
],
"cutoffExceptions": [
{
"cutoff": "15:30",
"date": "2022-12-24"
}
],
"cutoffTimes": [
{
"cutoff": "13:45",
"dayOfWeek": "friday"
}
]
}
],
"from": "2023-05-23T20:13:58.563Z",
"holidays": [
{
"date": "2020-07-04",
"metadata": {
"additionalProp1": "Company_wide"
}
}
],
"orchestratedAssetMetadata": {
"orchestrationId": "3f1b036b-4ec3-48c3-be18-8a261364f02c",
"orchestrationTimeStamp": "2023-05-23T20:13:58.563Z"
},
"processingCutoff": {
"expectedDaysToShip": 0,
"shippingCutoffHour": 0,
"weekendCutoffHour": 0
},
"scheduleEntryId": "ae73cc23-7146-4b2c-ab2b-d91be4ce884e",
"shippingDays": [
"friday"
],
"to": "2023-05-23T20:13:58.563Z"
}Update an existing origin schedule
Making updates to an existing origin schedule is currently managed by deleting the existing origin schedule and creating a new origin schedule.
Resources
Your Shipium team member is available to help along the way. However, you might find these resources helpful:
Updated 2 days ago
