> This is Payabli documentation. For a complete page index, fetch https://docs.payabli.com/llms.txt — append .md to any page URL for lightweight markdown. For section-level indexes, query parameters, and other AI-optimized access methods, see https://docs.payabli.com/ai-agents.md

# Create an organization

POST https://api-sandbox.payabli.com/api/v2/organizations
Content-Type: application/json

Creates an organization. Provide exactly one of `business` (to create
the business inline, recommended) or `businessReference` (an existing
business). In intelligent boarding, an organization is a kind of paypoint, so the
request takes the paypoint create fields except `paypointType`. Payabli
sets the organization type itself. An organization isn't underwritten,
so only the fields needed to create the records are required. New
organizations start in `pending`. If you don't set
`parentPaypointReference`, the organization nests under the
organization your credential belongs to. Returns `409` if an
organization with the same `externalId` already exists.


Reference: https://docs.payabli.com/developers/api-reference/organizations/create-an-organization

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api-sandbox.payabli.com/api` (Sandbox, default)
- `https://api.payabli.com/api` (Production)

## Request

### Body (application/json)

This endpoint expects an organizations_CreateOrganization_Request.

- `organizations_CreateOrganization_Request`
  - Create business inline: CreateOrganizationWithInlineBusiness
  - Use existing business: CreateOrganizationWithBusinessReference
  - All fields: CreateOrganizationAllFields

## Response

### 201

Organization created.

- `success` (boolean, required) — Whether the request succeeded.
- `message` (string, required, nullable) — A human-readable result message.
- `traceId` (string, required, nullable) — The trace identifier for the request, useful for support.
- `data` (PaypointCreatedResponse, required, nullable) — The created paypoint.

## Errors

### 400 Bad Request Error

Bad request / invalid data.

- `isSuccess` (boolean, required) — Always `false` for error responses.
- `responseText` (string, required) — Error text describing what went wrong.
- `responseCode` (integer, optional) — Code for the response. Learn more in [API Response Codes](/developers/api-reference/api-responses).
- `responseData` (PayabliErrorBodyResponseData, optional) — Object with detailed error context.

### 401 Unauthorized Error

Unauthorized request.

- `isSuccess` (boolean, required) — Always `false` for error responses.
- `responseText` (string, required) — Error text describing what went wrong.
- `responseCode` (integer, optional) — Code for the response. Learn more in [API Response Codes](/developers/api-reference/api-responses).
- `responseData` (PayabliErrorBodyResponseData, optional) — Object with detailed error context.

### 404 Not Found Error

The requested resource wasn't found.

- `isSuccess` (boolean, required) — Always `false` for error responses.
- `responseText` (string, required) — Error text describing what went wrong.
- `responseCode` (integer, optional) — Code for the response. Learn more in [API Response Codes](/developers/api-reference/api-responses).
- `responseData` (PayabliErrorBodyResponseData, optional) — Object with detailed error context.

### 409 Conflict Error

The request conflicts with the current state of the resource.

- `isSuccess` (boolean, required) — Always `false` for error responses.
- `responseText` (string, required) — Error text describing what went wrong.
- `responseCode` (integer, optional) — Code for the response. Learn more in [API Response Codes](/developers/api-reference/api-responses).
- `responseData` (PayabliErrorBodyResponseData, optional) — Object with detailed error context.

### 500 Internal Server Error

Internal server error.

- `isSuccess` (boolean, required) — Always `false` for error responses.
- `responseText` (string, required) — Error text describing what went wrong.
- `responseCode` (integer, optional) — Code for the response. Learn more in [API Response Codes](/developers/api-reference/api-responses).
- `responseData` (PayabliErrorBodyResponseData, optional) — Object with detailed error context.

## Types

### CreateOrganizationWithInlineBusiness

Create an organization and its business together. Provide `business` plus `doingBusinessAs`. All other fields are optional.

- `doingBusinessAs` (string, required) — The name the organization does business as (DBA).
- `business` (CreateBusinessRequest, required) — The business to create inline for the organization. An organization isn't underwritten, so the business needs only the fields that creating a business requires. Include basic details such as `addressDetails`, `emails`, and `phone` when you have them.
- `parentPaypointReference` (string, optional) — The reference of the parent organization this organization nests under. If you omit it, the organization nests under the organization your credential belongs to.
- `description` (string, optional) — A free-text description of the organization.
- `website` (string, optional) — The organization's website URL.
- `customerServicePhone` (string, optional) — The customer service phone number.
- `customerServiceEmail` (string, optional) — The customer service email address.
- `timezone` (string, optional) — The organization's time zone, as an IANA identifier such as `America/Chicago`.
- `externalId` (string, optional) — Your own identifier for the organization.
- `customData` (map from string to any, optional) — Arbitrary key-value data you attach to the organization.

