Optimizely Carriers API
The Carriers API from Optimizely — 12 operation(s) for carriers.
Operations 16
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which shipping carriers are configured in Optimizely Commerce?”
“Can I narrow the carrier list to only enabled, live carriers?”
Tell an agent
List all shipping carriers.
Show carriers matching {filter}.
Ask an LLM
“What credentials and URLs do I need to register a new carrier?”
“Can a new carrier authenticate with OAuth client credentials instead of a password?”
Tell an agent
Create carrier {name} with account number {accountNumber} and rating service {ratingService}.
Add carrier {name} using tracking URL {trackingUrl} and contact email {contactEmail}.
GET
/api/v1/admin/Carriers({id})
Get one shipping carrier · Returns the entity with the key from Carriers
#
Ask an LLM
“What settings are stored for a single carrier?”
“Can I look up a carrier's live and test URLs by its id?”
Tell an agent
Fetch carrier {id}.
Show the configuration of carrier {id}.
PUT
/api/v1/admin/Carriers({id})
Replace a shipping carrier's full setup · Replace entity in EntitySet Carriers
#
Ask an LLM
“Can I overwrite a carrier's entire configuration in one call?”
“Does replacing a carrier mean resending every required credential field?”
Tell an agent
Replace carrier {id} with name {name} and live URL {liveUrl}.
Overwrite the whole record of carrier {id}.
DELETE
/api/v1/admin/Carriers({id})
Delete one shipping carrier · Delete entity in EntitySet Carriers
#
Ask an LLM
“How do I remove a single shipping carrier?”
“Can deleting a carrier be guarded by an ETag check?”
Tell an agent destructive · confirm first
Delete carrier {id}.
Delete carrier {id} only if its ETag is {etag}.
PATCH
/api/v1/admin/Carriers({id})
Update selected carrier settings · Update entity in EntitySet Carriers
#
Ask an LLM
“Can I switch a carrier from test to live mode without resending everything?”
“Is there a way to set a backup carrier for an existing one?”
Tell an agent
Set carrier {id} live flag to {isLive}.
Make {backUpCarrierId} the backup for carrier {id}.
GET
/api/v1/admin/Carriers/Default.Default()
Get default values for a new carrier · Call operation Default
#
Ask an LLM
“What defaults does a new carrier record start with?”
“Is there a blank carrier template to fill in?”
Tell an agent
Get the default field values for a new carrier.
Show the empty carrier template.
Ask an LLM
“Can I remove several carriers in one request?”
“Is there a batch delete for carriers by a list of ids?”
Tell an agent destructive · confirm first
Bulk delete carriers {ids}.
Permanently delete every carrier in {ids}.
GET
/api/v1/admin/carriers({key})/carrierpackages({carrierpackageKey})
Get a package type offered by a carrier · Carriers get carrier package by key and carrierpackagekey
#
Ask an LLM
“Which package definitions belong to a carrier?”
“Can I read one carrier package record through its carrier?”
Tell an agent
Get package {carrierpackageKey} of carrier {key}.
Show carrier package {carrierpackageKey} under carrier {key}.
GET
/api/v1/admin/carriers({key})/carrierzones({carrierzoneKey})
Get a shipping zone of a carrier · Carriers get carrier zone by key and carrierzonekey
#
Ask an LLM
“What shipping zones has a carrier been set up with?”
“Can I fetch a single carrier zone by key?”
Tell an agent
Get zone {carrierzoneKey} of carrier {key}.
Show carrier zone {carrierzoneKey} for carrier {key}.
GET
/api/v1/admin/carriers({key})/customers({customerKey})
Get a customer assigned to a carrier · Carriers get customer by key and customerkey
#
Ask an LLM
“Which customers are linked to a particular carrier?”
“Can I check one customer's association with a carrier?”
Tell an agent
Get customer {customerKey} assigned to carrier {key}.
Show customer {customerKey} linked to carrier {key}.
GET
/api/v1/admin/carriers({key})/customproperties({custompropertyKey})
Get a custom property on a carrier · Carriers get custom property by key and custompropertykey
#
Ask an LLM
“How can I read a custom property stored on a carrier?”
“Can I fetch one custom field value from a carrier record?”
Tell an agent
Get custom property {custompropertyKey} of carrier {key}.
Show the {custompropertyKey} custom property on carrier {key}.
GET
/api/v1/admin/carriers({key})/shipcharges({shipchargeKey})
Get a shipping charge of a carrier · Carriers get ship charge by key and shipchargekey
#
Ask an LLM
“What shipping charges are defined for a carrier?”
“Can I look up one ship charge entry through its carrier?”
Tell an agent
Get ship charge {shipchargeKey} of carrier {key}.
Show shipping charge {shipchargeKey} for carrier {key}.
GET
/api/v1/admin/carriers({key})/shiprules({shipruleKey})
Get a shipping rule of a carrier · Carriers get ship rule by key and shiprulekey
#
Ask an LLM
“Which shipping rules apply to a carrier?”
“Can I read one ship rule attached to a carrier?”
Tell an agent
Get ship rule {shipruleKey} of carrier {key}.
Show shipping rule {shipruleKey} under carrier {key}.
GET
/api/v1/admin/carriers({key})/shipvias({shipviaKey})
Get a ship via service of a carrier · Carriers get ship via by key and shipviakey
#
Ask an LLM
“What ship via service levels does a carrier offer?”
“Can I fetch one ship via option, like ground or overnight, for a carrier?”
Tell an agent
Get ship via {shipviaKey} of carrier {key}.
Show ship via service {shipviaKey} offered by carrier {key}.
GET
/api/v1/admin/carriers({key})/websites({websiteKey})
Get a website that uses a carrier · Carriers get website by key and websitekey
#
Ask an LLM
“Which storefront websites is a carrier enabled on?”
“Can I check whether one website is linked to a carrier?”
Tell an agent
Get website {websiteKey} linked to carrier {key}.
Show website {websiteKey} that uses carrier {key}.