1.0.1 • Public • Published


    B2CCommerceDeveloperSandboxRestApi - JavaScript client for b2_c_commerce_developer_sandbox_rest_api B2C Commerce provides a REST API to manage developer sandboxes. The API allows you to create, manage, and delete developer sandboxes. This SDK is automatically generated by the Swagger Codegen project:


    For Node.js


    To publish the library as a npm, please follow the procedure in "Publishing npm packages".

    Then install it via:

    npm install b2_c_commerce_developer_sandbox_rest_api --save
    Local development

    To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

    npm install

    Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

    npm link

    Finally, switch to the directory you want to use your b2_c_commerce_developer_sandbox_rest_api from, and run:

    npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

    You should now be able to require('b2_c_commerce_developer_sandbox_rest_api') in javascript files from the directory you ran the last command above from.


    If the library is hosted at a git repository, e.g. then install it via:

        npm install YOUR_USERNAME/b2_c_commerce_developer_sandbox_rest_api --save

    For browser

    The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

    browserify main.js > bundle.js

    Then include bundle.js in the HTML pages.

    Webpack Configuration

    Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

    module: {
      rules: [
          parser: {
            amd: false

    Getting Started

    Please follow the installation instruction and execute the following JS code:

    var B2CCommerceDeveloperSandboxRestApi = require('b2_c_commerce_developer_sandbox_rest_api');
    var defaultClient = B2CCommerceDeveloperSandboxRestApi.ApiClient.instance;
    // Configure OAuth2 access token for authorization: AccountManager
    var AccountManager = defaultClient.authentications['AccountManager'];
    AccountManager.accessToken = "YOUR ACCESS TOKEN"
    var api = new B2CCommerceDeveloperSandboxRestApi.CommonApi()
    var callback = function(error, data, response) {
      if (error) {
      } else {
        console.log('API called successfully. Returned data: ' + data);

    Documentation for API Endpoints

    All URIs are relative to https://localhost/api/v1

    Class Method HTTP request Description
    B2CCommerceDeveloperSandboxRestApi.CommonApi meGet GET /me Retrieve user information.
    B2CCommerceDeveloperSandboxRestApi.CommonApi rootGet GET / Retrieve API information.
    B2CCommerceDeveloperSandboxRestApi.CommonApi systemGet GET /system Retrieve system information
    B2CCommerceDeveloperSandboxRestApi.RealmsApi realmsRealmConfigurationGet GET /realms/{realm}/configuration Show realm configuration.
    B2CCommerceDeveloperSandboxRestApi.RealmsApi realmsRealmConfigurationPatch PATCH /realms/{realm}/configuration Update realm configuration.
    B2CCommerceDeveloperSandboxRestApi.RealmsApi realmsRealmGet GET /realms/{realm} Show realm information.
    B2CCommerceDeveloperSandboxRestApi.RealmsApi realmsRealmUsageGet GET /realms/{realm}/usage Show usage information for realm.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesGet GET /sandboxes List sandboxes.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesPost POST /sandboxes Create sandbox.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdAliasesGet GET /sandboxes/{sandboxId}/aliases Read all sandbox aliases
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdAliasesPost POST /sandboxes/{sandboxId}/aliases Create sandbox alias.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdAliasesSandboxAliasIdDelete DELETE /sandboxes/{sandboxId}/aliases/{sandboxAliasId} Delete Alias configuration
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdAliasesSandboxAliasIdGet GET /sandboxes/{sandboxId}/aliases/{sandboxAliasId} Read Alias configuration
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdDelete DELETE /sandboxes/{sandboxId} Delete sandbox.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdGet GET /sandboxes/{sandboxId} Retrieve sandbox information.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdOperationsGet GET /sandboxes/{sandboxId}/operations List sandbox operations.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdOperationsOperationIdGet GET /sandboxes/{sandboxId}/operations/{operationId} Retrieve sandbox operation.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdOperationsPost POST /sandboxes/{sandboxId}/operations Run sandbox operation.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdPatch PATCH /sandboxes/{sandboxId} Update sandbox.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdSettingsGet GET /sandboxes/{sandboxId}/settings Show sandbox settings.
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdStorageGet GET /sandboxes/{sandboxId}/storage Show sandbox storage
    B2CCommerceDeveloperSandboxRestApi.SandboxesApi sandboxesSandboxIdUsageGet GET /sandboxes/{sandboxId}/usage Show sandbox usage.

    Documentation for Models

    Documentation for Authorization





    npm i sandboxapi

    DownloadsWeekly Downloads






    Unpacked Size

    554 kB

    Total Files


    Last publish


    • usmanmehmood