### CreateOrganizationWithBusinessReference

Create an organization under an existing business. Provide `businessReference` plus `doingBusinessAs`. All other fields are optional.

- `doingBusinessAs` (string, required) — The name the organization does business as (DBA).
- `businessReference` (string, required) — The reference of the existing business the organization belongs to.
- `parentPaypointReference` (string, optional) — The reference of the parent organization this organization nests under. If you omit it, the organization nests under the organization your credential belongs to.
- `description` (string, optional) — A free-text description of the organization.
- `website` (string, optional) — The organization's website URL.
- `customerServicePhone` (string, optional) — The customer service phone number.
- `customerServiceEmail` (string, optional) — The customer service email address.
- `timezone` (string, optional) — The organization's time zone, as an IANA identifier such as `America/Chicago`.
- `externalId` (string, optional) — Your own identifier for the organization.
- `customData` (map from string to any, optional) — Arbitrary key-value data you attach to the organization.

### CreateOrganizationAllFields

All fields accepted when creating an organization. Provide exactly one of `business` or `businessReference`.

- `doingBusinessAs` (string, required) — The name the organization does business as (DBA).
- `parentPaypointReference` (string, optional) — The reference of the parent organization this organization nests under. If you omit it, the organization nests under the organization your credential belongs to.
- `description` (string, optional) — A free-text description of the organization.
- `website` (string, optional) — The organization's website URL.
- `customerServicePhone` (string, optional) — The customer service phone number.
- `customerServiceEmail` (string, optional) — The customer service email address.
- `timezone` (string, optional) — The organization's time zone, as an IANA identifier such as `America/Chicago`.
- `externalId` (string, optional) — Your own identifier for the organization.
- `customData` (map from string to any, optional) — Arbitrary key-value data you attach to the organization.
- `business` (CreateBusinessRequest, optional) — The business to create inline for the organization.
- `businessReference` (string, optional) — The reference of an existing business the organization belongs to.

### PaypointCreatedResponse

The reference and initial status of a newly created paypoint.

- `paypointReference` (string, required) — The paypoint reference, used to read and manage the paypoint.
- `paypointStatus` (string, required) — The paypoint status. New paypoints start in `pending`.
- `createdAt` (datetime, required) — When the paypoint was created.
- `_links` (PaypointLinks, required) — Hypermedia links for the paypoint resource.
- `businessReference` (string, optional, nullable) — The reference of the business the paypoint belongs to.
- `doingBusinessAs` (string, optional, nullable) — The name the paypoint does business as (DBA).
- `timezone` (string, optional, nullable) — The paypoint's time zone.

### PayabliErrorBodyResponseData

Object with detailed error context.

- `explanation` (string, optional) — Human-readable explanation of what happened.
- `todoAction` (string, optional) — Suggested resolution.

### CreateBusinessRequest

Request body to create a business.

- `legalName` (string, required) — The registered legal name of the business.
- `externalId` (string, optional) — Your own identifier for the business.
- `description` (string, optional) — A free-text description of the business.
- `legalStructure` (enum, optional) — The business's legal structure. Case-insensitive, and several inputs normalize to the same canonical value on read (for example, `llc` and `limited-liability-company` both read back as `LimitedLiabilityCompany`).
  - Allowed values: `limited-liability-company`, `llc`, `corporation`, `partnership`, `sole-proprietorship`, `non-profit`, `nonprofit`, `government`, `s-corp`, `s-corporation`
- `stockSymbol` (string, optional) — The stock ticker symbol, if the business is publicly traded.
- `incorporationState` (string, optional) — The state where the business is incorporated.
- `taxIdCountry` (string, optional) — The country that issued the business's tax identifier.
- `establishedDate` (datetime, optional) — The date the business was established.
- `numberOfEmployees` (integer, optional) — The number of employees.
- `annualRevenue` (double, optional) — The business's annual revenue.
- `website` (string, optional) — The business's website URL.
- `merchantCatCode` (string, optional) — The merchant category code (MCC) that classifies the business.
- `timezone` (string, optional) — The business's time zone.
- `phone` (list of string, optional) — Phone numbers for the business.
- `emails` (list of string, optional) — Email addresses for the business.
- `operatingSeasons` (list of enum, optional) — The seasons the business operates in. Values are case-insensitive on input and returned capitalized.
  - Allowed values: `Spring`, `Summer`, `Fall`, `Winter`
