updateCarrier
put
/ccadmin/v1/carriers/{id}
Update Carrier. Updates the Carrier Details.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
Carrier Id.
Root Schema : updateCarrier_request
Type:
Show Source
object
-
carrierName:
string
Carrier Name.
-
trackingUrl:
string
Tracking Url for the carrier.
Example:
{
"carrierName":"Fedex",
"trackingUrl":"http://www.fedex.com/Tracking?action=track&tracknumbers=$$$$"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateCarrier_response
Type:
Show Source
object
-
carrierId(optional):
string
Carrier Id.
-
carrierName(optional):
string
Carrier Name.
-
trackingUrl(optional):
string
Tracking Url for the carrier.
Example Response (application/json)
{
"carrierName":"Fedex",
"trackingUrl":"http://www.fedex.com/Tracking?action=track&tracknumbers=$$$$",
"carrierId":"FED"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|96016|Tracking Url format is invalid.|
|96017|Missing Carrier Name.|
|96018|Missing Carrier Id.|
|96012|Missing Carrier Tracking Url.|
|96013|Carrier name passed is null.|
|96024|Either Carrier name or Carrier tracking url or both need to be specified.|
|96014|Carrier Id passed is null.|
|96015|Carrier Tracking Url passed is null.|
|96020|No Carrier found for the given id.|
|96010|Unable to save carrier data.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code