Create an extension

post

/ccadmin/v1/extensions

Note:This endpoint is intended for extensions that have just been uploaded and never previously activiated. It validates and processes a previously uploaded extension file. The file must have been uploaded previously using the /ccadmin/v1/files endpoint.

An ExtensionID must also have be created before uploading the extension and copied into the extension manifest file.

See Create an Extension for more information on extensions.

Sample Request:

       POST /ccadmin/v1/extensions    

Request

Supported Media Types
Body ()
Root Schema : createExtension_request
Type: object
Show Source
Example:
POST /ccadmin/v1/extensions
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : createExtension_response
Type: object
Show Source
Example Response (application/json)
{
    "success":true,
    "warnings":[
    ],
    "error":[
    ]
}

400 Response

Returned when the extension contains an error.
Body ()
Root Schema : createExtension_400response
Type: object
Show Source
Example Response (application/json)
{
    "message":"HTTP 400 Bad Request",
    "type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4",
    "status":"400"
}

401 Response

Returned if the user is not authenticated
Body ()
Root Schema : createExtension_401response
Type: object
Show Source
Example Response (application/json)
{
    "errorCode":"00001000",
    "message":"The user is not authenticated",
    "status":"401"
}

404 Response

Returned if the source extension is not found.
Body ()
Root Schema : createExtension_404response
Type: object
Show Source
Example Response (application/json)
{
    "message":"HTTP 404 not found",
    "type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4",
    "status":"404"
}

500 Response

Returned if an internal error occurs in the endpoint.
Body ()
Root Schema : createExtension_500response
Type: object
Show Source
Example Response (application/json)
{
    "errorCode":"000000000",
    "message":"Internal Error",
    "status":"500"
}

Default Response

The following internal error codes are thrown by this API when the request fails in Commerce:
Error CodeDescriptionPossible Fix
91004Extension internal errorSee error messages for further information.
20307File not foundEnsure that the extension file has been uploaded.

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