- `addressDetails` (list of BusinessAddressCreate, optional) — The business's addresses.
- `paymentMethods` (list of BusinessPaymentMethod, optional) — The bank accounts and cards attached to the business.
- `customData` (map from string to any, optional) — Arbitrary key-value data you attach to the business. Payabli stores the applicant's answers to a boarding template's custom questions under the `templateAnswers` key.
- `isForeignOwned` (boolean, optional) — Whether the business is foreign-owned.
- `isTaxExempt` (boolean, optional) — Whether the business is tax-exempt.
- `taxExemptClassification` (string, optional) — The business's tax-exempt classification, such as `501(c)(3)`.
- `processingMetrics` (ProcessingMetrics, optional) — Expected Pay In processing profile for the business.
- `payoutMetrics` (PayoutMetrics, optional) — Expected Pay Out profile for the business.
- `license` (string, optional) — The business's license number.
- `licenseState` (string, optional) — The state that issued the business's license.
- `taxReference` (string, optional) — The business tax identifier, for example an EIN.
- `parentReference` (string, optional) — The organization entrypoint the business belongs to. Omit to use the organization your credential belongs to.

### PaypointLinks

Hypermedia links for a paypoint resource.

- `self` (string, optional) — Relative path to the paypoint resource.
- `business` (string, optional) — Relative path to the business the paypoint belongs to.

### BusinessAddressCreate

An address sent when creating a business. `country` is required.

- `country` (string, required) — The two-character ISO country code.
- `type` (enum, optional) — The address role.
  - Allowed values: `legal`, `billing`, `shipping`, `remittance`, `physical`, `mailing`
- `location` (enum, optional) — The physical use of the address. Defaults to `other`.
  - Allowed values: `office`, `warehouse`, `retail`, `home`, `other`
- `addressLine1` (string, optional) — The first line of the street address.
- `addressLine2` (string, optional) — The second line of the street address.
- `cityLocality` (string, optional) — The city or locality.
- `stateProvince` (string, optional) — The state or province.
- `postalCode` (string, optional) — The postal or ZIP code.
- `floor` (string, optional) — The floor, if applicable.
- `suiteApartNumber` (string, optional) — The suite or apartment number, if applicable.

### BusinessPaymentMethod

A bank account or card attached to a business.

- `type` (string, optional) — The payment method type, for example a bank account or card.
- `accountOwner` (string, optional) — The name of the account owner.
- `name` (string, optional) — An optional label for the payment method.
- `financialInstitution` (string, optional) — The bank or financial institution that holds the account.
- `ownerType` (string, optional) — Whether the owner is a business or an individual.
- `accountType` (string, optional) — The account type, for example checking or savings.
- `accountNumber` (string, optional) — The bank account number.
- `routingNumber` (string, optional) — The bank routing number.
- `cardNumber` (string, optional) — The card number, for card payment methods.
- `expirationDate` (string, optional) — The card expiration date, for card payment methods.
- `cvv` (string, optional) — The card verification value, for card payment methods.
- `cardType` (string, optional) — The card type, for card payment methods.
- `usage` (list of string, optional) — What the payment method is used for.
- `isDefault` (boolean, optional) — Whether this is the owner's default payment method. At most one payment method per owner can set `isDefault` to `true`; sending two `true` values in one request fails validation.

### ProcessingMetrics

Expected Pay In processing profile for the business.

- `monthlyReceivablesVolume` (double, optional) — Expected monthly Pay In volume.
- `averageReceivableSize` (double, optional) — Expected average transaction amount.
- `largestReceivableSize` (double, optional) — Expected largest transaction amount.
- `inboundPresentPercent` (integer, optional) — Percent of volume from card-present transactions.
- `inboundOnlinePercent` (integer, optional) — Percent of volume from online transactions.
- `inboundMotoPercent` (integer, optional) — Percent of volume from mail-order/telephone-order transactions.
- `refundPolicy` (string, optional) — The business's refund policy.
- `advancedDelivery` (boolean, optional) — Whether the business delivers goods or services before it's paid.
- `percentAdvancedDelivery` (integer, optional) — Percent of sales delivered before payment.
- `advancedDeliveryDays` (double, optional) — Average number of days between payment and delivery.
- `numberOfTransactions` (integer, optional) — Expected number of transactions per month.

### PayoutMetrics

Expected Pay Out profile for the business.

- `monthlyPayablesVolume` (double, optional) — Expected monthly Pay Out volume.
- `averagePayablesSize` (double, optional) — Expected average payout amount.
- `largestPayablesSize` (double, optional) — Expected largest payout amount.
- `numberOfTransactions` (integer, optional) — Expected number of payouts per month.

## Examples

### CreateOrganizationInlineBusiness

**Request**

```json
{
  "business": {
    "externalId": "pmp-biz-001",
    "legalName": "PropertyManager Pro LLC",
    "legalStructure": "llc"
  },
  "customerServiceEmail": "support@example.com",
  "customerServicePhone": "3055551212",
  "description": "Property management software partner",
  "doingBusinessAs": "PropertyManager Pro",
  "externalId": "pmp-org-001",
  "timezone": "America/New_York",
  "website": "https://example.com"
}
```

**Response**

```json
{
  "success": true,
  "message": "Organization created successfully",
  "traceId": "0HNPE4LGV8483:000006C9",
  "data": {
    "paypointReference": "a8806f02-23b3-4f6d-bba3-42e1b94326ea",
    "paypointStatus": "pending",
    "createdAt": "2026-10-20T22:20:37.0295891Z",
    "_links": {
      "self": "/v2/organizations/a8806f02-23b3-4f6d-bba3-42e1b94326ea",
      "business": "/v2/businesses/6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27"
    },
    "businessReference": "6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27",
    "doingBusinessAs": "PropertyManager Pro",
    "timezone": "America/New_York"
  }
}
```

**SDK Code**

```python CreateOrganizationInlineBusiness
import requests

url = "https://api-sandbox.payabli.com/api/v2/organizations"

payload = {
    "business": {
        "externalId": "pmp-biz-001",
        "legalName": "PropertyManager Pro LLC",
        "legalStructure": "llc"
    },
    "customerServiceEmail": "support@example.com",
    "customerServicePhone": "3055551212",
    "description": "Property management software partner",
    "doingBusinessAs": "PropertyManager Pro",
    "externalId": "pmp-org-001",
    "timezone": "America/New_York",
    "website": "https://example.com"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript CreateOrganizationInlineBusiness
const url = 'https://api-sandbox.payabli.com/api/v2/organizations';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"business":{"externalId":"pmp-biz-001","legalName":"PropertyManager Pro LLC","legalStructure":"llc"},"customerServiceEmail":"support@example.com","customerServicePhone":"3055551212","description":"Property management software partner","doingBusinessAs":"PropertyManager Pro","externalId":"pmp-org-001","timezone":"America/New_York","website":"https://example.com"}'
};

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

```go CreateOrganizationInlineBusiness
package main

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

