Optimizely Punch Out Sessions API
The Punch Out Sessions API from Optimizely — 10 operation(s) for punch out sessions.
Operations 14
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
GET
/api/v1/admin/PunchOutSessions
List punchout sessions · Returns the EntitySet PunchOutSessions
#
Ask an LLM
“Which procurement punchout sessions have buyers opened against my commerce site?”
“Can I filter and sort punchout sessions with OData, for example by domain or creation date?”
Tell an agent
List all punchout sessions.
List punchout sessions matching {filter}, sorted by {orderby}.
POST
/api/v1/admin/PunchOutSessions
Create a punchout session record · Post a new entity to EntitySet PunchOutSessions
#
Ask an LLM
“How do I record a new punchout session from a buyer's procurement system?”
“What identity and ship-to details are required to create a punchout session?”
Tell an agent
Create a punchout session for buyer cookie {buyerCookie} from {fromIdentity} to {toIdentity}.
Open a punchout session in {punchOutSessionMode} mode that posts back to {browserFormPost}.
GET
/api/v1/admin/PunchOutSessions({id})
Get one punchout session · Returns the entity with the key from PunchOutSessions
#
Ask an LLM
“How do I look up a single punchout session and its ship-to details?”
“Can I expand related data when reading one punchout session?”
Tell an agent
Get punchout session {id}.
Show punchout session {id} with {expand} expanded.
PUT
/api/v1/admin/PunchOutSessions({id})
Replace a punchout session record · Replace entity in EntitySet PunchOutSessions
#
Ask an LLM
“How do I overwrite every field of an existing punchout session?”
“Does replacing a punchout session require resending all the identity and ship-to fields?”
Tell an agent
Replace punchout session {id} with a full record for buyer cookie {buyerCookie}.
Overwrite punchout session {id} entirely, shipping to {shipToName}.
DELETE
/api/v1/admin/PunchOutSessions({id})
Delete a punchout session · Delete entity in EntitySet PunchOutSessions
#
Ask an LLM
“How do I remove a single punchout session record?”
“Can I guard a punchout session delete with an ETag so I don't remove a changed record?”
Tell an agent destructive · confirm first
Delete punchout session {id}.
Delete punchout session {id} only if its ETag is {ifMatch}.
PATCH
/api/v1/admin/PunchOutSessions({id})
Update fields on a punchout session · Update entity in EntitySet PunchOutSessions
#
Ask an LLM
“Can I change just the ship-to address on a punchout session?”
“How do I link a punchout session to a customer order after the fact?”
Tell an agent
Update punchout session {id} to ship to {shipToStreet}, {shipToCity}.
Attach customer order {customerOrderId} to punchout session {id}.
GET
/api/v1/admin/PunchOutSessions/Default.Default()
Call the Default function on punchout sessions · Call operation Default
#
Ask an LLM
“What does the Default OData function on the punchout sessions set return?”
“Is there a default punchout session template I can read?”
Tell an agent
Call the Default function on punchout sessions.
Get the default punchout session entity.
DELETE
/api/v1/admin/punchoutsessions/delete
Bulk delete punchout sessions by ID · Punch out sessions delete route
#
Ask an LLM
“Can I delete several punchout sessions in one call?”
“How do I clean out a batch of stale punchout sessions by their IDs?”
Tell an agent destructive · confirm first
Bulk delete punchout sessions {ids}.
Remove all of these punchout sessions at once: {ids}.
GET
/api/v1/admin/punchoutsessions({key})/customproperties({custompropertyKey})
Get a custom property on a punchout session · Punch out sessions get custom property by key and custompropertykey
#
Ask an LLM
“How do I read one custom property stored on a punchout session?”
“Can punchout sessions carry custom properties I can fetch individually?”
Tell an agent
Get custom property {custompropertyKey} of punchout session {key}.
Read punchout session {key}'s custom field {custompropertyKey}.
GET
/api/v1/admin/punchoutsessions({key})/punchoutorderrequests({punchoutorderrequestKey})
Get an order request from a punchout session · Punch out sessions get punch out order request by key and…
#
Ask an LLM
“How do I see the order request a punchout session sent back to procurement?”
“Can I fetch a specific punchout order request within a session?”
Tell an agent
Get order request {punchoutorderrequestKey} in punchout session {key}.
Show the punchout order request {punchoutorderrequestKey} for session {key}.
GET
/api/v1/admin/punchoutsessions({key})/punchoutsessionaccesses({punchoutsessionaccessKey})
Get an access record for a punchout session · Punch out sessions get punch out session access by key and…
#
Ask an LLM
“Where can I see when and how a punchout session was accessed?”
“Can I look up a single session access entry for a punchout session?”
Tell an agent
Get access record {punchoutsessionaccessKey} of punchout session {key}.
Show punchout session {key}'s access entry {punchoutsessionaccessKey}.
GET
/api/v1/admin/punchoutsessions({key})/punchoutsessionextrinsics({punchoutsessionextrinsicKey})
Get an extrinsic value on a punchout session · Punch out sessions get punch out session extrinsic by key and…
#
Ask an LLM
“How do I read the cXML extrinsic values a buyer passed into a punchout session?”
“Can I fetch one extrinsic from a punchout session by its key?”
Tell an agent
Get extrinsic {punchoutsessionextrinsicKey} from punchout session {key}.
Read the extrinsic {punchoutsessionextrinsicKey} sent with session {key}.
GET
/api/v1/admin/punchoutsessions({key})/punchoutsessionitemins({punchoutsessioniteminKey})
Get an inbound item on a punchout session · Punch out sessions get punch out session item in by key and…
#
Ask an LLM
“Which items did the buyer bring into a punchout session for editing?”
“Can I read a single ItemIn line from a punchout session?”
Tell an agent
Get ItemIn line {punchoutsessioniteminKey} of punchout session {key}.
Show inbound item {punchoutsessioniteminKey} for punchout session {key}.
GET
/api/v1/admin/punchoutsessions({key})/punchoutsetuprequests({punchoutsetuprequestKey})
Get the setup request of a punchout session · Punch out sessions get punch out setup request by key and…
#
Ask an LLM
“How do I inspect the setup request that started a punchout session?”
“Can I retrieve the original PunchOutSetupRequest for troubleshooting a session?”
Tell an agent
Get setup request {punchoutsetuprequestKey} of punchout session {key}.
Show the PunchOutSetupRequest {punchoutsetuprequestKey} behind session {key}.