REST endpoints for Admin UI SDK

Adobe Commerce provides several REST endpoints that interact with the Admin UI SDK processes. These endpoints require an admin token on PaaS systems or a token using Adobe's Identity Management System (IMS) on SaaS systems.

Mass actions without iFrames

When a mass action displayIframe parameter is set to false, you must account for additional factors.

Application failures:

Connection interruption failures:

By default, Commerce waits 10 seconds for a response, though the extension point can customize this value. When the timeout is reached, Commerce:

Additional details through REST API:

The GET V1/adminuisdk/massaction/<requestId> endpoint returns details of the failed request when a mass action without an iFrame fails to execute.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Responses:

Example usage:

curl -X GET \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/massaction/<REQUEST_ID>'

Recommendations:

Order view button without iFrames

When an order view button displayIframe parameter is set to false, you must account for additional factors.

Application failures:

Connection interruption failures:

By default, Commerce waits 10 seconds for a response, though the extension point can customize this value. When the timeout is reached, Commerce:

Additional details through REST API:

The GET V1/adminuisdk/orderviewbutton/<requestId> endpoint returns details of the failed request when an order view button without iFrame fails to execute.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Responses:

Example usage:

curl -X GET \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/orderviewbutton/<REQUEST_ID>'

Recommendations

App Management

The following endpoints manage selected extensions stored in the Commerce database.

Save a selected extension

POST /V1/adminuisdk/extension

Saves a selected extension record to the database.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Request body:

All fields are defined in the extension object.

Field
Type
Required
Description
extension_name
string
Yes
The extension name
extension_title
string
Yes
The extension title
extension_url
string
Yes
The extension UR, which must be in the format https://[a-zA-Z0-9-]/.adobeio-static.net/index.html
extension_workspace
string
Yes
The extension workspace

Example usage:

curl -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    -d '{"extension": {"extension_name": "my-extension", "extension_title": "My Extension", "extension_url": "https://myapp-example/.adobeio-static.net/index.html", "extension_workspace": "production"}}' \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/extension'

Responses:

Delete a selected extension

DELETE /V1/adminuisdk/extension/<workspace_name>/<extension_name>

Deletes the specified extension from the database by workspace name and extension name.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Path parameters:

Parameter
Type
Required
Description
workspace_name
string
Yes
The workspace name
extension_name
string
Yes
The extension name

Example usage:

curl -X DELETE \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/extension/<WORKSPACE_NAME>/<EXTENSION_NAME>'

Responses: