Retrieve current version

get

/ccadmin/v1/jsframeworkadmin

Gets the version information for the storefront JavaScript framework. This endpoint can be used to check if a rollback or version upgrade is possible for the version of the storefront JavaScript framework currently in use.

Note: This endpoint is not supported in OSF.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : getCurrentVersionDetails_response
Type: object
Show Source
Example Response (application/json)
{
    "storefrontVersion":[
        "string",
        "The latest available version of the storefront JavaScript framework."
    ],
    "success":[
        "boolean",
        "Whether the rollback was successful."
    ],
    "previousVersion":[
        "string",
        "Optional value. The previous storefront JavaScript framework version, if there is one."
    ],
    "currentVersion":[
        "string",
        "The storefront JavaScript framework version currently in use."
    ]
}

Default Response

The following internal error codes are thrown by this API when the request fails in Commerce:
Error CodeDescriptionPossible Fix
30105Site not found.Ensure you specify a valid site ID.

The error response:
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top