PUT /corporate/subAccount/{id}/plan

Update sub-account plan

This endpoint will update the sub-account plan. On the Corporate solution new version v2, you can set an unlimited number of credits in your sub-organization. Please pass the value “-1" to set the consumable in unlimited mode.

Options

Id
Id of the sub-account organization
Body
Values to update a sub-account plan

Request body which must comply to the following JSON Schema:

{
  "type" : "object",
  "properties" : {
    "credits" : {
      "type" : "object",
      "properties" : {
        "email" : {
          "type" : "integer",
          "description" : "Number of email credits",
          "format" : "int64"
        },
        "sms" : {
          "type" : "number",
          "description" : "Number of SMS credits | available in ENT-v2 only",
          "format" : "float"
        },
        "wpSubscribers" : {
          "type" : "integer",
          "description" : "Number of Push credits, possible value is 0 and -1 | available in ENT-v2 only",
          "format" : "int64"
        }
      },
      "description" : "Credit details to update"
    },
    "features" : {
      "type" : "object",
      "properties" : {
        "users" : {
          "type" : "integer",
          "description" : "Number of multi-users",
          "format" : "int64"
        },
        "landingPage" : {
          "type" : "integer",
          "description" : "Number of landing pages / Not required on ENTv2",
          "format" : "int64"
        },
        "inbox" : {
          "type" : "integer",
          "description" : "Number of inboxes / Not required on ENTv2",
          "format" : "int64"
        }
      },
      "description" : "Features details to update"
    }
  },
  "description" : "Details of the plan to be changed",
  "example" : {
    "credits" : {
      "email" : 5000,
      "sms" : 2000,
      "wpSubscribers" : -1
    },
    "features" : {
      "users" : 15,
      "landingPage" : 20,
      "inbox" : 10
    }
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.