API Integration module
The Magento_OopeApiIntegrations module (magento/module-oope-api-integrations) exposes a REST endpoint that allows external applications and out-of-process services to read Commerce configuration data that has no existing REST surface in core Commerce.
REST endpoint
The GET /V1/order-statuses endpoint returns all order statuses configured in the Commerce instance, joined with their state assignments. It requires an admin token with the Magento_OopeApiIntegrations::order_statuses ACL resource.
A status assigned to multiple states appears as one entry per state. A status not assigned to any state appears once with state: null.
The response combines data from two tables:
sales_order_status— status code and labelsales_order_status_state— state assignment, default flag, and storefront visibility (LEFT JOINed, so unassigned statuses are included)
Response fields:
statussales_order_status).labelstatenull if not assigned to any state.is_defaultvisible_on_frontExample request:
curl --request GET \
--url <ADOBE_COMMERCE_API_URL>/rest/V1/order-statuses \
--header 'Authorization: Bearer <admin_token>'
Example response:
[
{
"status": "pending",
"label": "Pending",
"state": "new",
"is_default": true,
"visible_on_front": false
},
{
"status": "pending_payment",
"label": "Pending Payment",
"state": "pending_payment",
"is_default": true,
"visible_on_front": false
},
{
"status": "processing",
"label": "Processing",
"state": "processing",
"is_default": true,
"visible_on_front": true
},
{
"status": "complete",
"label": "Complete",
"state": "complete",
"is_default": true,
"visible_on_front": true
},
{
"status": "custom_status",
"label": "My Custom Status",
"state": null,
"is_default": false,
"visible_on_front": false
}
]
ACL resources
Magento_OopeApiIntegrations::oopeMagento_OopeApiIntegrations::order_statusesInstallation
This module is included by default in Adobe Commerce as a Cloud Service. For on-premises or cloud infrastructure projects, install it using Composer.
-
Run the following command to install the module:
composer require magento/module-oope-api-integrations=^1.0 -
Enable the module.
bin/magento module:enable Magento_OopeApiIntegrations bin/magento setup:upgrade