func main() {

	url := "https://api-sandbox.payabli.com/api/v2/organizations"

	payload := strings.NewReader("{\n  \"business\": {\n    \"externalId\": \"pmp-biz-001\",\n    \"legalName\": \"PropertyManager Pro LLC\",\n    \"legalStructure\": \"llc\"\n  },\n  \"customerServiceEmail\": \"support@example.com\",\n  \"customerServicePhone\": \"3055551212\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

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

url = URI("https://api-sandbox.payabli.com/api/v2/organizations")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"business\": {\n    \"externalId\": \"pmp-biz-001\",\n    \"legalName\": \"PropertyManager Pro LLC\",\n    \"legalStructure\": \"llc\"\n  },\n  \"customerServiceEmail\": \"support@example.com\",\n  \"customerServicePhone\": \"3055551212\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api-sandbox.payabli.com/api/v2/organizations")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"business\": {\n    \"externalId\": \"pmp-biz-001\",\n    \"legalName\": \"PropertyManager Pro LLC\",\n    \"legalStructure\": \"llc\"\n  },\n  \"customerServiceEmail\": \"support@example.com\",\n  \"customerServicePhone\": \"3055551212\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api-sandbox.payabli.com/api/v2/organizations', [
  'body' => '{
  "business": {
    "externalId": "pmp-biz-001",
    "legalName": "PropertyManager Pro LLC",
    "legalStructure": "llc"
  },
  "customerServiceEmail": "support@example.com",
  "customerServicePhone": "3055551212",
  "description": "Property management software partner",
  "doingBusinessAs": "PropertyManager Pro",
  "externalId": "pmp-org-001",
  "timezone": "America/New_York",
  "website": "https://example.com"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp CreateOrganizationInlineBusiness
using RestSharp;

var client = new RestClient("https://api-sandbox.payabli.com/api/v2/organizations");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"business\": {\n    \"externalId\": \"pmp-biz-001\",\n    \"legalName\": \"PropertyManager Pro LLC\",\n    \"legalStructure\": \"llc\"\n  },\n  \"customerServiceEmail\": \"support@example.com\",\n  \"customerServicePhone\": \"3055551212\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift CreateOrganizationInlineBusiness
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "business": [
    "externalId": "pmp-biz-001",
    "legalName": "PropertyManager Pro LLC",
    "legalStructure": "llc"
  ],
  "customerServiceEmail": "support@example.com",
  "customerServicePhone": "3055551212",
  "description": "Property management software partner",
  "doingBusinessAs": "PropertyManager Pro",
  "externalId": "pmp-org-001",
  "timezone": "America/New_York",
  "website": "https://example.com"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/v2/organizations")! 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()
```

### CreateOrganization

**Request**

```json
{
  "businessReference": "6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27",
  "description": "Property management software partner",
  "doingBusinessAs": "PropertyManager Pro",
  "externalId": "pmp-org-001",
  "timezone": "America/New_York",
  "website": "https://example.com"
}
```

**Response**

```json
{
  "success": true,
  "message": "Organization created successfully",
  "traceId": "0HNPE4LGV825F:00000015",
  "data": {
    "paypointReference": "a8806f02-23b3-4f6d-bba3-42e1b94326ea",
    "paypointStatus": "pending",
    "createdAt": "2026-10-20T22:20:37.0295891Z",
    "_links": {
      "self": "/v2/organizations/a8806f02-23b3-4f6d-bba3-42e1b94326ea",
      "business": "/v2/businesses/6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27"
    },
    "businessReference": "6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27",
    "doingBusinessAs": "PropertyManager Pro",
    "timezone": "America/New_York"
  }
}
```

**SDK Code**

```python CreateOrganization
import requests

url = "https://api-sandbox.payabli.com/api/v2/organizations"

payload = {
    "businessReference": "6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27",
    "description": "Property management software partner",
    "doingBusinessAs": "PropertyManager Pro",
    "externalId": "pmp-org-001",
    "timezone": "America/New_York",
    "website": "https://example.com"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript CreateOrganization
const url = 'https://api-sandbox.payabli.com/api/v2/organizations';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"businessReference":"6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27","description":"Property management software partner","doingBusinessAs":"PropertyManager Pro","externalId":"pmp-org-001","timezone":"America/New_York","website":"https://example.com"}'
};

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

```go CreateOrganization
package main

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

func main() {

	url := "https://api-sandbox.payabli.com/api/v2/organizations"

	payload := strings.NewReader("{\n  \"businessReference\": \"6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

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

url = URI("https://api-sandbox.payabli.com/api/v2/organizations")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"businessReference\": \"6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api-sandbox.payabli.com/api/v2/organizations")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"businessReference\": \"6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api-sandbox.payabli.com/api/v2/organizations', [
  'body' => '{
  "businessReference": "6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27",
  "description": "Property management software partner",
  "doingBusinessAs": "PropertyManager Pro",
  "externalId": "pmp-org-001",
  "timezone": "America/New_York",
  "website": "https://example.com"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp CreateOrganization
using RestSharp;

var client = new RestClient("https://api-sandbox.payabli.com/api/v2/organizations");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"businessReference\": \"6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27\",\n  \"description\": \"Property management software partner\",\n  \"doingBusinessAs\": \"PropertyManager Pro\",\n  \"externalId\": \"pmp-org-001\",\n  \"timezone\": \"America/New_York\",\n  \"website\": \"https://example.com\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift CreateOrganization
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "businessReference": "6e2b9d14-7a3c-4f58-b1e6-0c9d3a5f8e27",
  "description": "Property management software partner",
  "doingBusinessAs": "PropertyManager Pro",
  "externalId": "pmp-org-001",
  "timezone": "America/New_York",
  "website": "https://example.com"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/v2/organizations")! 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()
```