> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itspropel.com/llms.txt.
> For full documentation content, see https://docs.itspropel.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itspropel.com/_mcp/server.

# Create Subscription

POST https://companies/%7Bcompany_uuid%7D/config/billing/subscription
Content-Type: multipart/form-data

Reference: https://docs.itspropel.com/propel-biz/25-platform-billing-saa-s/tenant/create-subscription

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: PropelBiz
  version: 1.0.0
paths:
  /companies/%7Bcompany_uuid%7D/config/billing/subscription:
    post:
      operationId: create-subscription
      summary: Create Subscription
      tags:
        - >-
          subpackage_25PlatformBillingSaaS.subpackage_25PlatformBillingSaaS/tenant
      parameters:
        - name: '{{tenant_key_name}}'
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/25 Platform Billing (SaaS)_Tenant_Create
                  Subscription_Response_200
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                plan_id:
                  type: string
                  description: 'Optional: Plan UUID to subscribe to - exists in saas_plans'
                billing_cycle:
                  type: string
                  description: 'Required: Billing cycle - monthly|annual - "monthly"'
                module_ids[0]:
                  type: string
                  description: >-
                    Optional: Module UUIDs for a-la-carte - array - exists in
                    saas_modules
                promotion_code:
                  type: string
                  description: 'Optional: Promotion code to apply - string - "SUMMER2026"'
                payment_method_id:
                  type: string
                  description: 'Optional: Stripe payment method ID - string - "pm_xxx"'
                tenant_location_id:
                  type: string
                  description: 'Required: Tenant location UUID - exists in tenant_locations'
              required:
                - plan_id
                - billing_cycle
                - module_ids[0]
                - promotion_code
                - payment_method_id
                - tenant_location_id
servers:
  - url: https:/
components:
  schemas:
    25 Platform Billing (SaaS)_Tenant_Create Subscription_Response_200:
      type: object
      properties: {}
      description: Empty response body
      title: 25 Platform Billing (SaaS)_Tenant_Create Subscription_Response_200

```

## SDK Code Examples

```python
import requests

url = "https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription"

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plan_id\"\r\n\r\na1b2c3d4-e5f6-7890-ab12-cd34ef567890\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"billing_cycle\"\r\n\r\nmonthly\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"module_ids[0]\"\r\n\r\nm1234567-89ab-cdef-0123-456789abcdef\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"promotion_code\"\r\n\r\nSUMMER2026\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"payment_method_id\"\r\n\r\npm_1GqIC8Lz0qyl6XeW3xYz1234\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"tenant_location_id\"\r\n\r\nloc_98765432-1abc-def0-1234-56789abcdef0\r\n-----011000010111000001101001--\r\n"
headers = {
    "{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}",
    "Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription';
const form = new FormData();
form.append('plan_id', 'a1b2c3d4-e5f6-7890-ab12-cd34ef567890');
form.append('billing_cycle', 'monthly');
form.append('module_ids[0]', 'm1234567-89ab-cdef-0123-456789abcdef');
form.append('promotion_code', 'SUMMER2026');
form.append('payment_method_id', 'pm_1GqIC8Lz0qyl6XeW3xYz1234');
form.append('tenant_location_id', 'loc_98765432-1abc-def0-1234-56789abcdef0');

const options = {
  method: 'POST',
  headers: {'{{tenant_key_name}}': '{{tenant_key_value1}}|{{tenant_key_value2}}'}
};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plan_id\"\r\n\r\na1b2c3d4-e5f6-7890-ab12-cd34ef567890\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"billing_cycle\"\r\n\r\nmonthly\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"module_ids[0]\"\r\n\r\nm1234567-89ab-cdef-0123-456789abcdef\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"promotion_code\"\r\n\r\nSUMMER2026\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"payment_method_id\"\r\n\r\npm_1GqIC8Lz0qyl6XeW3xYz1234\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"tenant_location_id\"\r\n\r\nloc_98765432-1abc-def0-1234-56789abcdef0\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["{{tenant_key_name}}"] = '{{tenant_key_value1}}|{{tenant_key_value2}}'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plan_id\"\r\n\r\na1b2c3d4-e5f6-7890-ab12-cd34ef567890\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"billing_cycle\"\r\n\r\nmonthly\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"module_ids[0]\"\r\n\r\nm1234567-89ab-cdef-0123-456789abcdef\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"promotion_code\"\r\n\r\nSUMMER2026\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"payment_method_id\"\r\n\r\npm_1GqIC8Lz0qyl6XeW3xYz1234\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"tenant_location_id\"\r\n\r\nloc_98765432-1abc-def0-1234-56789abcdef0\r\n-----011000010111000001101001--\r\n"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription")
  .header("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plan_id\"\r\n\r\na1b2c3d4-e5f6-7890-ab12-cd34ef567890\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"billing_cycle\"\r\n\r\nmonthly\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"module_ids[0]\"\r\n\r\nm1234567-89ab-cdef-0123-456789abcdef\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"promotion_code\"\r\n\r\nSUMMER2026\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"payment_method_id\"\r\n\r\npm_1GqIC8Lz0qyl6XeW3xYz1234\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"tenant_location_id\"\r\n\r\nloc_98765432-1abc-def0-1234-56789abcdef0\r\n-----011000010111000001101001--\r\n")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription', [
  'multipart' => [
    [
        'name' => 'plan_id',
        'contents' => 'a1b2c3d4-e5f6-7890-ab12-cd34ef567890'
    ],
    [
        'name' => 'billing_cycle',
        'contents' => 'monthly'
    ],
    [
        'name' => 'module_ids[0]',
        'contents' => 'm1234567-89ab-cdef-0123-456789abcdef'
    ],
    [
        'name' => 'promotion_code',
        'contents' => 'SUMMER2026'
    ],
    [
        'name' => 'payment_method_id',
        'contents' => 'pm_1GqIC8Lz0qyl6XeW3xYz1234'
    ],
    [
        'name' => 'tenant_location_id',
        'contents' => 'loc_98765432-1abc-def0-1234-56789abcdef0'
    ]
  ]
  'headers' => [
    '{{tenant_key_name}}' => '{{tenant_key_value1}}|{{tenant_key_value2}}',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription");
var request = new RestRequest(Method.POST);
request.AddHeader("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}");
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plan_id\"\r\n\r\na1b2c3d4-e5f6-7890-ab12-cd34ef567890\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"billing_cycle\"\r\n\r\nmonthly\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"module_ids[0]\"\r\n\r\nm1234567-89ab-cdef-0123-456789abcdef\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"promotion_code\"\r\n\r\nSUMMER2026\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"payment_method_id\"\r\n\r\npm_1GqIC8Lz0qyl6XeW3xYz1234\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"tenant_location_id\"\r\n\r\nloc_98765432-1abc-def0-1234-56789abcdef0\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}"]
let parameters = [
  [
    "name": "plan_id",
    "value": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890"
  ],
  [
    "name": "billing_cycle",
    "value": "monthly"
  ],
  [
    "name": "module_ids[0]",
    "value": "m1234567-89ab-cdef-0123-456789abcdef"
  ],
  [
    "name": "promotion_code",
    "value": "SUMMER2026"
  ],
  [
    "name": "payment_method_id",
    "value": "pm_1GqIC8Lz0qyl6XeW3xYz1234"
  ],
  [
    "name": "tenant_location_id",
    "value": "loc_98765432-1abc-def0-1234-56789abcdef0"
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://https/companies/%7Bcompany_uuid%7D/config/billing/subscription")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```