Create one shipping method

post

/fscmRestApi/resources/11.13.18.05/carriers/{CarrierId}/child/shippingMethods

Request

Path Parameters
Header Parameters
  • 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".
  • 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.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Maximum Length: 1
    Contains one of the following values: true or false. If true, then the shipping method is active. If false, then the shipping method is not active. The default value is true.
  • Flexfields for Shipping Methods
    Title: Flexfields for Shipping Methods
    The Flexfields for Shipping Methods resource manages the descriptive flexfields for the shipping method.
  • Maximum Length: 30
    The value that indicates the means used to deliver shipments to the customer. Valid values include Rail, Air, or Road. A list of accepted values is defined in the lookup type WSH_MODE_OF_TRANSPORT. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Carriers Lookups task.
  • Shipping Method Organization Associations
    Title: Shipping Method Organization Associations
    The Shipping Method Organization Associations resource manages the inventory organizations that may use the shipping method.
  • Maximum Length: 30
    The value that indicates the priority of transportation that affects how quickly goods are transported. Valid values include Next day, Overnight, Express, or Door to Door. A list of accepted values is defined in the lookup type WSH_SERVICE_LEVELS. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Carriers Lookups task.
Nested Schema : Flexfields for Shipping Methods
Type: array
Title: Flexfields for Shipping Methods
The Flexfields for Shipping Methods resource manages the descriptive flexfields for the shipping method.
Show Source
Nested Schema : Shipping Method Organization Associations
Type: array
Title: Shipping Method Organization Associations
The Shipping Method Organization Associations resource manages the inventory organizations that may use the shipping method.
Show Source
Nested Schema : carriers-shippingMethods-DFF-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
  • Maximum Length: 18
    The value that uniquely identifies the inventory organization as an abbreviation. Either this attribute or OrganizationId is required.
  • The value that uniquely identifies the inventory organization assigned to a carrier shipping method. Either this attribute or OrganizationCode is required.
  • Maximum Length: 240
    The name of the inventory organization.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : carriers-shippingMethods-item-response
Type: object
Show Source
  • Maximum Length: 1
    Contains one of the following values: true or false. If true, then the shipping method is active. If false, then the shipping method is not active. The default value is true.
  • Read Only: true
    Maximum Length: 64
    User who created the record.
  • Read Only: true
    Date and time when the user created the record.
  • Flexfields for Shipping Methods
    Title: Flexfields for Shipping Methods
    The Flexfields for Shipping Methods resource manages the descriptive flexfields for the shipping method.
  • Read Only: true
    Date and time when the user most recently updated the record.
  • Read Only: true
    Maximum Length: 64
    User who most recently updated the record.
  • Links
  • Read Only: true
    Maximum Length: 80
    The value that describes the means used to deliver shipments to the customer. Valid values include Rail, Air, or Road. A list of accepted values is defined in the lookup type WSH_MODE_OF_TRANSPORT. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Carriers Lookups task.
  • Maximum Length: 30
    The value that indicates the means used to deliver shipments to the customer. Valid values include Rail, Air, or Road. A list of accepted values is defined in the lookup type WSH_MODE_OF_TRANSPORT. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Carriers Lookups task.
  • Shipping Method Organization Associations
    Title: Shipping Method Organization Associations
    The Shipping Method Organization Associations resource manages the inventory organizations that may use the shipping method.
  • Read Only: true
    The value that uniquely identifies the carrier shipping method. It is a value that the application generates when it creates a shipping method for a carrier.
  • Read Only: true
    Maximum Length: 80
    The value that indicates the priority of transportation that affects how quickly goods are transported. Valid values include Next day, Overnight, Express, or Door to Door. A list of accepted values is defined in the lookup type WSH_SERVICE_LEVELS. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Carriers Lookups task.
  • Maximum Length: 30
    The value that indicates the priority of transportation that affects how quickly goods are transported. Valid values include Next day, Overnight, Express, or Door to Door. A list of accepted values is defined in the lookup type WSH_SERVICE_LEVELS. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Carriers Lookups task.
  • Read Only: true
    Maximum Length: 30
    Default Value:
    The value that uniquely identifies the carrier shipping method, as a concatenation of carrier name, service level and mode of transport.
Nested Schema : Flexfields for Shipping Methods
Type: array
Title: Flexfields for Shipping Methods
The Flexfields for Shipping Methods resource manages the descriptive flexfields for the shipping method.
Show Source
Nested Schema : Shipping Method Organization Associations
Type: array
Title: Shipping Method Organization Associations
The Shipping Method Organization Associations resource manages the inventory organizations that may use the shipping method.
Show Source
Nested Schema : carriers-shippingMethods-DFF-item-response
Type: object
Show Source
Nested Schema : carriers-shippingMethods-organizationAssociations-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create one shipping method.

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/carriers/CarrierId/child/shippingMethods"

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.

{  
  "ServiceLevelCode" : "EXP",
  "ModeOfTransportCode" : "PARCEL"
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{ 
  "ShipMethodCode" : "6242", 
  "ServiceLevelCode" : "EXP", 
  "ModeOfTransportCode" : "PARCEL", 
  "ActiveFlag" : true,
...
}
Back to Top