Chilkat Online Tools

SQL Server / Zoom API / Subscribe account to a plan

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    DECLARE @req int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.HttpRequest', @req OUT

    EXEC sp_OASetProperty @req, 'HttpVerb', 'POST'
    EXEC sp_OASetProperty @req, 'Path', '/v2/accounts/:accountId/plans'
    EXEC sp_OASetProperty @req, 'ContentType', 'multipart/form-data'

    DECLARE @jsonFormData1 int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jsonFormData1 OUT

    EXEC sp_OAMethod @jsonFormData1, 'UpdateString', @success OUT, 'type', 'irure ut'
    EXEC sp_OAMethod @jsonFormData1, 'UpdateInt', @success OUT, 'hosts', -25784926
    EXEC sp_OAMethod @jsonFormData1, 'UpdateInt', @success OUT, 'increasing_hosts', -38317701
    EXEC sp_OAMethod @jsonFormData1, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_base', @sTmp0

    DECLARE @jsonFormData2 int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jsonFormData2 OUT

    EXEC sp_OAMethod @jsonFormData2, 'UpdateString', @success OUT, 'type', 'irure ut'
    EXEC sp_OAMethod @jsonFormData2, 'UpdateInt', @success OUT, 'hosts', -25784926
    EXEC sp_OAMethod @jsonFormData2, 'UpdateInt', @success OUT, 'increasing_hosts', -38317701
    EXEC sp_OAMethod @jsonFormData2, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'contact', @sTmp0

    DECLARE @jsonFormData3 int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jsonFormData3 OUT

    EXEC sp_OAMethod @jsonFormData3, 'UpdateString', @success OUT, 'type', 'irure ut'
    EXEC sp_OAMethod @jsonFormData3, 'UpdateInt', @success OUT, 'hosts', -25784926
    EXEC sp_OAMethod @jsonFormData3, 'UpdateInt', @success OUT, 'increasing_hosts', -38317701
    EXEC sp_OAMethod @jsonFormData3, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_zoom_rooms', @sTmp0

    DECLARE @jsonFormData4 int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jsonFormData4 OUT

    EXEC sp_OAMethod @jsonFormData4, 'UpdateString', @success OUT, 'type', 'irure ut'
    EXEC sp_OAMethod @jsonFormData4, 'UpdateInt', @success OUT, 'hosts', -25784926
    EXEC sp_OAMethod @jsonFormData4, 'UpdateInt', @success OUT, 'increasing_hosts', -38317701
    EXEC sp_OAMethod @jsonFormData4, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_room_connector', @sTmp0

    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_large_meeting', '{"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}]'

    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_webinar', '{"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}]'

    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_zoom_events', '{"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}][{"type":"est nulla ipsum dolor consectetur","hosts":77087465},{"type":"proident ut","hosts":-2792932}]'

    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_recording', '{"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}][{"type":"est nulla ipsum dolor consectetur","hosts":77087465},{"type":"proident ut","hosts":-2792932}]exercitation voluptate fugiat'

    DECLARE @jsonFormData9 int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jsonFormData9 OUT

    EXEC sp_OAMethod @jsonFormData9, 'UpdateString', @success OUT, 'type', 'irure ut'
    EXEC sp_OAMethod @jsonFormData9, 'UpdateInt', @success OUT, 'hosts', -25784926
    EXEC sp_OAMethod @jsonFormData9, 'UpdateInt', @success OUT, 'increasing_hosts', -38317701
    EXEC sp_OAMethod @jsonFormData9, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_audio', @sTmp0

    DECLARE @jsonFormData10 int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jsonFormData10 OUT

    EXEC sp_OAMethod @jsonFormData10, 'UpdateString', @success OUT, 'type', 'irure ut'
    EXEC sp_OAMethod @jsonFormData10, 'UpdateInt', @success OUT, 'hosts', -25784926
    EXEC sp_OAMethod @jsonFormData10, 'UpdateInt', @success OUT, 'increasing_hosts', -38317701
    EXEC sp_OAMethod @jsonFormData10, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'plan_phone', @sTmp0

    EXEC sp_OAMethod @req, 'AddHeader', NULL, 'Authorization', 'Bearer <access_token>'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'SynchronousRequest', @resp OUT, 'api.zoom.us', 443, 1, @req
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @req
        EXEC @hr = sp_OADestroy @jsonFormData1
        EXEC @hr = sp_OADestroy @jsonFormData2
        EXEC @hr = sp_OADestroy @jsonFormData3
        EXEC @hr = sp_OADestroy @jsonFormData4
        EXEC @hr = sp_OADestroy @jsonFormData9
        EXEC @hr = sp_OADestroy @jsonFormData10
        RETURN
      END

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @req
        EXEC @hr = sp_OADestroy @jsonFormData1
        EXEC @hr = sp_OADestroy @jsonFormData2
        EXEC @hr = sp_OADestroy @jsonFormData3
        EXEC @hr = sp_OADestroy @jsonFormData4
        EXEC @hr = sp_OADestroy @jsonFormData9
        EXEC @hr = sp_OADestroy @jsonFormData10
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp


    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @req
    EXEC @hr = sp_OADestroy @jsonFormData1
    EXEC @hr = sp_OADestroy @jsonFormData2
    EXEC @hr = sp_OADestroy @jsonFormData3
    EXEC @hr = sp_OADestroy @jsonFormData4
    EXEC @hr = sp_OADestroy @jsonFormData9
    EXEC @hr = sp_OADestroy @jsonFormData10
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: multipart/form-data"
	--form 'plan_base={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}'
	--form 'contact={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}'
	--form 'plan_zoom_rooms={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}'
	--form 'plan_room_connector={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}'
	--form 'plan_large_meeting={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}]'
	--form 'plan_webinar={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}]'
	--form 'plan_zoom_events={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}][{"type":"est nulla ipsum dolor consectetur","hosts":77087465},{"type":"proident ut","hosts":-2792932}]'
	--form 'plan_recording={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}][{"type":"est nulla ipsum dolor consectetur","hosts":77087465},{"type":"proident ut","hosts":-2792932}]exercitation voluptate fugiat'
	--form 'plan_audio={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}][{"type":"est nulla ipsum dolor consectetur","hosts":77087465},{"type":"proident ut","hosts":-2792932}]exercitation voluptate fugiat{"type":"id","tollfree_countries":"minim","premium_countries":"do","callout_countries":"cillum labore","ddi_numbers":-25280327}'
	--form 'plan_phone={"type":"irure ut","hosts":-25784926,"increasing_hosts":-38317701}{"first_name":"Excepteur sit velit consequat labore","last_name":"eu non","email":"consequ","phone_number":"mollit deserunt eiusmod","address":"dolore enim","city":"do nostrud ut mollit","state":"aute ipsum in aliqua","zip":"nulla reprehenderit esse","country":"aliquip dolore","apt":"esse Excep"}{"type":"volu","hosts":-14818293}{"type":"laboris officia","hosts":-78045389}[{"type":"irure nisi","hosts":-56105234},{"type":"des","hosts":-30109516}][{"type":"Ut nisi Excepteur in","hosts":-85140980},{"type":"cillum aute sunt Lorem","hosts":-70211628}][{"type":"est nulla ipsum dolor consectetur","hosts":77087465},{"type":"proident ut","hosts":-2792932}]exercitation voluptate fugiat{"type":"id","tollfree_countries":"minim","premium_countries":"do","callout_countries":"cillum labore","ddi_numbers":-25280327}{"plan_base":{"type":"irure veniam occaecat amet","callout_countries":"d"},"plan_calling":[{"type":"anim laboris quis","hosts":-31557504},{"type":"commodo sint incididunt elit","hosts":-9893480}],"plan_number":[{"type":"qui laborum","hosts":78392540},{"type":"enim adipisicing Ut ullamco qui","hosts":36515919}]}'
https://api.zoom.us/v2/accounts/:accountId/plans

Postman Collection Item JSON

{
  "name": "Subscribe account to a plan",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "multipart/form-data"
      }
    ],
    "body": {
      "mode": "formdata",
      "formdata": [
        {
          "key": "plan_base",
          "value": "{\"type\":\"irure ut\",\"hosts\":-25784926,\"increasing_hosts\":-38317701}",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "contact",
          "value": "{\"first_name\":\"Excepteur sit velit consequat labore\",\"last_name\":\"eu non\",\"email\":\"consequ\",\"phone_number\":\"mollit deserunt eiusmod\",\"address\":\"dolore enim\",\"city\":\"do nostrud ut mollit\",\"state\":\"aute ipsum in aliqua\",\"zip\":\"nulla reprehenderit esse\",\"country\":\"aliquip dolore\",\"apt\":\"esse Excep\"}",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_zoom_rooms",
          "value": "{\"type\":\"volu\",\"hosts\":-14818293}",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_room_connector",
          "value": "{\"type\":\"laboris officia\",\"hosts\":-78045389}",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_large_meeting",
          "value": "[{\"type\":\"irure nisi\",\"hosts\":-56105234},{\"type\":\"des\",\"hosts\":-30109516}]",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_webinar",
          "value": "[{\"type\":\"Ut nisi Excepteur in\",\"hosts\":-85140980},{\"type\":\"cillum aute sunt Lorem\",\"hosts\":-70211628}]",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_zoom_events",
          "value": "[{\"type\":\"est nulla ipsum dolor consectetur\",\"hosts\":77087465},{\"type\":\"proident ut\",\"hosts\":-2792932}]",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_recording",
          "value": "exercitation voluptate fugiat",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_audio",
          "value": "{\"type\":\"id\",\"tollfree_countries\":\"minim\",\"premium_countries\":\"do\",\"callout_countries\":\"cillum labore\",\"ddi_numbers\":-25280327}",
          "description": "undefined",
          "type": "text"
        },
        {
          "key": "plan_phone",
          "value": "{\"plan_base\":{\"type\":\"irure veniam occaecat amet\",\"callout_countries\":\"d\"},\"plan_calling\":[{\"type\":\"anim laboris quis\",\"hosts\":-31557504},{\"type\":\"commodo sint incididunt elit\",\"hosts\":-9893480}],\"plan_number\":[{\"type\":\"qui laborum\",\"hosts\":78392540},{\"type\":\"enim adipisicing Ut ullamco qui\",\"hosts\":36515919}]}",
          "description": "undefined",
          "type": "text"
        }
      ]
    },
    "url": {
      "raw": "{{baseUrl}}/accounts/:accountId/plans",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "accounts",
        ":accountId",
        "plans"
      ],
      "variable": [
        {
          "key": "accountId",
          "value": "quis officia in reprehenderit",
          "description": "(Required) The account's ID."
        }
      ]
    },
    "description": "Use this API to subscribe a subaccount to a Zoom plan using your Master account. \n\n This API can only be used by Master accounts that pay all billing charges of their associated Pro or higher subaccounts. Zoom only allows [approved partners](https://marketplace.zoom.us/docs/api-reference/master-account-apis) to use Master APIs and manage subaccounts' billing information. Email the partner programs team at [**partner-success@zoom.us**](mailto:partner-success@zoom.us) for more details. \n\n **Note:** To subscribe to an addon plan **after** subscribing to a base plan, you **must** use the [**Subscribe additional plan**](https://marketplace.zoom.us/docs/api-reference/zoom-api/billing/accountplanaddoncreate) API.\n\n**Scopes:** `billing:master`"
  },
  "response": [
    {
      "name": "**Error Code:** `200`<br>\nOne zuora account only can have one active billing subscription.<br>\nCan’t subscribe 25-participants pro plan for this sub-account.<br>\nCan’t subscribe 50-participants pro plan for this sub-account.<br>\nIn order to take advantage",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "plan_base",
              "value": "{\"type\":\"ipsum occaecat sit\",\"hosts\":-80190804,\"increasing_hosts\":78929086}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "contact",
              "value": "{\"first_name\":\"in laboris ut est\",\"last_name\":\"ut Ut occaecat anim voluptate\",\"email\":\"Ut laborum labor\",\"phone_number\":\"do\",\"address\":\"elit reprehenderit\",\"city\":\"elit aliquip ut L\",\"state\":\"eu in occaeca\",\"zip\":\"labore L\",\"country\":\"mollit deserunt proident Lorem ipsum\",\"apt\":\"cons\"}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_rooms",
              "value": "{\"type\":\"occaecat\",\"hosts\":27049610}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_room_connector",
              "value": "{\"type\":\"sed\",\"hosts\":94418581}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_large_meeting",
              "value": "[{\"type\":\"proident\",\"hosts\":-94142518},{\"type\":\"tempor incididunt ad adipisicing\",\"hosts\":-40305312}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_webinar",
              "value": "[{\"type\":\"occaecat\",\"hosts\":-70222367},{\"type\":\"non do reprehenderit\",\"hosts\":-31415448}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_events",
              "value": "[{\"type\":\"ut nostrud voluptate\",\"hosts\":-70984842},{\"type\":\"cillum dolor anim\",\"hosts\":-78460596}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_recording",
              "value": "non sunt ex ut consequat",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_audio",
              "value": "{\"type\":\"irure fugiat ad\",\"tollfree_countries\":\"exe\",\"premium_countries\":\"ad deserunt in\",\"callout_countries\":\"exercitation pariatur nisi aliqua sed\",\"ddi_numbers\":18484358}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_phone",
              "value": "{\"plan_base\":{\"type\":\"anim incididunt sed sint officia\",\"callout_countries\":\"quis\"},\"plan_calling\":[{\"type\":\"ut Duis sed\",\"hosts\":75670660},{\"type\":\"id\",\"hosts\":37851603}],\"plan_number\":[{\"type\":\"minim velit adipisicing irure\",\"hosts\":-36598101},{\"type\":\"dolore reprehenderit sunt nisi\",\"hosts\":73151976}]}",
              "description": "undefined",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/accounts/:accountId/plans",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "accounts",
            ":accountId",
            "plans"
          ],
          "variable": [
            {
              "key": "accountId",
              "value": "quis officia in reprehenderit",
              "description": "(Required) The account's ID."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{}"
    },
    {
      "name": "**HTTP Status Code:**`201`<br>\nAccount plans updated.",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "plan_base",
              "value": "{\"type\":\"ipsum occaecat sit\",\"hosts\":-80190804,\"increasing_hosts\":78929086}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "contact",
              "value": "{\"first_name\":\"in laboris ut est\",\"last_name\":\"ut Ut occaecat anim voluptate\",\"email\":\"Ut laborum labor\",\"phone_number\":\"do\",\"address\":\"elit reprehenderit\",\"city\":\"elit aliquip ut L\",\"state\":\"eu in occaeca\",\"zip\":\"labore L\",\"country\":\"mollit deserunt proident Lorem ipsum\",\"apt\":\"cons\"}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_rooms",
              "value": "{\"type\":\"occaecat\",\"hosts\":27049610}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_room_connector",
              "value": "{\"type\":\"sed\",\"hosts\":94418581}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_large_meeting",
              "value": "[{\"type\":\"proident\",\"hosts\":-94142518},{\"type\":\"tempor incididunt ad adipisicing\",\"hosts\":-40305312}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_webinar",
              "value": "[{\"type\":\"occaecat\",\"hosts\":-70222367},{\"type\":\"non do reprehenderit\",\"hosts\":-31415448}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_events",
              "value": "[{\"type\":\"ut nostrud voluptate\",\"hosts\":-70984842},{\"type\":\"cillum dolor anim\",\"hosts\":-78460596}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_recording",
              "value": "non sunt ex ut consequat",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_audio",
              "value": "{\"type\":\"irure fugiat ad\",\"tollfree_countries\":\"exe\",\"premium_countries\":\"ad deserunt in\",\"callout_countries\":\"exercitation pariatur nisi aliqua sed\",\"ddi_numbers\":18484358}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_phone",
              "value": "{\"plan_base\":{\"type\":\"anim incididunt sed sint officia\",\"callout_countries\":\"quis\"},\"plan_calling\":[{\"type\":\"ut Duis sed\",\"hosts\":75670660},{\"type\":\"id\",\"hosts\":37851603}],\"plan_number\":[{\"type\":\"minim velit adipisicing irure\",\"hosts\":-36598101},{\"type\":\"dolore reprehenderit sunt nisi\",\"hosts\":73151976}]}",
              "description": "undefined",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/accounts/:accountId/plans",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "accounts",
            ":accountId",
            "plans"
          ],
          "variable": [
            {
              "key": "accountId",
              "value": "quis officia in reprehenderit",
              "description": "(Required) The account's ID."
            }
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"plan_base\": {\n  \"type\": \"monthly\",\n  \"hosts\": 100,\n  \"partner_sku\": \"PAR3-PRO-BASE-MTH\",\n  \"discount_rate\": 13.53,\n  \"discount_percent\": 0\n },\n \"plan_zoom_rooms\": {\n  \"type\": \"string\",\n  \"hosts\": \"integer\",\n  \"partner_sku\": \"string\",\n  \"discount_rate\": \"double\",\n  \"discount_percent\": \"integer\"\n },\n \"plan_room_connector\": {\n  \"type\": \"string\",\n  \"hosts\": \"integer\",\n  \"partner_sku\": \"string\",\n  \"discount_rate\": \"double\",\n  \"discount_percent\": \"integer\"\n },\n \"plan_large_meeting\": [\n  {\n   \"type\": \"plan_large500_two_years\",\n   \"hosts\": 10,\n   \"partner_sku\": \"PAR1-LMR-500-NH2Y\",\n   \"discount_rate\": 1140,\n   \"discount_percent\": 0\n  }\n ],\n \"plan_webinar\": [\n  {\n   \"type\": \"webinar500_monthly\",\n   \"hosts\": 10,\n   \"partner_sku\": \"PAR1-WEB-500-FL-1M\",\n   \"discount_rate\": 112,\n   \"discount_percent\": 20\n  }\n ],\n \"plan_zoom_events\": [\n  {\n   \"type\": \"zoomevents500_monthly\",\n   \"hosts\": 50,\n   \"partner_sku\": \"PAR1-EVN -500-FL1M\",\n   \"discount_rate\": 99,\n   \"discount_percent\": 0\n  }\n ],\n \"plan_audio\": {\n  \"type\": \"tollfree_payongo\",\n  \"tollfree_countries\": \"US\",\n  \"premium_countries\": \"\",\n  \"callout_countries\": \"\",\n  \"ddi_numbers\": 0,\n  \"partner_sku\": \"PAR-AUD-INCL\",\n  \"discount_rate\": 0,\n  \"discount_percent\": 0\n }\n}"
    },
    {
      "name": "**Error Code**: `300`<br>Account can’t buy this plan.<br>Buy hosts must equal or larger than {minBuyHost}.<br>Buy hosts must equal or smaller than {maxBuyHost}.<br>Buy hosts must equal or smaller than 9999.<br>Active hosts must be equal or larger than buy",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "plan_base",
              "value": "{\"type\":\"ipsum occaecat sit\",\"hosts\":-80190804,\"increasing_hosts\":78929086}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "contact",
              "value": "{\"first_name\":\"in laboris ut est\",\"last_name\":\"ut Ut occaecat anim voluptate\",\"email\":\"Ut laborum labor\",\"phone_number\":\"do\",\"address\":\"elit reprehenderit\",\"city\":\"elit aliquip ut L\",\"state\":\"eu in occaeca\",\"zip\":\"labore L\",\"country\":\"mollit deserunt proident Lorem ipsum\",\"apt\":\"cons\"}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_rooms",
              "value": "{\"type\":\"occaecat\",\"hosts\":27049610}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_room_connector",
              "value": "{\"type\":\"sed\",\"hosts\":94418581}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_large_meeting",
              "value": "[{\"type\":\"proident\",\"hosts\":-94142518},{\"type\":\"tempor incididunt ad adipisicing\",\"hosts\":-40305312}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_webinar",
              "value": "[{\"type\":\"occaecat\",\"hosts\":-70222367},{\"type\":\"non do reprehenderit\",\"hosts\":-31415448}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_events",
              "value": "[{\"type\":\"ut nostrud voluptate\",\"hosts\":-70984842},{\"type\":\"cillum dolor anim\",\"hosts\":-78460596}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_recording",
              "value": "non sunt ex ut consequat",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_audio",
              "value": "{\"type\":\"irure fugiat ad\",\"tollfree_countries\":\"exe\",\"premium_countries\":\"ad deserunt in\",\"callout_countries\":\"exercitation pariatur nisi aliqua sed\",\"ddi_numbers\":18484358}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_phone",
              "value": "{\"plan_base\":{\"type\":\"anim incididunt sed sint officia\",\"callout_countries\":\"quis\"},\"plan_calling\":[{\"type\":\"ut Duis sed\",\"hosts\":75670660},{\"type\":\"id\",\"hosts\":37851603}],\"plan_number\":[{\"type\":\"minim velit adipisicing irure\",\"hosts\":-36598101},{\"type\":\"dolore reprehenderit sunt nisi\",\"hosts\":73151976}]}",
              "description": "undefined",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/accounts/:accountId/plans",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "accounts",
            ":accountId",
            "plans"
          ],
          "variable": [
            {
              "key": "accountId",
              "value": "quis officia in reprehenderit",
              "description": "(Required) The account's ID."
            }
          ]
        }
      },
      "status": "Multiple Choices",
      "code": 300,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "**HTTP Status Code:** `400`<br> **Error Code:** `2100`<br> Invalid parameter: first_name<br>\nInvalid parameter: last_name<br>Invalid parameter: email<br>Invalid parameter: country<br>Invalid parameter: address\nInvalid parameter: city<br>Invalid parameter:",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "plan_base",
              "value": "{\"type\":\"ipsum occaecat sit\",\"hosts\":-80190804,\"increasing_hosts\":78929086}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "contact",
              "value": "{\"first_name\":\"in laboris ut est\",\"last_name\":\"ut Ut occaecat anim voluptate\",\"email\":\"Ut laborum labor\",\"phone_number\":\"do\",\"address\":\"elit reprehenderit\",\"city\":\"elit aliquip ut L\",\"state\":\"eu in occaeca\",\"zip\":\"labore L\",\"country\":\"mollit deserunt proident Lorem ipsum\",\"apt\":\"cons\"}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_rooms",
              "value": "{\"type\":\"occaecat\",\"hosts\":27049610}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_room_connector",
              "value": "{\"type\":\"sed\",\"hosts\":94418581}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_large_meeting",
              "value": "[{\"type\":\"proident\",\"hosts\":-94142518},{\"type\":\"tempor incididunt ad adipisicing\",\"hosts\":-40305312}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_webinar",
              "value": "[{\"type\":\"occaecat\",\"hosts\":-70222367},{\"type\":\"non do reprehenderit\",\"hosts\":-31415448}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_events",
              "value": "[{\"type\":\"ut nostrud voluptate\",\"hosts\":-70984842},{\"type\":\"cillum dolor anim\",\"hosts\":-78460596}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_recording",
              "value": "non sunt ex ut consequat",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_audio",
              "value": "{\"type\":\"irure fugiat ad\",\"tollfree_countries\":\"exe\",\"premium_countries\":\"ad deserunt in\",\"callout_countries\":\"exercitation pariatur nisi aliqua sed\",\"ddi_numbers\":18484358}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_phone",
              "value": "{\"plan_base\":{\"type\":\"anim incididunt sed sint officia\",\"callout_countries\":\"quis\"},\"plan_calling\":[{\"type\":\"ut Duis sed\",\"hosts\":75670660},{\"type\":\"id\",\"hosts\":37851603}],\"plan_number\":[{\"type\":\"minim velit adipisicing irure\",\"hosts\":-36598101},{\"type\":\"dolore reprehenderit sunt nisi\",\"hosts\":73151976}]}",
              "description": "undefined",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/accounts/:accountId/plans",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "accounts",
            ":accountId",
            "plans"
          ],
          "variable": [
            {
              "key": "accountId",
              "value": "quis officia in reprehenderit",
              "description": "(Required) The account's ID."
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "**HTTP Status Code:** `404`<br> **Error Code:** `1001`<br> User does not exist.<br> \n**Error Code:** `2001`<br> Account does not exist: {subAccountId}.<br>\n\n",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "plan_base",
              "value": "{\"type\":\"ipsum occaecat sit\",\"hosts\":-80190804,\"increasing_hosts\":78929086}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "contact",
              "value": "{\"first_name\":\"in laboris ut est\",\"last_name\":\"ut Ut occaecat anim voluptate\",\"email\":\"Ut laborum labor\",\"phone_number\":\"do\",\"address\":\"elit reprehenderit\",\"city\":\"elit aliquip ut L\",\"state\":\"eu in occaeca\",\"zip\":\"labore L\",\"country\":\"mollit deserunt proident Lorem ipsum\",\"apt\":\"cons\"}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_rooms",
              "value": "{\"type\":\"occaecat\",\"hosts\":27049610}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_room_connector",
              "value": "{\"type\":\"sed\",\"hosts\":94418581}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_large_meeting",
              "value": "[{\"type\":\"proident\",\"hosts\":-94142518},{\"type\":\"tempor incididunt ad adipisicing\",\"hosts\":-40305312}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_webinar",
              "value": "[{\"type\":\"occaecat\",\"hosts\":-70222367},{\"type\":\"non do reprehenderit\",\"hosts\":-31415448}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_zoom_events",
              "value": "[{\"type\":\"ut nostrud voluptate\",\"hosts\":-70984842},{\"type\":\"cillum dolor anim\",\"hosts\":-78460596}]",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_recording",
              "value": "non sunt ex ut consequat",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_audio",
              "value": "{\"type\":\"irure fugiat ad\",\"tollfree_countries\":\"exe\",\"premium_countries\":\"ad deserunt in\",\"callout_countries\":\"exercitation pariatur nisi aliqua sed\",\"ddi_numbers\":18484358}",
              "description": "undefined",
              "type": "text"
            },
            {
              "key": "plan_phone",
              "value": "{\"plan_base\":{\"type\":\"anim incididunt sed sint officia\",\"callout_countries\":\"quis\"},\"plan_calling\":[{\"type\":\"ut Duis sed\",\"hosts\":75670660},{\"type\":\"id\",\"hosts\":37851603}],\"plan_number\":[{\"type\":\"minim velit adipisicing irure\",\"hosts\":-36598101},{\"type\":\"dolore reprehenderit sunt nisi\",\"hosts\":73151976}]}",
              "description": "undefined",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/accounts/:accountId/plans",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "accounts",
            ":accountId",
            "plans"
          ],
          "variable": [
            {
              "key": "accountId",
              "value": "quis officia in reprehenderit",
              "description": "(Required) The account's ID."
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}