Create
post
/fscmRestApi/resources/11.13.18.05/transitTimes
Request
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
DestinationExternalLocationCustomerName: string
-
DestinationExternalLocationId: integer
(int64)
-
DestinationExternalLocationName: string
-
DestinationExternalLocationShipToCustomerId: integer
-
DestinationExternalLocationSourceId: integer
-
DestinationExternalLocationSourceName: string
-
DestinationExternalLocationSourceType: string
Maximum Length:
2 -
DestinationExternalLocationSupplierId: integer
-
DestinationExternalLocationSupplierName: string
-
DestinationGeographyDescription: string
-
DestinationGeographyId: integer
(int64)
-
DestinationGeographyName: string
-
DestinationInternalLocationCode: string
-
DestinationInternalLocationId: integer
(int64)
-
DestinationInternalLocationSetName: string
-
DestinationTypeCode(required): string
Title:
Destination TypeMaximum Length:2 -
DestinationZoneId: integer
(int64)
-
DestinationZoneName: string
-
OriginExternalLocationCustomerName: string
-
OriginExternalLocationId: integer
(int64)
-
OriginExternalLocationName: string
-
OriginExternalLocationShipToCustomerId: integer
-
OriginExternalLocationSourceId: integer
-
OriginExternalLocationSourceName: string
-
OriginExternalLocationSourceType: string
Maximum Length:
2 -
OriginExternalLocationSupplierId: integer
-
OriginExternalLocationSupplierName: string
-
OriginGeographyDescription: string
-
OriginGeographyId: integer
(int64)
-
OriginGeographyName: string
-
OriginInternalLocationCode: string
-
OriginInternalLocationId: integer
(int64)
-
OriginInternalLocationSetName: string
-
OriginTypeCode(required): string
Title:
Origin TypeMaximum Length:2 -
OriginZoneId: integer
(int64)
-
OriginZoneName: string
-
shippingMethods: array
shippingMethods
Nested Schema : transitTimes-shippingMethods-item-post-request
Type:
Show Source
object-
CostPerUnit: number
Title:
Cost per Unit -
CostPerUnitCurrencyCode: string
Maximum Length:
15 -
DailyVolumeCapacity: number
Title:
Daily Volume Capacity -
DailyVolumeCapacityUnitOfMeasureCode: string
Maximum Length:
3 -
DailyVolumeCapacityUnitOfMeasureName: string
-
DailyWeightCapacity: number
Title:
Daily Weight Capacity -
DailyWeightCapacityUnitOfMeasureCode: string
Maximum Length:
3 -
DailyWeightCapacityUnitOfMeasureName: string
-
DefaultShippingMethodFlag: boolean
Title:
Default shipping methodMaximum Length:1 -
DFF: array
DFF
-
ShippingMethod: string
-
ShippingMethodCode(required): string
Maximum Length:
30 -
TransitTimeInDays(required): number
Title:
Transit Time in Days -
TransitTimeValueId: integer
(int64)
Nested Schema : schema
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:30Context Value -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
TransitTimeValueId: integer
(int64)
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : transitTimes-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64 -
CreationDate: string
(date-time)
Read Only:
true -
Destination: string
Read Only:
true -
DestinationDescription: string
Read Only:
true -
DestinationExternalLocationCustomerName: string
-
DestinationExternalLocationId: integer
(int64)
-
DestinationExternalLocationName: string
-
DestinationExternalLocationShipToCustomerId: integer
-
DestinationExternalLocationSourceId: integer
-
DestinationExternalLocationSourceName: string
-
DestinationExternalLocationSourceType: string
Maximum Length:
2 -
DestinationExternalLocationSupplierId: integer
-
DestinationExternalLocationSupplierName: string
-
DestinationGeographyDescription: string
-
DestinationGeographyId: integer
(int64)
-
DestinationGeographyName: string
-
DestinationInternalLocationCode: string
-
DestinationInternalLocationId: integer
(int64)
-
DestinationInternalLocationSetName: string
-
DestinationTypeCode: string
Title:
Destination TypeMaximum Length:2 -
DestinationZoneId: integer
(int64)
-
DestinationZoneName: string
-
LastUpdateDate: string
(date-time)
Read Only:
true -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Origin: string
Read Only:
true -
OriginDescription: string
Read Only:
true -
OriginExternalLocationCustomerName: string
-
OriginExternalLocationId: integer
(int64)
-
OriginExternalLocationName: string
-
OriginExternalLocationShipToCustomerId: integer
-
OriginExternalLocationSourceId: integer
-
OriginExternalLocationSourceName: string
-
OriginExternalLocationSourceType: string
Maximum Length:
2 -
OriginExternalLocationSupplierId: integer
-
OriginExternalLocationSupplierName: string
-
OriginGeographyDescription: string
-
OriginGeographyId: integer
(int64)
-
OriginGeographyName: string
-
OriginInternalLocationCode: string
-
OriginInternalLocationId: integer
(int64)
-
OriginInternalLocationSetName: string
-
OriginTypeCode: string
Title:
Origin TypeMaximum Length:2 -
OriginZoneId: integer
(int64)
-
OriginZoneName: string
-
shippingMethods: array
shippingMethods
-
TransitTimeId: integer
(int64)
Read Only:
true
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : transitTimes-shippingMethods-item-response
Type:
Show Source
object-
CostPerUnit: number
Title:
Cost per Unit -
CostPerUnitCurrencyCode: string
Maximum Length:
15 -
CreatedBy: string
Read Only:
trueMaximum Length:64 -
CreationDate: string
(date-time)
Read Only:
true -
DailyVolumeCapacity: number
Title:
Daily Volume Capacity -
DailyVolumeCapacityUnitOfMeasureCode: string
Maximum Length:
3 -
DailyVolumeCapacityUnitOfMeasureName: string
-
DailyWeightCapacity: number
Title:
Daily Weight Capacity -
DailyWeightCapacityUnitOfMeasureCode: string
Maximum Length:
3 -
DailyWeightCapacityUnitOfMeasureName: string
-
DefaultShippingMethodFlag: boolean
Title:
Default shipping methodMaximum Length:1 -
DFF: array
DFF
-
LastUpdateDate: string
(date-time)
Read Only:
true -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ShippingMethod: string
-
ShippingMethodCode: string
Maximum Length:
30 -
TransitTimeInDays: number
Title:
Transit Time in Days -
TransitTimeValueId: integer
(int64)
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : transitTimes-shippingMethods-DFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:30Context Value -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
TransitTimeValueId: integer
(int64)
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- shippingMethods
-
Parameters:
- TransitTimeId:
$request.path.TransitTimeId
- TransitTimeId:
Examples
This example describes how to create one transit time.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/transitTimes"
Example Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{
"OriginTypeCode" : "Z",
"OriginZoneName" : "ZONE_RCS2",
"DestinationTypeCode" : "Z",
"DestinationZoneId" : 300100001867168,
"shippingMethods" : [ {
"TransitTimeInDays" : 3,
"ShippingMethod" : "UNITED PARCEL SERVICE, INC-Air-3 days select",
"DefaultShippingMethodFlag" : true,
"DailyWeightCapacity" : 24,
"DailyWeightCapacityUnitOfMeasureCode" : "EA",
"CostPerUnit" : 10,
"CostPerUnitCurrencyCode" : "USD",
"DailyVolumeCapacity" : 24,
"DailyVolumeCapacityUnitOfMeasureCode" : "CFT"
} ]
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"items" : [ {
"TransitTimeId": 300100171426595,
"Origin": "ZONE_RCS2",
"OriginDescription": "ZONE_RCS2",
"OriginTypeCode": "Z",
"OriginGeographyId": null,
"OriginGeographyName": null,
"OriginGeographyDescription": null,
"OriginZoneId": 300100074237791,
"OriginZoneName": "ZONE_RCS2",
"OriginInternalLocationId": null,
"OriginInternalLocationCode": null,
"OriginInternalLocationSetName": null,
"OriginExternalLocationId": null,
"OriginExternalLocationName": null,
"OriginExternalLocationSourceType": null,
"OriginExternalLocationSourceId": null,
"OriginExternalLocationSourceName": null,
"OriginExternalLocationSupplierId": null,
"OriginExternalLocationSupplierName": null,
"DestinationTypeCode": "Z",
"Destination": "OP-Zone-CT",
"DestinationDescription": "OP-Zone-CT",
"DestinationGeographyId": null,
"DestinationGeographyName": null,
"DestinationGeographyDescription": null,
"DestinationZoneId": 300100001867168,
"DestinationZoneName": "OP-Zone-CT",
"DestinationInternalLocationId": null,
"DestinationInternalLocationCode": null,
"DestinationInternalLocationSetName": null,
"DestinationExternalLocationId": null,
"DestinationExternalLocationName": null,
"DestinationExternalLocationSourceType": null,
"DestinationExternalLocationSourceId": null,
"DestinationExternalLocationSourceName": null,
"DestinationExternalLocationSupplierId": null,
"DestinationExternalLocationSupplierName": null,
"shippingMethods": [
{
"TransitTimeValueId": 300100171426596,
"ShippingMethodCode": "000001_United Par_A_3DS",
"ShippingMethod": "UNITED PARCEL SERVICE, INC-Air-3 days select",
"TransitTimeInDays": 3,
"DefaultShippingMethodFlag": true,
"DailyWeightCapacity": 24,
"DailyWeightCapacityUnitOfMeasureCode": "EA",
"DailyWeightCapacityUnitOfMeasureName": "EA",
"CostPerUnit": 10,
"CostPerUnitCurrencyCode": "USD",
"DailyVolumeCapacity": 24,
"DailyVolumeCapacityUnitOfMeasureCode": "CFT",
"DailyVolumeCapacityUnitOfMeasureName": "CFT",
...
} ],
...
}, {
...
} ],
...
}