Sandbox URLs
| Application | Sandbox URL |
|---|---|
| OroCommerce storefront | http://<hostname>/api/doc |
| OroCommerce back-office | http://<hostname>/admin/api/doc |
| OroPlatform | http://<hostname>/api/doc |
The
admin prefix is the default back-office prefix and can be changed by your administrator.Navigating the sandbox
The sandbox page displays a list of all available JSON:API resources.- Click a resource row or the List Operations link to see the available HTTP methods grouped by resource URI.
- Click a method row to expand the documentation and sandbox form for that method.
- Click Expand Operations to see all methods for a resource at once.
- Click Show/hide to toggle the collapsed/expanded state of a resource.
- Use the type selector at the top to switch between different API types.
OroCommerce: JSON:API (SKU) type
On the OroCommerce storefront sandbox, you can select the JSON:API (SKU) type to use product SKUs instead of product IDs. To enable this in API requests, include theX-Product-ID: sku request header.
Retrieve a single record
The response includes:
- Request URL — the full URL sent to the server.
- Response Headers — status code and headers. Expand to see all headers.
- Response Body — the entity data in JSON:API format.
- Curl Command Line — an equivalent
curlcommand to reproduce the request.
Edit a record
Provide the request body
In the Content section, provide the changes to apply. For example, to update the
firstName field of a user: