Skip to content

List operations with credit costs

GET
/v1/operations
curl --request GET \
--url https://example.com/v1/operations \
--header 'Authorization: Bearer <token>'

Return the gateway-local op config — name, op_class, credit cost, and administrative enabled flag.

X-Shopify-Hmac-Sha256
Any of:
string

Successful Response

Media type application/json
OperationsResponse

GET /v1/operations response.

object
operations
required
Operations
Array<object>
Operation

One CTM operation as priced + gated by this gateway.

object
name
required
Name

Kebab-case workflow name — the {name} of POST /v1/{name}.

string
op_class
required
Op Class

Pricing class: generator (catalog assets) | compose (product-to-model) | edit (swaps).

string
Allowed values: generator compose edit
credits_cost
required
Credits Cost

Flat per-dispatch credit cost for this operation.

integer
enabled
required
Enabled

False when the operation is administratively disabled on this gateway.

boolean
Example
{
"operations": [
{
"op_class": "generator"
}
]
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}