Optimizely · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Admin API V1 Order History Lines API
10 actions
10 updates
phrasing
extends
openapi/optimizely-order-history-lines-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Optimizely's API. It is a proposal applied on top of the contract, not a document Optimizely publishes.
What the actions change
x-apievangelist-phrasing
Targets 10
$.info
$.paths['/api/v1/admin/OrderHistoryLines'].get
$.paths['/api/v1/admin/OrderHistoryLines'].post
$.paths['/api/v1/admin/OrderHistoryLines({id})'].get
$.paths['/api/v1/admin/OrderHistoryLines({id})'].put
$.paths['/api/v1/admin/OrderHistoryLines({id})'].delete
$.paths['/api/v1/admin/OrderHistoryLines({id})'].patch
$.paths['/api/v1/admin/OrderHistoryLines/Default.Default()'].get
$.paths['/api/v1/admin/orderhistorylines/delete'].delete
$.paths['/api/v1/admin/orderhistorylines({key})/customproperties({custompropertyKey})'].get
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Admin API V1 Order History Lines API
version: 1.0.0
extends: openapi/optimizely-order-history-lines-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-09-26'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 9
- target: $.paths['/api/v1/admin/OrderHistoryLines'].get
update:
x-apievangelist-phrasing:
intent: List order history lines
effect: read
questions:
- What line items are recorded in past orders from the ERP?
- Can I filter order history lines by product ERP number or status?
instructions:
- text: List all order history lines.
- text: List order history lines matching {filter}, top {top}.
slots:
filter: query.$filter
top: query.$top
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/OrderHistoryLines'].post
update:
x-apievangelist-phrasing:
intent: Add a line to an order history record
effect: write
questions:
- How do I add a line item to a historical order imported from the ERP?
- What fields are required for a new order history line?
instructions:
- text: Add a line for product {productErpNumber} to order history {orderHistoryId}, qty {qtyOrdered}.
slots:
productErpNumber: requestBody.productErpNumber
orderHistoryId: requestBody.orderHistoryId
qtyOrdered: requestBody.qtyOrdered
- text: Create order history line {lineNumber} for customer {customerNumber} with status {status} at net price {unitNetPrice}.
slots:
lineNumber: requestBody.lineNumber
customerNumber: requestBody.customerNumber
status: requestBody.status
unitNetPrice: requestBody.unitNetPrice
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/OrderHistoryLines({id})'].get
update:
x-apievangelist-phrasing:
intent: Get an order history line
effect: read
questions:
- How do I see the quantities and pricing on one historical order line?
- How much of a specific order line was actually shipped?
instructions:
- text: Get order history line {id}.
slots:
id: path.id
- text: Show shipped vs ordered quantity for order line {id}.
slots:
id: path.id
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/OrderHistoryLines({id})'].put
update:
x-apievangelist-phrasing:
intent: Replace an order history line
effect: write
questions:
- How do I overwrite an entire historical order line from the ERP?
- Does replacing an order history line need every required field again?
instructions:
- text: Replace order history line {id} for product {productErpNumber} with status {status}.
slots:
id: path.id
productErpNumber: requestBody.productErpNumber
status: requestBody.status
- text: Fully overwrite order line {id} with quantity ordered {qtyOrdered} and shipped {qtyShipped}.
slots:
id: path.id
qtyOrdered: requestBody.qtyOrdered
qtyShipped: requestBody.qtyShipped
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/OrderHistoryLines({id})'].delete
update:
x-apievangelist-phrasing:
intent: Delete an order history line
effect: destructive
questions:
- How do I remove a line from a historical order?
- Can I delete an order history line only if its ETag still matches?
instructions:
- text: Delete order history line {id}.
slots:
id: path.id
- text: Delete order history line {id} if its ETag is {etag}.
slots:
id: path.id
etag: header.If-Match
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/OrderHistoryLines({id})'].patch
update:
x-apievangelist-phrasing:
intent: Update an order history line
effect: write
questions:
- How do I update the shipped quantity on a past order line?
- Can I change just the status of an order history line?
instructions:
- text: Set shipped quantity of order line {id} to {qtyShipped}.
slots:
id: path.id
qtyShipped: requestBody.qtyShipped
- text: Change status of order history line {id} to {status}.
slots:
id: path.id
status: requestBody.status
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/OrderHistoryLines/Default.Default()'].get
update:
x-apievangelist-phrasing:
intent: Get the default order history line template
effect: read
questions:
- What default values does a new order history line start with?
- Where can I get a blank order history line record?
instructions:
- text: Get the default order history line template.
- text: Show default values for a new order history line.
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/orderhistorylines/delete'].delete
update:
x-apievangelist-phrasing:
intent: Bulk delete order history lines
effect: destructive
questions:
- How do I delete many order history lines at once?
- Can I remove a batch of historical order lines by id?
instructions:
- text: Delete order history lines {ids}.
slots:
ids: query.ids
- text: Bulk remove order history lines {ids}.
slots:
ids: query.ids
method: generated
generated: '2026-09-26'
- target: $.paths['/api/v1/admin/orderhistorylines({key})/customproperties({custompropertyKey})'].get
update:
x-apievangelist-phrasing:
intent: Get an order history line custom property
effect: read
questions:
- How do I read a custom property on an order history line?
- Where is one custom property value for a historical order line?
instructions:
- text: Get custom property {custompropertyKey} of order history line {key}.
slots:
custompropertyKey: path.custompropertyKey
key: path.key
- text: Show order history line {key}'s custom property {custompropertyKey}.
slots:
custompropertyKey: path.custompropertyKey
key: path.key
method: generated
generated: '2026-09-26'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/optimizely-order-history-lines-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.