{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates multiple subscriptions for an account in a single request.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/bill-subs-api_identifier"}},"required":["account_id"],"additionalProperties":false},"query":{"type":"object","properties":{"idemp_key":{"type":"string"}},"required":[],"additionalProperties":false},"body":{"type":"object","properties":{"coupon_code":{"type":"string"},"payment_hold_id":{"type":"integer"},"subscriptions":{"type":"array","items":{"$ref":"#/definitions/bill-subs-api_subscription-v2"}},"user_is_on_session":{"type":"boolean"}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"bill-subs-api_identifier":{"description":"Identifier","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"bill-subs-api_subscription-v2":{"type":"object","properties":{"app":{"description":"Cloudflare Apps Marketplace is sunset. This field is retained for legacy grandfathered app subscriptions only.","type":"object","properties":{"install_id":{"$ref":"#/definitions/bill-subs-api_install_id"}}},"component_values":{"$ref":"#/definitions/bill-subs-api_component_values"},"currency":{"$ref":"#/definitions/bill-subs-api_currency"},"current_period_end":{"$ref":"#/definitions/bill-subs-api_current_period_end"},"current_period_start":{"$ref":"#/definitions/bill-subs-api_current_period_start"},"frequency":{"$ref":"#/definitions/bill-subs-api_frequency"},"id":{"$ref":"#/definitions/bill-subs-api_schemas-identifier"},"price":{"$ref":"#/definitions/bill-subs-api_price"},"rate_plan":{"$ref":"#/definitions/bill-subs-api_rate_plan"},"state":{"$ref":"#/definitions/bill-subs-api_state"},"zone":{"allOf":[{"$ref":"#/definitions/bill-subs-api_zone"}]}}},"bill-subs-api_install_id":{"description":"app install id.","type":"string"},"bill-subs-api_component_values":{"description":"Configurable component values for the subscription.","type":"array","items":{"$ref":"#/definitions/bill-subs-api_component_value"}},"bill-subs-api_currency":{"description":"The monetary unit in which pricing information is displayed.","type":"string","examples":["USD"]},"bill-subs-api_current_period_end":{"description":"The end of the current period and also when the next billing is due.","type":"string","format":"date-time","examples":["2014-03-31T12:20:00Z"]},"bill-subs-api_current_period_start":{"description":"When the current billing period started. May match initial_period_start if this is the first period.","type":"string","format":"date-time","examples":["2014-05-11T12:20:00Z"]},"bill-subs-api_frequency":{"description":"How often the subscription is renewed automatically.","type":"string","enum":["weekly","monthly","quarterly","yearly"],"examples":["monthly"]},"bill-subs-api_schemas-identifier":{"description":"Subscription identifier tag.","type":"string","maxLength":32,"examples":["506e3185e9c882d175a2d0cb0093d9f2"]},"bill-subs-api_price":{"description":"The price of the subscription that will be billed, in US dollars.","type":"number","examples":[20]},"bill-subs-api_rate_plan":{"description":"The rate plan applied to the subscription.","type":"object","properties":{"currency":{"description":"The currency applied to the rate plan subscription.","type":"string","examples":["USD"]},"externally_managed":{"description":"Whether this rate plan is managed externally from Cloudflare.","type":"boolean","examples":[false]},"id":{"description":"The ID of the rate plan.","type":"string","examples":["free"]},"is_contract":{"description":"Whether a rate plan is enterprise-based (or newly adopted term contract).","type":"boolean","examples":[false]},"public_name":{"description":"The full name of the rate plan.","type":"string","examples":["Business Plan"]},"scope":{"description":"The scope that this rate plan applies to.","type":"string","examples":["zone"]},"sets":{"description":"The list of sets this rate plan applies to. Returns array of strings.","type":"array","items":{"type":"string"},"examples":[[]]}}},"bill-subs-api_state":{"description":"The state that the subscription is in.","type":"string","enum":["Trial","Provisioned","Paid","AwaitingPayment","Cancelled","Failed","Expired"],"examples":["Paid"]},"bill-subs-api_zone":{"description":"A simple zone object. May have null properties if not a zone subscription.","type":"object","properties":{"id":{"$ref":"#/definitions/bill-subs-api_identifier"},"name":{"$ref":"#/definitions/bill-subs-api_name"}}},"bill-subs-api_component_value":{"description":"A component value for a subscription.","type":"object","properties":{"default":{"description":"The default amount assigned.","type":"number","examples":[5]},"display_name":{"description":"A human-readable version of the component name.","type":"string","examples":["Page Rules"]},"kind":{"description":"The type of component value. \"enum\" for discrete values (including boolean on/off toggles where 0=off and 1=on), \"sum\" for countable quantities, \"usage\" for metered billing components.","type":"string","enum":["enum","sum","usage"],"examples":["sum"]},"name":{"description":"The name of the component value.","type":"string","examples":["page_rules"]},"price":{"description":"The unit price for the component value.","type":"number","examples":[5]},"value":{"description":"The amount of the component value assigned.","type":"number","examples":[20]}}},"bill-subs-api_name":{"description":"The domain name","type":"string","maxLength":253,"pattern":"^([a-zA-Z0-9][\\-a-zA-Z0-9]*\\.)+[\\-a-zA-Z0-9]{2,20}$","examples":["example.com"]}}},"name":"Create Subscriptions","id":"cloudflare.account-subscriptions-bulk-create-subscription","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{}},"maxRequests":1,"summary":false}}